Re:Running Rails? Defend yourself against BREACH
by homakov on Saturday August 03, 2013 @01:43PM
(#6152712)
obviously second version (when CSRF token is stolen) is not possible to mitigate.
Re:Running Rails? Defend yourself against BREACH
by btilly on Saturday August 03, 2013 @02:07PM
(#6152780)
There is a way that the CSRF attack could be prevented. And that is if only every other byte of the CSRF token was part of the token, and the others were random every time.
In that case it would be impossible to predict common text in the CSRF based on past compression rounds.
Re:Running Rails? Defend yourself against BREACH
by homakov on Saturday August 03, 2013 @02:11PM
(#6152798)
XOR-based masking, yes, but I thought we were talking about currently common systems.
Until BREACH nobody masked tokens, did they?
But as http://arstechnica.com/security/2013/08/gone-in-30-seconds-n... makes clear, another variant lets you get the CSRF token, and after that the CSRF token is no protection at all against anything else that people try.