Skip to content
XSS Write-up Beginner

Discovering a Text Injection Vulnerability — A Bug Hunter�

A documentation portal reflected user-supplied text from the URL path back into the page without encoding, so a crafted link could display fake warning text. An attacker could share such a link to trick victims into believing an official alert, aiding phishing or brand impersonation.

Be nice insabat Follow

Published on infosecwriteups.com

Assalam o alaikum for muslim brothers and hello for non muslims, i hope all of you are doing well and learning new things day by day.

Be nice insabat, on infosecwriteups.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 reflected the URL path into the rendered page without encoding or validation.

Impact

A shared link could make victims believe a legitimate warning, supporting social engineering and brand impersonation; the author notes the text appeared only in some cases depending on rendering, and the issue requires user interaction.

What the attacker needed

Victim clicks a crafted link; target reflects URL path text

How it was found

  1. Choose a public documentation portal that uses user-generated paths under /docs/.
  2. Craft a URL with unusual text in the path segment.
  3. Open the URL and observe that the injected text is displayed without encoding or redirection.

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 website took part of the web address (the path after /docs/) and showed it on the page as-is. Because the site did not clean or encode that text, someone could put alarming words in the link and the page would display them, making the link look like a real warning from the site. This is not script execution; it is misleading visible text that can be used to trick people.

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 Be nice insabat

View all

8 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.