Skip to content
XSS Disclosed report Beginner

HTML Escaping Error in the 404 Page on developer.uber.com/docs/

The 404 page on developer.uber.com reflected a single quote from the URL into an HTML attribute without proper escaping, allowing limited HTML injection. The researcher could not achieve JavaScript execution because equals signs and angle brackets were encoded.

ddworken Follow

Originally disclosed on HackerOne

  • Triaged in 22 hours
  • Fixed in 10 days
  • Disclosed after 15 days

Summary by the researcher

Non-exploitable HTML escaping error.

The report

There is a non-exploitable HTML escaping error in the 404 page on developer.uber.com. When loading https://developer.uber.com/docs/test'test, the following HTML is rendered:

HTML
<a href="/docs/test" test'="" require-login="">logging in</a>

Note that the injected ' is rendered in the HTML as a closing " that closes the href= section. Sadly, I have been unable to find any way of exploiting this because when I inject an = (in order to inject onmouseover=alert(0)), it is rendered as %3d which prevents me from obtaining javascript execution. Injecting a > to close the tag also does not work.

So I'll admit that this is not a high priority vulnerability, but I still believe that it should be fixed since it allows for the user to inject limited content into a <a href.

Thanks, David Dworken

The original report as published on HackerOne, by ddworken. 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

Root cause

Likely the 404 page reflected the URL path into an HTML attribute without escaping single quotes, but other characters were encoded.

Impact

The researcher could only inject limited content into an anchor tag and could not achieve JavaScript execution because equals signs and angle brackets were encoded.

What the attacker needed

None

The fix

The HTML escaping error should be fixed to prevent injection into the href attribute.

How it was found

  1. Load the URL with a single quote in the path.
  2. Observe the rendered HTML showing the quote closing the href attribute.

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 puts part of the URL into its HTML without cleaning it, an attacker might be able to insert their own code. Here, a single quote character was inserted into a link's attribute, but the site blocked the characters needed to run JavaScript, so it was not exploitable.

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 ddworken

View all

18 more disclosed reports, best first.

More from Uber

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.