What happens when you open the developer console on facebook.com?

Gianmarco Ebeling
2 min readOct 13, 2020

Here’s how Facebook prevents you to be a Self XSS Victim.

Photo by @konkarampelas on Unsplash.

Many security experts still argue that humans are the weakest link in cybersecurity. The Self-XSS scam confirms this position.

Self-XSS, self cross-site scripting, is a social engineering attack used by hackers to access and control victims’ web accounts. This kind of scam can be also used to compromise your own Facebook account.

How does it work?

The attacker’s goal is to trick you into running their malicious code in your own web browser.

Usually, the scammer posts a message that says that by copying and running a certain code in your JavaScript console, you will be able to hack into anyone’s account.

What actually happens is that by following the instructions, you involuntarily give the scammer access to your account!

https://giphy.com/explore/karma

Once the scammer is in control of your account, they can use it to spread the same scam or launch other cyberscams.

Facebook has taken steps to protect its users from this scam adding Self-XSS to its list of Security Threats.

In addition, if you get to the JavaScript console while you are on Facebook, a warning will show up saying not to paste any unknown code into the browser.

What can I do about it?

If you see this kind of spam on Facebook, you should report it by clicking at the upper-right corner of the post and by selecting ‘Find support or report post’.

In case you become a victim of one of these attacks, Facebook can help you secure your account again. You can visit their help page for Self XSS attacks: https://www.facebook.com/help/543344735779134/.

--

--

Gianmarco Ebeling

Founder of Deutsch Mentor. Indie Maker. Building a portfolio of SaaS to achieve financial freedom. Just ship it!