7 ms·
running as root??? seriously?????
by mrbig4545 11y ago
running as root??? seriously?????
- falcolas 11y agoMost developers don't think (or know) about security issues like this, and running something as root avoids a whole class of deploy problems, so I understand why this can happen. It's certainly not right, and indicative of the need for either a system administrator with an eye for deployment best practices, or an explicit security position who sets up audits to look for these kinds of flaws.
- mahouse 11y agoTo be honest I think you're trying to come up with an explanation for the unexplainable. Running absolutely nothing as root is Security 101
- zobzu 11y agothey generally don't give a shit its about deploying as fast as possible and dealing with problems is something for sre's/people later not a very nice dev models for customers, but works well for corporations since they need to fail as fast as possible
- acdha 11y agoThis was a stronger argument in the past when multi-user/app systems were the rule. If you have only one app running on a box and it can access all of the data which matters, what precisely does getting root give you which getting that app user does not? Yes, someone could install a rootkit but these days the way to deal with a compromise is to replace the entire system and in either case it's most likely that that process would be initiated by some external clue. (edit: to be clear, I still don't deploy as root but that's more for other reasons like isolation and I'd be surprised if that was the most pressing security concern on many sites as opposed to things like insecure local services, overly-broad, chainable credentials, etc.)
- detaro 11y agoThe ability to go around the host firewall. Accessing data from sub-services that otherwise might run isolated under their own users. The ability to change application source code. Not applicable in all cases, but probably often enough.
- acdha 11y agoMy point wasn't that those aren't good but that they're hard enough to do effectively that most places won't see much benefit until they've done a bunch of other things first. e.g. how many places use least-privilege auth credentials vs. having something like AWS keys or shared database credentials which have access to a ton of shared resources? I'd want to compartmentalize something like that well before changing the UID which code runs under since it's available without any further exploits.
- marcosdumay 11y agoIt'll probably get you ability to rewrite the logs, interfere with monitor, and all other capacities needed to hide the breach. (Yes, the logs should be remote and write-only. Now, what are the actual odds of that?)
- acdha 11y agoIt's certainly possible that something will be logged and it's even possible that someone is actually watching the logs but it's still a gamble that the attacker does something which draws attention: if they have a solid exploit and don't do something which disables legitimate service it's unlikely to be noticed at most organizations.
- stephengillie 11y ago> a system administrator with an eye for deployment best practices Many companies call this position "DevOps Manager" or something similar. They usually own their servers, manage builds and deploys, maintain the repos, and communicate to management and developers.
- stefantalpalaru 11y ago> running something as root avoids a whole class of deploy problems Only one class of deploy problems: you're not at all familiar with Linux or other Unix clones.
- nadams 11y agoAfter seeing a popular indie game developer connect directly to MySQL from his game [1] - nothing surprises me anymore. [1] http://forums.somethingawful.com/showthread.php?noseen=0&threadid=2803713&pagenumber=258#post398884189 http://forums.somethingawful.com/showthread.php?noseen=0&thr...
- sp332 11y agoSorry, you must be a registered forums member to view this page.
- _yy 11y agohttps://webcache.googleusercontent.com/search?sourceid=chrome-psyapi2&ion=1&espv=2&es_th=1&ie=UTF-8&q=cache%3Ahttp%3A%2F%2Fforums.somethingawful.com%2Fshowthread.php%3Fnoseen%3D0%26threadid%3D2803713%26pagenumber%3D258%23post398884189&oq=cache%3Ahttp%3A%2F%2Fforums.somethingawful.com%2Fshowthread.php%3Fnoseen%3D0%26threadid%3D2803713%26pagenumber%3D258%23post398884189 https://webcache.googleusercontent.com/search?sourceid=chrom...
- coldpie 11y agoThe short version: Super Meat Boy for PC connected directly to a MySQL database to upload levels created in the level editor. The DB address, username, and password were all stored in plaintext in the binary. The DB user had UPDATE and INSERT permissions, but not DELETE, so the game author figured there was no harm to make that user public. Contemporary HN thread about it: https://news.ycombinator.com/item?id=3387628 https://news.ycombinator.com/item?id=3387628
- MichaelGG 11y agoI've seen a serious multitenant business app that manages financial info do this. Except the credentials were root. And also valid for SSH. Users would run a Java applet, which would SELECT from users (after connecting as root) to determine if their login was successful. 7-8 figures per install and this was a "known issue".
- 11y ago