News for hackers. Stuff that matters.
Re:Go home Twitter, you're drunk by Argorak on Sunday October 19, 2014 @06:01PM (#8479798)
Reading the memory of another process is not allowed on modern OS for precisely that reason, so this would be another exploit. (http://en.wikipedia.org/wiki/Process_isolation) But the keys are most likely on disk, readable by the server ;).

Also, some setups are not prone to this: Twitter most likely uses an proxy terminating SSL and then forwards the request to a smaller webserver running the app. This one will not hold the keys.

Most larger webservers can also run the app workers with a different user than the webserver itself.

Re:Go home Twitter, you're drunk by sheetjs on Sunday October 19, 2014 @06:02PM (#8479800)
> Twitter most likely uses an proxy terminating SSL

https://en.wikipedia.org/wiki/SSL_termination_proxy

Re:Go home Twitter, you're drunk by blibble on Sunday October 19, 2014 @09:02PM (#8480249)
> Reading the memory of another process is not allowed on modern OS for precisely that reason, so this would be another exploit.

both Linux and Windows allow processes to read the memory of other processes running as the same user, via ptrace() and /proc/pid/mem on Linux, and via ReadProcessMemory() on Windows.

(how else could you ever debug anything?)

Re:Go home Twitter, you're drunk by Argorak on Sunday October 19, 2014 @09:32PM (#8480335)
Yes, but PTRACE can be disallowed by the process and behaves differently on some kernels, e.g. Ubuntu hardened:

https://wiki.ubuntu.com/SecurityTeam/Roadmap/KernelHardening... https://fedoraproject.org/wiki/Features/SELinuxDenyPtrace

They usually only allow ptrace from parent to child or as root.

Also, wrt debugging, see the comment in the second link:

> If you are running a machine and do not plan on debugging the applications on this machine, you should turn this boolean on.

Re:Go home Twitter, you're drunk by pizzeys on Monday October 20, 2014 @11:55AM (#8482764)
ReadProcessMemory() requires the process to have debug privileges.

(how else could you ever secure anything?)

Re:Go home Twitter, you're drunk by Ded7xSEoPKYNsDd on Sunday October 19, 2014 @08:49PM (#8480216)
All web servers I've seen open the key files before dropping root privileges. These should never be readable by anything but root.