CSRF semantics questions #50729
-
|
Hey guys, I'm taking a stab at the CSRF extension, and came up with some questions...
I'll note my setup is possibly non-standard; loading webpages and doing GET/POST/etc with ajax calls. But still feels close to what I need, just a bit quirky |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
You can't get access to the cookie from Java Script unless specifically requested
All non idempotent verbs are checked.
Are you talking about GET ? If it is get the absence of the cookie is tolerated because it is an idempotent method.
Yes, if you prefer to do it manually, as opposed to the CSRF extension doing it, then you'd need to have your own code doing it.
I don't know... In general the CSRF extension is about having a token, possibly signed, matched against the cookie. Since you are talking about the manual verification, perhaps you disabled the token verification ? In any case, please create a reproducer for us to have a more specific conversation. Thanks |
Beta Was this translation helpful? Give feedback.
Hi @GregJohnStewart
You can't get access to the cookie from Java Script unless specifically requested
All non idempotent verbs are checked.
Are you talking about GET ? If it is get the absence of the cookie is tolerated because it is an idempotent method.
Can you give me a favor and create a reproducer ?