fixed potential vulnerability in form CRSF handling, thanks Anthony
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.4.6-stable+timestamp.2013.04.28.23.04.43
|
||||
Version 2.4.6-stable+timestamp.2013.04.28.23.09.04
|
||||
|
||||
+1
-1
@@ -1995,7 +1995,7 @@ class FORM(DIV):
|
||||
if session is not None:
|
||||
formkey = session.get('_formkey[%s]' % formname, None)
|
||||
# check if user tampering with form and void CSRF
|
||||
if formkey != request_vars._formkey:
|
||||
if not formkey or formkey != request_vars._formkey:
|
||||
status = False
|
||||
if formname != request_vars._formname:
|
||||
status = False
|
||||
|
||||
Reference in New Issue
Block a user