The Easiest Bug For Beginners
User-supplied name fields are reflected as clickable hyperlinks in automated emails such as account confirmation and password reset. An attacker could inject a link to a malicious site and redirect recipients who click it.
Published on medium.com
Today I am gonna show how to find an easy bug. As a beginner bug hunter I have reported this bug in multiple companies and organisations in my initial stage.
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 inserts raw user input into HTML emails without validating or encoding it, so text that looks like a URL becomes a live link.
Impact
An attacker could send victims to a malicious website through a link in a legitimate-looking email; the text notes that if the link is not clickable or does not redirect, there is no vulnerability.
What the attacker needed
Ability to create an account or trigger an email; victim receives and clicks the email link
How it was found
- Go to the signup or register page and start creating an account.
- Enter a URL such as a search engine address in the first name field and another URL in the second name field.
- Complete the remaining details and submit the form.
- Open the confirmation email and check whether the entered URLs appear as clickable links.
- Click the link and confirm it redirects to the external site.
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 you sign up, the name you type is placed into a welcome email. If the site turns that name into a clickable link, someone can put a link to a bad website there instead. The email then invites the victim to click a link the attacker chose.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.