November 2018
Beginner to intermediate
270 pages
7h 53m
English
When the application uses the HTTP POST request, it needs to have more information in mind to perform a CSRF attack. The following is an example of a POST request:
POST / HTTP/1.1 Host: www.mysocialnetwork.com User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:50.0) Gecko/20100101 Firefox/50.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Content-Length: 0 Content-Type: text/plain;charset=UTF-8 DNT: 1 Connection: close
When an application is using a POST request such as this, it is necessary to make a form to include the call to the methods to be exploited in the hidden fields. For example, using the past request, a form to exploit the vulnerability could be the following:
<iframe style="display:none" name="csrf-frame"></iframe> ...
Read now
Unlock full access