Re:HTTP cookies, or how not to design protocols
by brlewis on Friday October 29, 2010 @03:40PM
(#1848699)
I don't think an attacker can influence my ACTION attribute, but just in case, I use only 4 characters from my session token (1MM combinations). I don't think CSRF tokens are easy to brute-force, so that should be long enough.
I don't like keeping per-request state on the server, else I would use random CSRF tokens.
I don't like keeping per-request state on the server, else I would use random CSRF tokens.