News for hackers. Stuff that matters.
Re:Sudo vulnerability by mehrdadn on Saturday October 26, 2019 @09:21PM (#21367350)
> Ignoring the implementation, I think it's fair to say sudo is broken in concept

IMO you're not going far enough. The whole UNIX setuid notion is fundamentally broken to me. The ability to execute a file should logically have nothing to do with the permissions granted to you when doing so. Windows gets this right.

Re:Sudo vulnerability by nray on Sunday October 27, 2019 @02:27AM (#21368160)
> Windows gets this right.

_If_ you turn it all the way up. The default setting "3" allows certain "approved" apps to be launched without the UAC prompt, based on what's in their manifest I think. Turn it up to "4" and it works as expected.

If you're looking for a quick way to elevate the Explorer shell, run `hh \` (the Html Help viewer) from an elevated prompt.

Re:Sudo vulnerability by tannhaeuser on Sunday October 27, 2019 @03:10AM (#21368281)
What is broken about setuid/setgid? Of course today we have eg SELinux, AppArmor, capsicum and other more sophisticated means, but still the basic setuid mechanism is sound: if you need access to privileged files, you can do so only via trusted setuid programs that only an admin or owner of said privileged file can setup with the setuid bit.
Re:Sudo vulnerability by iancarroll on Saturday October 26, 2019 @10:47PM (#21367605)
How does Windows get it right? Windows has User Account Control for UI apps, which is a “security” feature that they refuse to fix bypasses in.
Re:Sudo vulnerability by minitech on Saturday October 26, 2019 @10:59PM (#21367647)
Which UAC bypasses have they refused to fix?
Re:Sudo vulnerability by mehrdadn on Saturday October 26, 2019 @11:17PM (#21367699)
He's probably referring to [1], but he's wrong about UAC (note the sentence "UAC is not a security feature" on that post—the fact that he himself had to put quotes around "security" is itself telling), and moreover, I never claimed anything about UAC in the first place. He's ignoring my point and changing the topic, so I'm not inclined to reply.

[1] https://devblogs.microsoft.com/oldnewthing/20160816-00/?p=94...

Re:Sudo vulnerability by iancarroll on Sunday October 27, 2019 @06:08AM (#21368807)
I don't know why this reply is so hostile, but I was curious what part of Windows you were referring to if not UAC, because I don't know of anything else.

There is an almost comical list of bypasses in built-in AutoElevate programs that Microsoft does not triage as security bugs because as you note they don't call UAC a security feature. I think this is a rather silly deflection that users are unlikely to understand, for good reason.

Re:Sudo vulnerability by mehrdadn on Sunday October 27, 2019 @08:04AM (#21369194)
I wasn't referring to a "part" at all. What I said Windows gets right was a very fundamental architectural design: the decision to not grant privileges to a process based on the file it's executing (the callee), but rather based on the caller's execution context.

Note, in particular, that there was nothing in my comment that depended on the existence of UAC. Had I written my comment before UAC even existed (say, in the XP era), it would've been exactly the same.

Yet somehow you managed to change the subject of discussion to a very specific feature UAC, a feature that was only introduced around the Vista era and which I had not even mentioned in my comment once. Then you bashed it based on a premise that you already knew was incorrect and therefore had to put in quotes, and then continued as if the point I had been making in my comment all along was to somehow endorse the use of this controversial feature I never mentioned for a purpose that it itself had not been intended. This is not a faithful representation of what I wrote.

Re:Sudo vulnerability by johnisgood on Saturday October 26, 2019 @11:41PM (#21367764)
I have no idea what he is referring to but being able to "Run as Administrator" as any user is sketchy.
Re:Sudo vulnerability by minitech on Sunday October 27, 2019 @12:16AM (#21367853)
I’m pretty sure only administrators can Run as Administrator?
Re:Sudo vulnerability by antisemiotic on Sunday October 27, 2019 @02:58AM (#21368256)
Unless "user that was created with admin rights which were later taken away" counts as admin, then no. I always set up a separate admin account and hardly ever have to log into it to do admin stuff.