Skip to content
XSS Disclosed report Beginner

Reflected XSS in https://eng.uberinternal.com and https://coeshift.corp.uber.internal/

The base parameter of the /oidauth/prompt endpoint on multiple uberinternal.com subdomains was reflected into the page body without sanitisation, allowing reflected cross-site scripting. The pages were also clickjackable, which made it easier to get a victim to trigger the payload with a click.

Fady Othman Follow

Originally disclosed on HackerOne

Bounty$500 Medium View original
  • Paid in 3 months
  • Disclosed after 6 months

Summary by the program

The base parameter of /oidauth/prompt on multiple uberinternal.com subdomains was not sanitized before being reflected into the page body, making it vulnerable to reflected XSS. Additionally, these pages were affected by a clickjacking vulnerability that made exploitation easier, since a click was required to trigger the XSS.

Summary by the researcher

https://blog.fadyothman.com/how-i-discovered-xss-that-affects-over-20-uber-subdomains/

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

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 4 min read.

What the report shows

The report concerns /oidauth/prompt on eng.uberinternal.com and [redacted].[redacted]/, and the program says multiple uberinternal.com subdomains were affected. The base parameter was reflected into the page body.

According to the program's summary, the base parameter was not sanitised before being reflected into the page body, which made the endpoint vulnerable to reflected cross-site scripting. The same pages were also affected by clickjacking, which made exploitation easier: a click was required to trigger the XSS.

The researcher's summary links to a blog post describing how the issue was discovered and how it affected over 20 Uber subdomains. The report itself does not include the request, the payload, the response, or the exact steps taken to reproduce the issue.

The report was disclosed on 13 November 2018, rated medium severity, and paid a bounty of 500.00 USD. The report does not describe a fix.

Root cause

The program states that the base parameter was not sanitised before being reflected into the page body. When a parameter is reflected into a page without context-aware output encoding, any markup or script in the value is interpreted by the browser as part of the page.

The same pages were also affected by clickjacking, which made exploitation easier because a click was required to trigger the XSS. Because the XSS needed a click to fire, the framing made the attack practical.

Impact

An attacker who can get a victim to load a crafted URL and click on one of the affected subdomains could execute script in the context of that origin. The report does not describe what data or actions were reachable from those pages. The clickjacking weakness made exploitation easier, since a click was required to trigger the XSS.

The affected hosts are internal-facing names, so the practical reach depends on who can access them, which the report does not discuss.

How this kind of bug works

Reflected XSS happens when a request value is echoed back into a response and the browser parses it as code. The server treats the value as data, but the browser treats the response as a document, so any <script> element, event handler attribute, or javascript: URL in the value runs in the origin of the page that reflected it.

The bug class persists because output encoding is context-dependent. A value placed inside an HTML text node, inside an attribute, inside a JavaScript string, and inside a URL each need different escaping. A single generic filter often misses one of these contexts. Framing protections are a separate control: without X-Frame-Options or a suitable Content-Security-Policy frame-ancestors directive, a page can be embedded and its clicks hijacked.

How to test for it

  1. Map parameters that are reflected in responses. Look at search boxes, error pages, login and prompt pages, redirect parameters, and anything whose value appears in the returned HTML.
  2. Send a benign marker value and confirm it appears in the response body, noting the exact context: text node, attribute, script block, or URL.
  3. Send a payload suited to that context and check whether it executes in a browser, not just whether it appears in the HTML source. Use a browser with developer tools or an intercepting proxy to observe execution.
  4. Test the same parameter with different encodings and with characters that filters commonly miss, and check whether the response is served with a content type that the browser will render as HTML.
  5. Check framing separately: request the page inside an iframe from another origin and see whether it renders.

A positive result is script execution in the target origin, demonstrated with a payload that proves control, such as one that changes the page or reads a value the tester controls. Common false positives include reflections that are HTML-encoded, reflections inside a context where the browser does not execute (for example inside a comment or a non-executable content type), payloads that only appear in the response but are stripped by a client-side sanitiser, and self-XSS that only works when the tester pastes code into their own console.

