Skip to content
XSS Disclosed report Beginner

HTML Injection into https://www.██████.mil

A search page on a WordPress site reflected user input without proper encoding, allowing an attacker to inject HTML into the response. An attacker could display unauthorised content or redirect users, though the report does not demonstrate script execution.

thpless Follow

Originally disclosed on HackerOne

  • Triaged in 9 hours
  • Fixed in 15 days
  • Disclosed after 32 days

PoC

You can use the following link: https://www.██████.mil/search/%2522%253E%253C/form%253E%253Ch1%253EHTML%2520INJECTION%2520IS%2520POSSIBLE%2520!!!%253C/h1%253E%253C/body%253E%253C/form%253E%253C!--

Impact

HTML injection can compromise the security and integrity of a website by allowing attackers to inject malicious HTML code, leading to unauthorized content display, data theft, or user redirection. It can result in a loss of user trust and potentially cause significant damage to a website's reputation and user base.

System Host(s)

www.████.mil

Affected Product(s) and Version(s)

Wordpress Website

CVE Numbers

Steps to Reproduce

https://www.█████████.mil/search/%2522%253E%253C/form%253E%253Ch1%253EHTML%2520INJECTION%2520IS%2520POSSIBLE%2520!!!%253C/h1%253E%253C/body%253E%253C/form%253E%253C!--

Suggested Mitigation/Remediation Actions

Input validation and output encoding are essential to prevent HTML injection vulnerabilities.

The original report as published on HackerOne, by thpless. 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 search parameter was reflected into the page without output encoding, and the double-encoded input was decoded before being placed in the response.

Impact

An attacker could display unauthorised content or redirect users, which may damage trust, but the report does not show script execution or data theft.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Open the crafted search URL containing the double-encoded HTML payload.
  2. Observe that the injected heading and form markup appear in 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.

When a website puts whatever you type into the page without cleaning it first, you can type special characters that the browser treats as page structure rather than text. Here the search page did that, so a crafted link could make the page show extra headings or forms. This is called HTML injection; it becomes cross-site scripting only if scripts can run, which this report does not show.

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 thpless

View all

8 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.