Unauthenticated reflected XSS in update history
A reflected cross-site scripting flaw existed in the update history page because attacker-controlled values were placed into XML command attributes without encoding, and the preliminary session check only covered POST requests. An unauthenticated attacker could craft a GET request that injected executable XHTML into the response.
- Fixed in 33 hours
- Disclosed after 41 days
Summary by the program
Description
HackerOne community member Matías López Pereira (HackerOne: @mlopez01) reported a reflected XSS vulnerability in updates-history.php. Attacker-controlled values were included in XML command attributes without appropriate encoding, allowing crafted input to inject executable XHTML into the response.
The preliminary session check covered xajax POST requests but omitted GET requests, exposing an unauthenticated attack path. Authenticated administrator requests could also reach the unsafe XML output.
Resolution
The preliminary session check now applies to both GET and POST xajax requests. XML command attribute values are also encoded in both response serializers, preventing crafted values from injecting markup.
Security advisory
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the XML serialiser wrote attacker-controlled values into command attributes without encoding, and the session check only ran for POST xajax requests, leaving GET requests unauthenticated.
Impact
An unauthenticated attacker could inject executable XHTML into the response, and authenticated administrators could also reach the unsafe output.
What the attacker needed
No account needed
The fix
The preliminary session check was extended to both GET and POST xajax requests, and XML command attribute values are now encoded in both response serialisers.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Cross-site scripting (XSS) is when a website puts user-supplied text into a page without cleaning it, so a malicious visitor can make the site run their own code in someone else's browser. Here the page built part of its response as XML and copied input into an attribute without escaping it, so a specially formed link could run script. The login check also missed GET requests, meaning no account was needed to try it.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.