How it is fixed

  • Apply context-aware output encoding to every value reflected into a response, using the encoding appropriate to the HTML, attribute, JavaScript, or URL context.
  • Validate input against an allowlist where the expected format is known, rather than relying on blocklists.
  • Set a restrictive Content-Security-Policy to limit script execution as a defence in depth.
  • Send X-Frame-Options: DENY or SAMEORIGIN, or a frame-ancestors directive, to stop clickjacking.
  • Set the correct Content-Type and X-Content-Type-Options: nosniff so responses are not interpreted as HTML when they should not be.

Hunting notes

Reflected XSS tends to hide in parameters that feed into page templates: prompt and login pages, error and debug pages, redirect and return-URL parameters, and search or filter values. Internal and corporate subdomains are worth attention because they are often less tested than public ones, and a shared template across many subdomains can turn one finding into many.

Recon signals include a large number of subdomains serving the same application or template, parameters whose values appear verbatim in the response, and pages that lack framing protections. When you report, show execution in a browser, state the exact context and payload, and explain what an attacker gains from the origin. If a click is needed, demonstrate the clickjacking angle as well, since it changes a low-impact reflection into a practical attack. Keep the proof minimal and reproducible so the triager can confirm it quickly.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 7 min read.

What happened, in plain words

This report is about a security flaw on several internal Uber websites, including eng.uberinternal.com and [redacted].[redacted]/. The flaw was found on a page at the address /oidauth/prompt. The page takes a value called base and reflects it into the page body it sends back.

Putting a value from the address bar into the page is normal behaviour for many sites. The problem is that the page did not clean the value first. In security terms, it did not sanitise it. Sanitising means removing or neutralising anything dangerous before using it. Because the value went into the page body untouched, someone could put code into the base value and have the browser run it. That is called reflected cross-site scripting, or reflected XSS. "Reflected" means the value bounces straight back from the request into the response, like a shop assistant repeating your words back to you without checking them.

The same pages had a second weakness: clickjacking. Clickjacking means another site can load the page inside a frame, a small window embedded in a different page, and place invisible buttons over it. The visitor thinks they are clicking one thing but actually clicks the hidden page. In this case the XSS needed a click to trigger, and the clickjacking made the attack easier.

The researcher's summary links to a blog post describing how the issue was discovered and how it affected over 20 Uber subdomains. The report does not include the request, the payload, the response, or the exact steps used to reproduce the issue. It was disclosed on 13 November 2018, rated medium severity, and paid a bounty of 500.00 USD. The report does not describe a fix.

Why it matters

If an attacker can get a victim to open a crafted link and click on one of the affected subdomains, the attacker's code runs in the context of that site. The browser treats that code as part of the site, so it can do what the site's own code can do. The report does not describe what data or actions were reachable from those pages. The affected hosts are internal-facing names, so how far the attack reaches depends on who can access them, which the report does not discuss.

In general, how this kind of bug works

A web page is a document that a browser reads and displays. When you visit a page, your browser sends a request to a server, and the server sends back a response, usually HTML. The browser does not just show HTML as text: it reads the markup and runs any code it finds. That is the whole point of a browser, and it is also why reflected XSS works.

Reflected XSS happens when a value from the request is echoed into the response and the browser parses it as code. The server treats the value as data, but the browser treats the response as a document. So any <script> element, event handler attribute, or javascript: URL in the value runs in the origin of the page that reflected it. The origin is the combination of scheme, host and port, for example https://eng.uberinternal.com; code running in one origin is trusted by that origin.

The bug keeps appearing because output encoding depends on context. A value placed inside an HTML text node, inside an attribute, inside a JavaScript string, and inside a URL each need different escaping. A single generic filter often misses one of these contexts. Framing protection is a separate control: without X-Frame-Options or a suitable Content-Security-Policy frame-ancestors directive, a page can be embedded and its clicks hijacked.

