Product & Service Introduction:===============================Shopware is a modular online shop system that is since 2004 developed in germany. It is available both as an open source software as well as in commercial editions. The program can be extended in its functions by installing additional plugins. An open API allows third-party systems, such as payment services or ERP systems, to be connected. The system is multi shop capable it can thus be generated within an installation several shops in different domains. A multi-client capability (complete separation of multishops in the administration area) is by default, but can be achieved in the cluster.

Technical Details & Description:================================The shopware v5.2.5 - v5.3 is vulnerable to cross site scripting in the customer and order section of the content management system backend modules. Remote attackers are able to inject malicious script code to the firstname, lastname or order input fields to provoke a persistent execution in the customer and orders section of the backend. The execution occurs in the shopware administrator backend listing when processing to preview the customers (kunden) or orders (bestellungen).The injection can be processed by interaction via user registration or by manipulation of the order information inputs.The web issue can be exploited by low privileged user accounts against higher privileged admin- oder moderator-accounts.

The security risk of the bugs are estimated as medium with a cvss (common vulnerability scoring system) count of 4.4. Exploitation of the issue requires a low privileged web-application user account and low or medium user interaction. Successful exploitation of the vulnerabilities results in persistent phishing mails, session hijacking, persistent external redirect to malicious sources and application-side manipulation of affected or connected module context.

Proof of Concept (PoC):=======================The cross site vulnerabilities can be exploited by remote attackers with low privileged shopware user account and low user interaction.For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue.

Manual steps to reproduce the vulnerability ...1. Open the the browser and surf to the target shopware v5.2.5 web-application2. Move to the registration formular3. Include a script code payload with a iframe src onload tag to the firstname, lastname and name parameters4. Submit the request via POST method to register the account5. Move to the inbox and verify via link the account to activateNote: Now the payloads are executable saved to the Kunden (Customer) section in the backend6. The administrator visits in the next step the Kunden (Customer) section to preview7. The script code payload executes in the customers list8. As next step the attacker places an order via shopNote: The order name manipulation via registration is as well able to execute script code the context9. The administrator visits in the next step the Bestellungen (orders) section to preview 10. The script code payload executes in the orders list11. Successful reproduce of the both cross site vulnerabilities!

Note: Attackers are able to inject malicious redirects, frames with payloads or other script code tags.The basic web validation filter of the shopware content management system does not encode the list context.

Solution - Fix & Patch:=======================The xss vulnerability can be patched by a secure parse of the customer (kunden) and orders (bestellungen) context listings.Parse or escape the context and disallow special chars during the registration or add to prevent further script code injection attacks.

The vulnerability can be resolved by an update to version 5.3.4 that is delivered by the manufacturer. The issue risk is marked as moderate.

Security Risk:==============The security risk of the stored cross site scripting vulnerabilities in the shopware cms are estimated as medium. (CVSS 4.4)

Disclaimer & Information:=========================The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties, either expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-Lab or its suppliers are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business profits or special damages, even if Vulnerability Labs or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability mainly for incidentalor consequential damages so the foregoing limitation may not apply. We do not approve or encourage anybody to break any licenses, policies, deface websites, hack into databases or trade with stolen data. We have no need for criminal activities or membership requests. We do not publish advisories or vulnerabilities of religious-, militant- and racist- hacker/analyst/researcher groups or individuals. We do not publish trade researcher mails, phone numbers, conversations or anything else to journalists, investigative authorities or private individuals.

Any modified copy or reproduction, including partially usages, of this file, resources or information requires authorization from Vulnerability Laboratory. Permission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other media, are reserved by Vulnerability Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and other information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list, modify, use or edit our material contact ([email protected]) to get an ask permission.