Skip to content
XSS Write-up Beginner

A very easy bug anyone can find

A blog subscription form accepted HTML in its name field, and the injected hyperlink was delivered in the notification email sent to the subscriber. An attacker could send a crafted link in an email that appears to come from the target site.

malikirtizameg Follow

Published on medium.com

FREE LINK : https://medium.com/@InsbatArshad/a-very-easy-bug-anyone-can-find-8d2b11a768c7?sk=fa6aac48223beeefc9a59be86f72d72a

Be nice insabat, on medium.com

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 name field was inserted into the notification email's HTML without encoding or sanitising it.

Impact

A recipient could be shown a link inside a legitimate-looking email, which could be used for phishing; the report does not show script execution.

What the attacker needed

Access to the public subscription form; a valid email address to receive the message

How it was found

  1. Open the blog page and find the subscription form with name and email fields.
  2. Enter an HTML hyperlink payload in the name field and a real email address in the email field.
  3. Submit the form and open the received email.
  4. Observe that the hyperlink appears in the email.

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.

A subscription form let people type text into a name box. The site put that text into an email without cleaning it, so a link written in the box showed up as a clickable link in the email. This is called HTML injection: the site treats user text as page code instead of plain text.

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 malikirtizameg

View all

2 more disclosed reports, best first.

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.