Use burp to generate the POC to verify the CSRF

Experimental environment: phpstudy, DVWA, burpsuite
Demo process:
<1>Use burp proxy to submit content
(the proxy recommends using the FoxyProxy small plug-in)
Insert picture description here

Insert picture description here

<2>Search for CSRF POC automatic generation option in burp
Insert picture description here

<3>You can see the following to automatically generate POC
Insert picture description here

Automated writing is sometimes unavailable, it is best to change some
<4> and copy the HTML code to the newly created csrf.html
Insert picture description here

<5>Open it
Insert picture description here

<6>Click to request
Insert picture description here

You can see that the password was successfully changed.
Although this method is successful, it must interact with the user to execute successfully, so we need to change the code to make it more difficult to find.
<7>Add two lines of js script code to realize automated virtual requests
Insert picture description here

<8>Open the website again to verify and find that it will quickly jump to greatly reduce the rate of discovery

Guess you like

Origin blog.csdn.net/bring_coco/article/details/111182955