Re:If You're Typing The Letters A-E-S Into Your Code, You're...
by mrcharles on Monday January 04, 2010 @03:26PM
(#1031136)
The real answer is that you sound like you'd benefit from reading the whole damn article.
[ Parent
| on HN ]
Re:If You're Typing The Letters A-E-S Into Your Code, You're...
by jrussbowman on Monday January 04, 2010 @03:55PM
(#1031221)
Well, I read the entire article, and it's quite interesting that there are things like Keyczar and cryptlib out there, I still think it's a poor example. Other than a brief note on encryption does not equal authentication, they never touched on the fact that encrypting the cookie data itself isn't a real solution, as the encrypted cookie can be sniffed, and replayed to the server.
So, while standard user can't hack their own cookie for escalation, they can sniff admin cookies to get that escalation. If the cookie is used for authentication or authorization, encrypting it's content is providing a false sense of security, no matter what nifty library you choose or not choose to do it with.
Re:If You're Typing The Letters A-E-S Into Your Code, You're...
by tptacek on Wednesday January 06, 2010 @01:00AM
(#1034270)
The attack you just described applies to all online commerce. Your bank and brokerage (and the clearing firm your brokerage uses) all fall to HTTP cookie sniffing.
The point isn't the relationship between you, Bank of America, and a hacker; it's the relationship between you (a hacker) and Bank of America.
Re:If You're Typing The Letters A-E-S Into Your Code, You're...
by zmimon on Monday January 04, 2010 @10:31PM
(#1031784)
> as the encrypted cookie can be sniffed, and replayed to the server
I think the whole article is premised on requiring a level of security that would presume TLS is being used.
Re:If You're Typing The Letters A-E-S Into Your Code, You're...
by NateLawson on Tuesday January 05, 2010 @01:03AM
(#1031961)
Yes, the focus is on preventing cookie forgery for pre-auth account compromise or privilege escalation.