Skip to content
XSS Disclosed report Beginner

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.

0xd3adc0de Follow

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:

  1. 0xd3adc0de<ScRiPt>alert('XSS Success!')</sCripT>
  2. HTML encode: 0xd3adc0de&lt;ScRiPt&gt;alert('XSS Success!')&lt;/sCripT&gt;
  3. 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 organization listed on registration page.

█████████

  • About 144366 manager listed 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 receive XSS Success! alert box.

Suggested Mitigation/Remediation Actions

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

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

  1. Visit the target site and register or log in with a valid user account.
  2. After login, change the URL to the PreviewLetterhead.aspx page with a crafted emailbody parameter.
  3. 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.

More by 0xd3adc0de

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.