K
K
kovalr2017-08-18 14:17:53
PHP
kovalr, 2017-08-18 14:17:53

Authorization on the site: how does the browser know which csrf_token to use?

There is a site (iRedMail admin panel) on which you need to log in and then make a POST request to create a user.
Parsed responses from the server via HttpFox. When creating a user, the browser does this Post Data

csrf_token=M7EwC2873KgEDVT67L36k36UJEeGcm5F&username=test&domainName=domain.com&newpw=test&confirmpw=test&cn=&mailQuota=&oldMailQuota=

How does the browser know which csrf_token to use?
Do I understand correctly that in addition to cookies, the site also has token protection?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Pushkarev, 2017-08-18
@kovalr

Read about CSRF . csrf_token is given by the server and you must return it

A
alex maslakoff, 2017-08-18
@teke_teke

the browser does not know. knows the server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question