Re:Ask HN: Buffer got hacked - does anyone know details?
by shawnz on Saturday October 26, 2013 @07:40PM
(#6619933)
Maybe I am misunderstanding, but how is it possible to encrypt the access token? Doesn't the server need it in plaintext to make requests?
[ Parent
| on HN ]
Re:Ask HN: Buffer got hacked - does anyone know details?
by mpeg on Saturday October 26, 2013 @08:35PM
(#6620141)
If the web server is making API calls, encryption could still protect you from some SQL injection attacks, even if the decryption key for all tokens was in the web app code.
With a system of this scale, the web server will probably be making no API calls, as everything might be sent via some distributed system.
There are, anyway, many solutions to store the keys, a key vault that is separate from both database and application/web servers would be ideal.
There's not much to do if an attacker gains control of every machine, so the general idea is to keep every attack vector as isolated as possible.
Re:Ask HN: Buffer got hacked - does anyone know details?
by ArturoVM on Monday October 28, 2013 @12:33PM
(#6627924)
Remember encryption is not the same as hashing :) With encryption you can reverse the process, as long as you have the encryption key(s). With hashing, you can't.
Re:Ask HN: Buffer got hacked - does anyone know details?
by shawnz on Monday October 28, 2013 @01:34PM
(#6628366)
I realize, but whatever server is making the API calls needs unrestricted access to the key and the encrypted tokens. So if server is compromised, the access tokens are necessarily compromised too, aren't they?