4 ms·
Not quite every week, but yeah it has a lot. And if the target uses sudo at all you don't even need an exploit! But nobody mentioned Linux. There's no need for
by IshKebab 7mo ago
Not quite every week, but yeah it has a lot. And if the target uses sudo at all you don't even need an exploit!
But nobody mentioned Linux. There's no need for whataboutism. They both shouldn't have these vulnerabilities.
- hnlmorg 7mo ago> And if the target uses sudo at all you don't even need an exploit! Why would a target executable use sudo? There are proper mechanisms for automated elevation of permissions and sudo isn’t it. sudo is designed for user interactivity. And by default prompts for a password. However some people get lazy and disable the password entry requirement.
- IshKebab 7mo agoA target user. If you get local code execution on the account of a user that uses sudo you can trivially got root. Doesn't matter if they disabled the password authentication or not.
- hnlmorg 7mo agoOf course it matters if they disabled password authentication. If you require password authentication when running sudo then an attacker has to find a RCE exploit and then crack a password. Which is waaay beyond any effort the average attacker is willing to invest. Because At that point, root access isn’t really worth the effort. An attacker will probably just use the host for sending spam emails, bot / DDoS traffic or look for other daemons they can jump to which weren’t web accessible (eg a database). And furthermore, if you’ve got a RCE in a daemon then that code is the running as the daemons’ user. Which shouldn’t be in the sudoers file (eg wheel group) to begin with.
- IshKebab 7mo ago> If you require password authentication when running sudo then an attacker has to find a RCE exploit and then crack a password. Nope! Just alias sudo to something that logs the password.
- gamer191 7mo agoInteresting. If that’s possible (I haven’t tested it, but I’m sure it is) then you wouldn’t even need to log the password. You could just alias sudo to a bash script that runs your malicious payload using the real sudo. Then the user would run the command, be prompted for their password by the real sudo, and be none the wiser that a malicious script has just been executed For what it’s worth, Windows’ security model says it’s not an exploit that programs can grant themselves admin rights if the user is an admin (https://github.com/hfiref0x/UACME https://github.com/hfiref0x/UACME). But afaik Linux doesn’t have that model so it is a bit of an issue that this is possible
- hnlmorg 7mo ago> Interesting. If that’s possible It’s not possible. At least not unless those users have already borked their own system. The previous poster was clutching at straws.
- IshKebab 7mo agoOf course it's possible. I've tried it. It works. It's just standard Unix features. What makes you think it isn't possible?
- hnlmorg 7mo agoFor the reasons I’ve already stated: daemons don’t run with permissions to write into users directories. You’ve shifted goal posts to now talk about desktop applications when the topic was originally about daemons
- IshKebab 7mo ago> You’ve shifted goal posts to now talk about desktop applications when the topic was originally about daemons You imagined that. The topic was never originally about daemons.