CVE-2021-33561 Cross-site scripting in Shopizer
Remote attackers can inject arbitrary scripts via customer names in Shopizer, leading to code execution or account takeover for store administrators.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-33561?
CVE-2021-33561 is a medium-severity cross-site scripting vulnerability in n/a, published on 24 May 2021. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
A stored cross-site scripting (XSS) vulnerability in Shopizer before 2.17.0 allows remote attackers to inject arbitrary web script or HTML via customer_name in various forms of store administration. It is saved in the database. The code is executed for any user of store administration when information is fetched from the backend, e.g., in admin/customers/list.html.
Weakness: CWE-79
Which versions are affected by CVE-2021-33561?
2 open source packages ship an affected version, including com.shopizer:shopizer. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
com.shopizer:shopizer Maven | All versions | 2.17.0 |
com.shopizer:shopizer Maven | All versions | 2.17.0 |
Products include Shopizer Shopizer.
How do I fix CVE-2021-33561?
Upgrade com.shopizer:shopizer to 2.17.0 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2021-33561 being exploited?
There is no known exploitation of CVE-2021-33561 in the wild and no public exploit code.
Public exploit code: 1 Exploit-DB entry.
Other vulnerabilities in n/a
Sources
Also known as GHSA-rcp4-jm2v-mr3f.