I'm playing a bit with HTTP requests with fiddler. Basically the site is my router interface which asks for a password. The password is then encrypted (with a function i have, branded MD5 of some kind) and passed to the server in the body of the POST request.
Here what i've done:
- With fiddler i sniffed the browser GET request (got a redirection 302)
- With fiddler i sniffed the server response
- With fiddler i sniffed the browser POST request (after typing the password)
- Browser successfully logged in.
then:
- With fiddler composer i performed a GET request equal to the one sniffed. (got a redirection 302)
- With fiddler i sniffed the server response (each time the site provides to the client a different Set-Cookie value which is used in the brand MD5 function for antiXRSF attacks).
- With fiddler composer i reproduced the sniffed POST request with a different body content due to the new Set-Cookie value.
The body of the post request is indeed correct because it is calculated by the very same function used by the browser.
What came to my mind now:
- I'm using the wrong Set-Cookie value --> not possible since if i try to guess the body content of a browser request with the available parameters, the guess turns out to be correct.
- The redirection performed by fiddler is done without the Set-Cookie or with a different one --> i saw i can decide not to follow a redirect, is there a way to decide what to pass in the header during a redirection? I'll test more directly on the redirected url.
Regards,