A zero day for the government’s “demo servers” and internal networks
An error page on a demo IMAGEhost server reflected HTML from a URL parameter, allowing an attacker to inject script. An attacker could execute JavaScript in a victim's browser and steal cookies, though the text does not demonstrate cookie theft.
Hey all, it’s been a long time since I last posted, and much has happened (multiple P1s on various programs :)). Yet here we are once again, with another 0day that will remain unpatched for eternity.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application reflected a URL parameter into an HTML error page without encoding it.
Impact
An attacker could run script in a victim's browser and steal cookies, although the text only shows script execution and does not demonstrate cookie theft.
What the attacker needed
Access to an IMAGEhost server; victim visits a crafted URL
How it was found
- Find an IMAGEhost server, for example via a Shodan favicon search.
- Open the login page and try default credentials, which led to an error page.
- Notice that the error message is written as HTML from the URL.
- Place an XSS payload in the URL parameter.
- Observe that the script executes.
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 write-up has not been written yet. The Original tab links to the source.
A web page took text from the address bar and put it directly into the page without cleaning it. This let the author insert a small script that ran in the browser. This kind of flaw is called cross-site scripting, or XSS, and it can let an attacker act as the logged-in user.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.