Skip to content
Info disclosure Disclosed report Beginner

Browser Self XSS Protection not implemented

The website does not implement browser self-XSS protection, which normally warns users when they paste code into the developer console. An attacker could socially engineer a user into running malicious JavaScript in their own browser, potentially compromising their account.

allenaleen Follow

Originally disclosed on HackerOne

  • Disclosed after 30 days

Hi

Self XSS Protection not used ,An attacker can trick users to insert JavaScript in browser console.

A Self-XSS scam usually works by promising to help you access somebody else's account. Instead, the scammer tricks you into gaining access to your account for fraud, spam and tricking more people into a scam.

I see that you have not enabled 'Self XSS Protection ' on https://portswigger.net/ , This technique prevents user from getting tricked into injecting js themselves and allow attackers to socially engineering them..

For example, Facebook have : http://gyazo.com/3b448c200124053b60b622d0149e242d https://www.facebook.com/selfxss

But you don't have it, You should , to protect your users , it prevents the users from getting tricked and be safe. Its a best practice every website should follow for a safer web!

This bug has been fixed by many websites including Facebook. So its strongly advised you to fix it.

Similar fixed issue

Impact

Users with low knowledge can be tricked to attack themselves via xss attacks.

#Ref

Regards

The original report as published on HackerOne, by allenaleen. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the site does not implement the browser console paste warning that many major websites use to prevent self-XSS.

Impact

Users with little security knowledge could be tricked into running malicious JavaScript in their own browser, potentially leading to account compromise or other fraud.

What the attacker needed

Victim is socially engineered; victim pastes code into console

The fix

The site should implement self-XSS protection, such as a warning when users paste code into the developer console, as many major websites do.

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 report has not been written yet. The Original tab links to the source.

Self-XSS is when a scammer tricks you into pasting harmful code into your browser's developer tools, which then runs as if you did it yourself. Many websites show a warning when you try to paste code there to prevent this. This report says the site lacks that warning, so users could be tricked.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from PortSwigger Web Security

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.