CSRF or protection to CMS

MalekRetro

New Member
Oct 3, 2015
22
1
Hi guys! I have a quick question, how do I enable CSRF protection on my cms or any protection? And on which file do I put the script you'll give me etc...


I have these codes but I don't know what they do and how to use them.
Sorry for my bad English I'm from Sweden
 

Attachments

  • 684fdccd6bb34b32b52ab0cf64fc77d5.png
    684fdccd6bb34b32b52ab0cf64fc77d5.png
    42.9 KB · Views: 14

Jerry

not rly active lol
Jul 8, 2013
1,957
522
Atm, my friends CMS but I mean is there not any way you can protect any cms u have? like what if i want to change cms next week
ur friends CMS? Is it Rev, Uber, Brain???

And yes, it's possible to add CSRF protection on any CMS.

Here's an example:
a12acda0798e4bceb5e5d5fe6c0071aa.png


And I make a check on the login form if the token is correct:
cb9c8b7db11846d7b2dffe9fca7d43e9.png
 

MalekRetro

New Member
Oct 3, 2015
22
1
ur friends CMS? Is it Rev, Uber, Brain???

And yes, it's possible to add CSRF protection on any CMS.

Here's an example:
a12acda0798e4bceb5e5d5fe6c0071aa.png


And I make a check on the login form if the token is correct:
cb9c8b7db11846d7b2dffe9fca7d43e9.png
Okay but where do I put this code? On every file or at the bottom or where? And which one of the images u sent? :S
 

Jerry

not rly active lol
Jul 8, 2013
1,957
522
The code for setting the token to the session should be placed in the global file (e.g., global.php) or wherever it is and the one for checking if the token is correct should be in the login form (class.templates.php, index.php or wherever the login form is placed).
 

MalekRetro

New Member
Oct 3, 2015
22
1
The code for setting the token to the session should be placed in the global file (e.g., global.php) or wherever it is and the one for checking if the token is correct should be in the login form (class.templates.php, index.php or wherever the login form is placed).
do u have skype bro?
 

Users who are viewing this thread

Top