Wiki

Articles tagged with "csrf", sorted by viewsX
Displaying 1-6 of 6 result(s).

How to validate CSRF token with session

Created 4 years ago by yangmlsHow-tos2 comments – viewed 50,355 times – ( +23 ) – version 1.1
First of all, You must change component config to enable the default Yii CSRF validation.
tags: CSRF, session

[Guide] How to actually separate Frontend (User) and Backend (Admin) on Yii2 Advanced

Created about a year ago by Wade ShulerHow-tos2 comments – viewed 38,634 times – ( +17 / -1 ) – version 2.0
I am writing this guide because I struggled to find a resource that included ALL of the necessary steps to completely separate the frontend from the backend. After reading guides like Configuring different sessions for backend and frontend in yii-advanced-app and yii2 configuring different sessions for backend and frontend in yii advanced application template, there are still steps missing. It is funny how the 2nd one says it is an extension of the first one's article. So I guess, my wiki guide here is yet a 3rd and more complete extension of both of them. I also found a few StackOverflow questions and blog posts regarding this topic. None of them fully worked, and must be missing some magic sauce!

Checking for "expired" sessions/logins on the client side

Created 3 years ago by le_topHow-tos0 comments – viewed 21,691 times – ( +6 ) – version 1.1
Getting "Expired token" errors ? Here is a solution to avoid invalid CSRF on POST or ajax requests, or user identity changes.

Logout CSRF Protection

Created 5 years ago by Rodrigo CoelhoTutorials1 comment – viewed 17,554 times – ( +10 ) – version 1.1
CSRF is the acronymn for Cross-site request forgery. It is an attack which forces an end user to execute unwanted actions on a web application in which he/she is currently authenticated.

default csrf security and ajax post in one controller

Created 2 years ago by jasonbanTutorials3 comments – viewed 11,941 times – ( +1 / -3 ) – version 1.1
Hello Yii friends

[PT-BR] Proteção Contra Logout CSRF

Created 5 years ago by Rodrigo CoelhoTutorials0 comments – viewed 7,958 times – ( +2 / -1 ) – version 1.1
CSRF é o acrônimo para Cross-site request forgery. CSRF é um ataque que forca o usuário a executar ações não desejadas numa aplicação Web na qual ele está autenticado.