Description
Thelia before 3.1.0 contains a stored cross-site scripting vulnerability in ForSomeCustomers::getSummary() that allows unauthenticated attackers to inject scripts via unescaped customer names. Attackers can register with a script payload as their name that executes when administrators view related coupons, stealing CSRF tokens to create administrator accounts.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Thelia | Thelia | < 3.1.0 | 3.1.0 |
| Thelia | Thelia Core | < 3.1.0 | 3.1.0 |
References
- GitHub Security Advisory (GHSA-r63g-6wfg-v5v9) vendor-advisory
- https://github.com/thelia/thelia/commit/c90d59375089a0833a56703c6f9f9ddea17bddc9 patch
- Thelia 3.1.0 Release Notes release-notes
- https://github.com/thelia/thelia/blob/3.0.0/core/lib/Thelia/Condition/Implementation/ForSomeCustomers.php#L119 technical-description
- VulnCheck Advisory: Thelia before 3.1.0 Stored XSS via Coupon Condition Customer Name third-party-advisory