News for hackers. Stuff that matters.
Re:Robinhood Stored Passwords in Plaintext by yread on Wednesday July 24, 2019 @06:18PM (#20520544)
plain text passwords in HTTP request headers? Wouldn't that be usually in POST body which almost never gets logged?
Re:Robinhood Stored Passwords in Plaintext by bigiain on Wednesday July 24, 2019 @09:02PM (#20521717)
I have, on a not insignificant number of occasions, used mod_dumpio in Apache to debug things. Which means I end up with all POST payloads in log files. Which has occasionally meant I ended up with plaintext passwords in log files... I am extremely careful when doing this. But I have seen cow orkers copy my debugging techniques and "forget" to switch off the dumpio logging - which has at least once been discovered when a prod server's log files started blowing out in size dramatically. With real user passwords in it... (Quite how mod_dumpio and it's config ended up on a prod server is another rant, which needs to be done over whisky, not in the office...)
Re:Robinhood Stored Passwords in Plaintext by avip on Thursday July 25, 2019 @03:18AM (#20523348)
Re:Robinhood Stored Passwords in Plaintext by daxterspeed on Wednesday July 24, 2019 @07:08PM (#20521018)
Small enough POST bodies could still be worth logging to detect issues. Of course because of things like this it generally isn't a good idea, but there's still instances where it could be important to log POST bodies to eg. understand certain automated attacks.
Re:Robinhood Stored Passwords in Plaintext by dharmab on Wednesday July 24, 2019 @06:43PM (#20520779)
Headers often include session tokens, though
Re:Robinhood Stored Passwords in Plaintext by jrockway on Wednesday July 24, 2019 @08:18PM (#20521483)
While careless and problematic, that is less problematic than logging passwords. The user probably reuses their password, so as soon as some developer can just look at logs and get a bunch of email/passwords, they probably now have access to other systems that they shouldn't.

That said, there are more than just logs to worry about. Is your service-to-service traffic encrypted? Then passwords are in the tcpdumps that you took to analyze a strange networking bug (you then copied the password to your workstation to look at the trace in wireshark). Do your programs segfault and core dump? Then passwords are probably in that core dump. Do you check the bounds of every memory read and write operation? Then passwords are probably in random variables (see: Heartbleed/Cloudbleed).

Sessions, though, are less scary. Sure, if you steal someone's cookie internally, you can impersonate that user on your own services. Nobody wants that, because it probably bypasses all the internal auditing systems; the auditing system can't tell that request apart from a legitimate user request. But, cookies can be revoked and have a shorter lifetime than a passwords, so it's not quite as bad.

Ultimately, it's all about limiting risk. If you have a database full of passwords, then someone compromising that database today gets all passwords ever. If you have a disk full of logs full of passwords, someone gets all the passwords that were used to log in within that log server's retention time period. If someone hacks in and starts tcpdumping your internal network and it's not encrypted, they only get passwords from users that log in while they're running tcpdump. If you encrypt network traffic, then someone only gets passwords that were in memory when your binary crashed. Nothing is perfect, but you can do more to add more security. Perfection is impossible, but not logging passwords is one step closer to perfection.

Re:Robinhood Stored Passwords in Plaintext by londons_explore on Thursday July 25, 2019 @03:16AM (#20523339)
Session cookies should be locked to a TLS channel ID.

Then they are useless to anyone who steals them, since a TLS channel ID can't be recreated except with access to the TPM of the computer which initially created the cookie/session/TLS connection.

Re:Robinhood Stored Passwords in Plaintext by yread on Thursday July 25, 2019 @10:39AM (#20525731)
Can you post a bit more about how to do that? Your comment is a first result for my googling
Re:Robinhood Stored Passwords in Plaintext by SahAssar on Thursday July 25, 2019 @05:43AM (#20523971)
That requires support for token binding which google killed.