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.
Hey Guys , How are you all ? . I hope so your doing good and healthy .
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
- Create an account on the target application.
- Go to the settings page where social media handles can be edited.
- Enter a script payload into the Instagram handle field.
- 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.