TL;DR
OpenMage LTS has fixed a stored cross-site scripting (XSS) flaw rated CVSS 9.3. Any shopper can plant the payload by placing a guest order with a crafted email address. The script then runs when an administrator opens that order in the back office.
The admin order view prints the customer email without escaping it. As a result, an unauthenticated attacker can hijack an admin session. OpenMage LTS 20.19.1, 20.18.3 and 21.0.0-beta4 fix the bug, and no exploitation has been confirmed.
Why It Matters
OpenMage LTS is a community-maintained fork of Magento 1, and it powers online stores. Guest checkout is on by default, so attackers need no account. Moreover, opening orders is routine work for store staff.
According to the OpenMage LTS security advisory, the script “acts with the administrator’s session and permissions.” That could mean “creating an administrator account, changing configuration, or reading customer and order data.”
How the Attack Works
A Copy Button Without Escaping
Version 20.7.0 added a copy-to-clipboard button to admin order pages. The template escapes the email in the mailto link. However, it prints the raw address into the button’s data attribute. A double quote in the address closes that attribute, so the rest becomes live markup.
Loose Email Validation
Checkout validation does not block the payload either. It uses a loose mode that accepts any value “shaped like local@domain.tld,” including quotes and angle brackets. The store then saves the address unchanged.
The payload fires on the order view and on invoice, shipment and credit memo pages. Separately, a related tracking-number sink is fixed under GHSA-g5qf-m762-993x.
Affected Versions
- OpenMage LTS 20.7.0 to 20.18.2
- OpenMage LTS 20.19.0
- 21.0.0-beta2 and 21.0.0-beta3
Patch and Mitigation
Upgrade OpenMage LTS to 20.19.1 or 20.18.3. On the pre-release line, move to 21.0.0-beta4. If you cannot upgrade, the maintainers suggest two steps:
- Override the admin template and escape the email value, as the mailto link already does.
- Find orders whose email contains quotes or angle brackets, and do not open them until you patch.
Also, disabling guest checkout “narrows the planting path but is not a complete workaround.” Finally, review admin accounts for any you did not create.
Support Our Threat Intelligence
Find our vulnerability reports and weekly recaps helpful? Support our work today and unlock a 100% ad-free reading experience!