XSS 01 on staging.fct.li
The error page reflected a user-supplied URL into an HTML attribute without proper escaping, allowing an attacker to inject an event handler. In Internet Explorer without the XSS filter, moving the mouse over the link would execute script.
- Triaged in 15 hours
- Fixed in 5 days
- Disclosed after 5 days
hey
the error message generated can be used to escape out of a dynamically generated href link. The below will render in internet explorer (without xss filter enabled of course). See the screenshot for an example.
<html> <body> <form action="http://staging.fct.li/" method="POST"> <input type="hidden" name="url" value="unana' onmouseover=alert(1) some='na.google.de" /> <input type="submit" value="Submit request" /> </form> </body> </html>The response is: HTTP/1.1 504 Gateway Time-out Server: nginx/1.4.4 Date: Wed, 02 Jul 2014 18:13:51 GMT Content-Length: 215 Connection: keep-alive
This page is taking unusually long to load. You can try visiting the site without Factlink: <a href='http://unana' onmouseover=alert(1) some='na.google.de/'>http://unana' onmouseover=alert(1) some='na.google.de/</a>
Because of the "onmouseover" event waiting for its trigger you need to move your mouse over the link ...
cheers pUm
Attachments

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
Impact
An attacker could execute arbitrary JavaScript in the context of the site when a victim hovers over the crafted link, but only in Internet Explorer with the XSS filter disabled.
What the attacker needed
Victim uses Internet Explorer; XSS filter disabled; victim hovers over link
How it was found
- Create a form that posts a crafted URL parameter to the staging site.
- Submit the form to trigger the error page.
- View the response and observe the injected event handler in the link.
- Move the mouse over the link in Internet Explorer to trigger the alert.
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.
When a website shows back something you typed, like a URL in an error message, it must clean it first. Here the site put the URL inside a link without cleaning it, so an attacker could add extra code that runs when you hover over the link. This only worked in Internet Explorer with its built-in protection turned off.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.