[…], otherwise known as XSS, occurs when an attacker sends a victim a link to a legitimate website that contains a malicious script embedded in the URL, which is executed when clicked on.
The malicious script then sends the victims data to the attacker (session cookies, credentials, etc)
Cross-Site Scripting
A […] XSS attack allows scripts to be run in user input
Affects only users who click on the link
Ex:
Search Box
Non-persistent (Reflected)
A […] attack involves the attacker posting the malicious link to a social media platforms server, which means everyone gets the payload now.
Affects everyone who visits the website
Persistent XSS
(Stored)
To protect yourself against XSS attacks, you should:
-[…]
-[…]
-[…]
-[…]