Show Menu
Cheatography

XSS Cheat Sheet (DRAFT) by [deleted]

This is a draft cheat sheet. It is a work in progress and is not finished yet.

What is XSS?

XSS uses the website as the attack vector to inject code into a different user's browser
Typically used to steal users cookies or session tokens, modify­/re­direct the page for phishing
Uses the <sc­rip­t> tag to execute your code on the website you are attacking

Types

Reflected XSS (Non-p­ers­istent)
Stored XSS (Persi­stent)

What is Reflected XSS?

If you can get persis­tence, all other users who visit that website will have your code executed.
Deadly with link shortening
Can be used to test which fields lack filtering