How To Escalate P5 Email HTML Injection to P4.
A workshop registration form reflected the user's first and last name into a confirmation page and a confirmation email without sanitising HTML, allowing HTML injection and self-XSS. The author also notes that the domain lacked a DMARC policy, which could allow email spoofing, but the original report was marked informational.
Published on medium.com
Hi, Ajak Amico’s welcome back to another blog. Today In this blog, I will show how I found HTML injection and Self XSS in one of the NASA domains and I will show how to escalate an HTML injection to get triaged Before starting, if you haven’t subscribed to our channel, do subscribe, guys.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application inserted user-supplied name values into HTML output and email bodies without encoding or sanitisation.
Impact
An attacker could inject HTML into the confirmation page and email, and if the domain lacks DMARC, could spoof emails from the NASA address to phish users; however, the original report was marked informational, suggesting limited practical impact without chaining.
What the attacker needed
Victim submits a registration form; attacker can control name fields; DMARC policy not enabled for spoofing
The fix
The application should HTML-encode user-supplied values before rendering them in web pages and emails, and the domain should publish a DMARC policy.
How it was found
- Find a workshop registration page on a NASA subdomain.
- Submit the registration form with HTML tags in the first name and last name fields.
- Observe the HTML tags rendered on the confirmation page.
- Check the confirmation email and see the HTML tags rendered there.
- Try an image tag with an error handler in the first name to trigger self-XSS.
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 write-up has not been written yet. The Original tab links to the source.
When a website puts what you typed back on the page or into an email without cleaning it, an attacker can insert HTML tags. Here the name fields were not cleaned, so tags like headings appeared in the confirmation email. The author also found the email domain had no DMARC record, a policy that helps stop forged sender addresses.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.