Skip to content
XSS Write-up Beginner

A Tale Of Weird Xss Into 100

The application allowed users to set social media handles, and the Instagram handle field was vulnerable to cross-site scripting. An attacker could inject a script payload into their own Instagram handle, which would execute when other users viewed their profile.

Nithissh Follow

Published on infosecwriteups.com

Hey Guys , How are you all ? . I hope so your doing good and healthy .

Nithissh, 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 failed to sanitise or encode user-supplied social media handle values before rendering them in a page.

Impact

An attacker could execute arbitrary JavaScript in the context of other users who view the affected profile, potentially leading to session theft or other client-side attacks.

What the attacker needed

A free account; victim views the attacker's profile

How it was found

  1. Create an account on the target application.
  2. Go to the settings page where social media handles can be edited.
  3. Enter a script payload into the Instagram handle field.
  4. Save the changes and view the profile to see the payload execute.

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.

Cross-site scripting (XSS) is a flaw where a website displays user input without properly escaping it, so a browser treats that input as code. Here, the Instagram handle field accepted a script tag, and the site later showed it to other users, causing the script to run in their browsers.

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 Nithissh

View all

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