Skip to content
XSS Disclosed report Beginner

HTML INJECTION on coins.state.gov

The error page on coins.state.gov reflects the aspxerrorpath parameter without proper encoding, allowing HTML injection. An attacker could craft a link that injects HTML content into the page, potentially modifying it or stealing a user's identity.

devdevrl Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 2 months
  • Disclosed after 3 months

##Summary

Hi team i hope you are well t is a pleasure to work in your program. I will begin to present the vulnerability that I found it: An html injection on coins.state.gov

##Steps

Vulnerable Link :

1.https://coins.state.gov/Errors.aspx?aspxerrorpath=Gxss

***Steps to reproduce ***

###first step : 1. i used gxss and katana like tools to find vulnerable domain : https://coins.state.gov/Errors.aspx?aspxerrorpath=Gxss 2. i tried to xss but no result for now i tried it manually but no result.

###second step : 1.i had an idea to use dalfox tool to try xss or html injection. 2. it work only for html injection 3. a video below can help you to see the result 4. when i refresh the browser and i keep dalfox run there is another payload generated on the page

Bash
echo https://coins.state.gov/Errors.aspx?aspxerrorpath=Gxss | dalfox pipe

Impact

It can allow an attacker to modify the page. To steal another person's identity. The attacker discovers injection vulnerability and decides to use an HTML injection attack. Attacker crafts malicious links, including his injected HTML content, and sends it to a user via email

The original report as published on HackerOne, by devdevrl. 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 reflects the aspxerrorpath parameter into the error page without HTML-encoding it.

Impact

An attacker could modify the page and potentially steal another person's identity by sending malicious links with injected HTML content.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Use tools like gxss and katana to find the vulnerable URL with the aspxerrorpath parameter.
  2. Try XSS manually but get no result.
  3. Use dalfox to test for XSS or HTML injection.
  4. Observe that only HTML injection works, as shown in a video.
  5. Refresh the browser while dalfox is running and see another payload generated on the page.

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.

HTML injection is when a website takes text from a link and puts it directly into the page without cleaning it first. Here, the error page shows whatever is in the aspxerrorpath parameter, so an attacker can put HTML code in the link and make the page display it. This can be used to change how the page looks or trick users.

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 devdevrl

View all

1 more disclosed report, best first.

More from U.S. Department of State

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.