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.
- 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)
Affected Product(s) and Version(s)
Wordpress Website
CVE Numbers
Steps to Reproduce
Suggested Mitigation/Remediation Actions
Input validation and output encoding are essential to prevent HTML injection vulnerabilities.
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
- Open the crafted search URL containing the double-encoded HTML payload.
- 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.