P4 Bugs and POC | Part-8
The text describes two issues: HTML injection in signup emails, where unsanitised name fields render as HTML in verification emails, and origin IP disclosure that lets an attacker bypass a WAF by sending requests directly to the origin server. An attacker could use the first for phishing and the second for unfiltered attacks such as SQLi, RCE or DoS.
infosecwriteups.com
Published on infosecwriteups.com
Let’s kick things off with two interesting P4 bugs and learn how to find and exploit them effectively. If you follow these steps and test them on real-world targets, you’re bound to discover some amazing bugs! 😎
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 missing output encoding of user-supplied name fields in email templates, and exposure of the origin server's IP address behind a WAF.
Impact
The text claims HTML email injection could enable phishing from a legitimate address, and origin IP disclosure could allow direct unfiltered attacks such as SQLi, RCE or DoS, though no actual exploitation is demonstrated.
What the attacker needed
A free account; victim receives the email; target uses a WAF; origin IP is discoverable
How it was found
- Visit the target site and create an account.
- Put an HTML payload in the First Name and Last Name fields.
- Trigger a verification or password reset email.
- Check the email to see whether the payload rendered.
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.
The first bug is about a website putting your name into a welcome email without cleaning it first. If you type special formatting codes instead of a plain name, the email may show whatever you typed, which a criminal could use to make a fake but convincing message. The second bug is about finding the real address of a website's server behind a protective filter, so attacks can be sent straight to the server and skip the filter.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.