In general, how to test for it

  1. Map parameters that are reflected in responses. Look at search boxes, error pages, login and prompt pages, redirect parameters, and anything whose value appears in the returned HTML. This step matters because you cannot test a reflection you have not found.
  2. Send a benign marker value and confirm it appears in the response body, noting the exact context: text node, attribute, script block, or URL. The context decides which payload can work.
  3. Send a payload suited to that context and check whether it executes in a browser, not just whether it appears in the HTML source. Use a browser with developer tools or an intercepting proxy to observe execution. Seeing your text in the source is not proof; execution is.
  4. Test the same parameter with different encodings and with characters that filters commonly miss, and check whether the response is served with a content type that the browser will render as HTML. Filters often catch the obvious form and miss variants.
  5. Check framing separately: request the page inside an iframe from another origin and see whether it renders. This shows whether clickjacking is possible alongside the XSS.

A positive result is script execution in the target origin, demonstrated with a payload that proves control, such as one that changes the page or reads a value the tester controls. Common false positives include reflections that are HTML-encoded, reflections inside a context where the browser does not execute (for example inside a comment or a non-executable content type), payloads that only appear in the response but are stripped by a client-side sanitiser, and self-XSS that only works when the tester pastes code into their own console.

In general, how it is fixed

  • Apply context-aware output encoding to every value reflected into a response, using the encoding appropriate to the HTML, attribute, JavaScript, or URL context.
  • Validate input against an allowlist where the expected format is known, rather than relying on blocklists.
  • Set a restrictive Content-Security-Policy to limit script execution as a defence in depth.
  • Send X-Frame-Options: DENY or SAMEORIGIN, or a frame-ancestors directive, to stop clickjacking.
  • Set the correct Content-Type and X-Content-Type-Options: nosniff so responses are not interpreted as HTML when they should not be.

In general, where to look

Reflected XSS tends to hide in parameters that feed into page templates: prompt and login pages, error and debug pages, redirect and return-URL parameters, and search or filter values. Internal and corporate subdomains are worth attention because they are often less tested than public ones, and a shared template across many subdomains can turn one finding into many.

Recon signals include a large number of subdomains serving the same application or template, parameters whose values appear verbatim in the response, and pages that lack framing protections. When you report, show execution in a browser, state the exact context and payload, and explain what an attacker gains from the origin. If a click is needed, demonstrate the clickjacking angle as well, since it changes a low-impact reflection into a practical attack. Keep the proof minimal and reproducible so the triager can confirm it quickly.

Glossary

  • Endpoint: a specific address on a server that handles a particular request, here /oidauth/prompt.
  • Parameter: a named value passed in a request, here base.
  • Request: the message your browser sends to a server asking for a page.
  • Response: the message the server sends back, usually HTML.
  • HTML: the markup language browsers use to build and display pages.
  • Sanitise: clean a value so that anything dangerous in it is removed or neutralised.
  • Reflected XSS: cross-site scripting where a request value is echoed into the response and run by the browser.
  • Cross-site scripting (XSS): a flaw that lets an attacker's code run inside a trusted website in the victim's browser.
  • Payload: the crafted value an attacker sends to trigger a flaw.
  • Clickjacking: tricking a user into clicking a hidden page embedded in another page.
  • Frame / iframe: a window inside a page that can display another page.
  • Origin: the scheme, host and port of a site, which the browser uses to decide what is trusted.
  • Output encoding: converting a value so the browser treats it as data, not code, for the context where it appears.
  • Allowlist: a list of permitted values or formats, as opposed to a blocklist of forbidden ones.
  • Content-Security-Policy: a response header that tells the browser which sources of code are allowed.
  • X-Frame-Options: a response header that controls whether a page may be embedded in a frame.
  • frame-ancestors: a Content-Security-Policy directive that restricts which sites may frame a page.
  • Content-Type: a response header stating what kind of content is being returned.
  • nosniff: a header value that stops the browser guessing a different content type.
  • Intercepting proxy: a tool that sits between browser and server so you can inspect and change requests and responses.
  • Self-XSS: a flaw that only works when the victim pastes code into their own browser console.
  • Recon: the information-gathering phase of testing, such as finding subdomains and parameters.
  • Triager: the person who reviews a submitted report and decides whether it is valid.

More by Fady Othman

View all

1 more disclosed report, 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.