Self XSS : Grab Cookies Tricking Users Into Running Malicious Code

Self XSS attack using bit.ly to grab cookies tricking users into running malicious code.

How it works?

It is a social engineering attack used to gain control of victims’ web accounts by tricking users into copying and pasting malicious content into their browsers.

Since Web browser vendors and web sites have taken steps to mitigate this attack by blocking pasting javascript tag, I figure out a way of doing that using Bit.ly, so we can create a redirect pointing to “website.com/javascript:malicious_code”.

If the user is tricked to run the javascript code after “website.com/” the cookies of its authenticated/logged session of website.com will be sent to the attacker.

Features:

Port Forwarding using Ngrok and shortner using Bitly.com (Register for free)

Also Read – Top 5 Reasons Why You Need a Custom E-commerce Website in 2020

Requirement

https://bitly.com account (Register for free)

Disclaimer:

Usage of Self-XSS for attacking targets without prior mutual consent is illegal. It’s the end user’s responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program

Usage:

git clone https://github.com/thelinuxchoice/self-xss
cd self-xss
bash self-xss.sh

R K

Recent Posts

garak, LLM Vulnerability Scanner : The Comprehensive Tool For Assessing Language Model Security

garak checks if an LLM can be made to fail in a way we don't…

13 hours ago

Vermilion : Mastering Linux Post-Exploitation For Red Team Success

Vermilion is a simple and lightweight CLI tool designed for rapid collection, and optional exfiltration…

13 hours ago

AD-CS-Forest-Exploiter : Mastering Security Through PowerShell For AD CS Misconfiguration

ADCFFS is a PowerShell script that can be used to exploit the AD CS container…

13 hours ago

Usage Of Tartufo – A Comprehensive Guide To Securing Your Git Repositories

Tartufo will, by default, scan the entire history of a git repository for any text…

13 hours ago

Loco : A Rails-Inspired Framework For Rust Developers

Loco is strongly inspired by Rails. If you know Rails and Rust, you'll feel at…

2 days ago

Monolith : The Ultimate Tool For Storing Entire Web Pages As Single HTML Files

A data hoarder’s dream come true: bundle any web page into a single HTML file.…

2 days ago