Skip to content
XSS Write-up Beginner

Beginner Bug Hunters Must Try this Bug !!

User-supplied text in a signup field was automatically turned into a clickable hyperlink without validation. An attacker could use this to trick users into clicking malicious links, potentially leading to phishing or redirection.

medium.com

Published on medium.com

For Non-Members : Free Link

TSxNINJA, 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 application auto-links plain text URLs without validating or sanitising the input.

Impact

An attacker could use the injected hyperlink for phishing attacks, user redirection, loss of trust, and reputation damage.

What the attacker needed

Self-hosted or private bug bounty program; ability to submit input in a form field; victim receives and views the rendered input

The fix

The application should disable auto-linking or use linkifying libraries that validate domain names, encode user inputs before rendering, and use whitelisting or link sanitization libraries.

How it was found

  1. Open the signup or registration page of the target application.
  2. Submit a payload containing a URL in an input field such as Name or Comment.
  3. Submit the form and navigate to the email for verifying the email through link.
  4. Observe that the submitted text is rendered and the URL part becomes a clickable hyperlink.

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 type something into a form, the website might automatically turn any web address into a clickable link. If the site doesn't check what you typed, an attacker can make a link that looks like it belongs to the site but actually goes to a malicious page. This is called hyperlink injection.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

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.