Reflected XSS in ██████
A reflected XSS vulnerability was found in the emailbody parameter of the PreviewLetterhead.aspx page. An attacker could trick a logged-in user into clicking a crafted link to execute arbitrary JavaScript and steal cookies.
Originally disclosed on HackerOne
- Triaged in under an hour
- Fixed in 36 days
- Disclosed after 38 days
Description:
XSS vulnerability found on one of █████ subdomains. [ DoD scope]
After analyzing https://████████/(██████████), I found Admin/Notifications/PreviewLetterhead.aspx page that have emailbody parameter in GET request. emailbody parameter vulnerable to XSS vulnerability.
https://███/ requires a valid user to access the contents, but the registration page is accessible to all visitors without any restrictions or credentials.
███████
- Email confirmation is not required during the registration process.
- There is no limit to the use of disposable email addresses.
A valid registered user can access the target page after login.
By modifying emailbody parameter and set the payload to emailbody=0xd3adc0de%26lt;ScRiPt%26gt;alert(%27XSS%20Success!%27)%26lt;/sCripT%26gt; the alert box has been triggered.
To bypass WAF, the payload encoded using these method:
0xd3adc0de<ScRiPt>alert('XSS Success!')</sCripT>- HTML encode:
0xd3adc0de<ScRiPt>alert('XSS Success!')</sCripT> - URL encode:
0xd3adc0de%26lt;ScRiPt%26gt;alert(%27XSS%20Success!%27)%26lt;/sCripT%26gt;
Payload:
https://██████████/Admin/Notifications/PreviewLetterhead.aspx?emailbody=0xd3adc0de%26lt;ScRiPt%26gt;alert(%27XSS%20Success!%27)%26lt;/sCripT%26gt;
███
Bonus: Information leakage
Some information is leaked on the registration page, I have no idea about the level of confidentiality but I think you should review them. Such as Organization and Manager field is interesting.
- About
162 organizationlisted on registration page.
█████████
- About
144366 managerlisted on registration page.
████
References
https://owasp.org/www-community/attacks/xss/
Impact
By exploiting this vulnerability an attacker can trick the users to execute XSS and steal user's cookies. Launch advanced phishing attacks. Execute browser-based attacks etc.
System Host(s)
█████████
Affected Product(s) and Version(s)
CVE Numbers
Steps to Reproduce
- Visit the following URL
https://█████
-
Login into system using a valid user credential or if you haven't so go to registration page and take one.
https://██████/Disclaimer.aspx?user=new -
After success login, change the URL to
https://█████/Admin/Notifications/PreviewLetterhead.aspx?emailbody=0xd3adc0de%26lt;ScRiPt%26gt;alert(%27XSS%20Success!%27)%26lt;/sCripT%26gt;and you will receiveXSS Success!alert box.
Suggested Mitigation/Remediation Actions
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 trick users into executing XSS to steal cookies, launch phishing attacks, or perform browser-based attacks.
What the attacker needed
A valid user account; victim clicks a crafted link
How it was found
- Visit the target site and register or log in with a valid user account.
- After login, change the URL to the PreviewLetterhead.aspx page with a crafted emailbody parameter.
- Observe the alert box confirming script execution.
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 a flaw where a website inserts user input into a page without proper cleaning, so an attacker can make the victim's browser run malicious code. Here, the emailbody value in the URL is reflected back into the page, allowing script execution.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.