Skip to content
XSS Disclosed report Intermediate

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.

pum Follow

Originally disclosed on HackerOne

  • 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&apos;&#32;onmouseover&#61;alert&#40;1&#41;&#32;some&#61;&apos;na&#46;google&#46;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

Bildschirmfoto_2014-07-02_um_20.26.17.PNG
Bildschirmfoto_2014-07-02_um_20.26.17.PNG From the original on HackerOne

The original report as published on HackerOne, by pum. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Create a form that posts a crafted URL parameter to the staging site.
  2. Submit the form to trigger the error page.
  3. View the response and observe the injected event handler in the link.
  4. 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.

More by pum

View all

2 more disclosed reports, best first.

More from Factlink

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.