Re:German BSI withholds Truecrypt security report
by mehrdadn on Monday December 16, 2019 @02:46PM
(#21806424)
Can I just point out that this is just one vivid example of why tying setuid permissions to a file is a terrible design to begin with? Permissions should be derived from the execution context at run time. (People might hate me for saying this, but this is one of those design decisions Windows fundamentally gets right.)
[ Parent
| on HN ]
Re:German BSI withholds Truecrypt security report
by 001spartan on Monday December 16, 2019 @02:58PM
(#21806567)
Even Windows gets this wrong at times, with several UAC bypass techniques exposed by auto-elevating binaries. Still, Microsoft has done a great deal of work with the Windows privilege model to prevent things like this, and these issues are steadily being resolved.
Re:German BSI withholds Truecrypt security report
by gruez on Monday December 16, 2019 @04:48PM
(#21807628)
>with several UAC bypass techniques exposed by auto-elevating binaries
According to Raymond Chen, a MSFT employee:
>There really are only two [UAC] settings.
>* Always notify
>* Meh
https://devblogs.microsoft.com/oldnewthing/20160816-00/?p=94...
Re:German BSI withholds Truecrypt security report
by orf on Monday December 16, 2019 @03:59PM
(#21807131)
Pasting a random article from 2007 with no other comment is not a great rebuttal of what they said.
A _lot_ has changed since 2007.
Re:German BSI withholds Truecrypt security report
by mehrdadn on Monday December 16, 2019 @04:06PM
(#21807191)
I'm pretty sure the fact that it's not a security boundary has not changed since 2007. They should've probably marketed it better to clarify this, but that's not a technical issue. It was always a horrible idea to run a malicious program under your credentials relying on UAC to enforce any security. That's never changed.
Re:German BSI withholds Truecrypt security report
by saagarjha on Monday December 16, 2019 @05:47PM
(#21808310)
How do you suggest implementing passwd without setuid?
Re:German BSI withholds Truecrypt security report
by JdeBP on Tuesday December 17, 2019 @10:17AM
(#21814267)
Using the design of the LSASS is one way, as mentioned. Others include OpenWall's tcb, and Daniel Rench's userdirs.
* https://www.openwall.com/tcb/
* https://web.archive.org/web/20030919191907/http://dren.ch:80...
Re:German BSI withholds Truecrypt security report
by mehrdadn on Monday December 16, 2019 @05:50PM
(#21808353)
Off the top of my head? Ask a system service that has the privilege to change it for you after authenticating you.
Re:German BSI withholds Truecrypt security report
by saagarjha on Monday December 16, 2019 @05:54PM
(#21808403)
Isn’t that exactly what passwd is? A system service that has permission to change the passwords file?
Re:German BSI withholds Truecrypt security report
by mehrdadn on Monday December 16, 2019 @05:58PM
(#21808443)
No, the point is that passwd should obtain its privilege by virtue of being started by a privileged process, not by virtue of being marked as a privileged program when it's run by an unprivileged user.
Re:German BSI withholds Truecrypt security report
by saagarjha on Monday December 16, 2019 @06:49PM
(#21808891)
How do you start the privileged process as a normal user?
Re:German BSI withholds Truecrypt security report
by mehrdadn on Monday December 16, 2019 @06:52PM
(#21808913)
You don't. It's already started as part of the system. Or you ask some part of the system that is willing to authenticate you to do it for you.
Re:German BSI withholds Truecrypt security report
by exikyut on Monday December 16, 2019 @10:03PM
(#21810125)
Shhhhhhhhhh.
Stop giving systemd more ideas.
(/s)
(But seriously, imagine a world where you can't get root because D-Bus crashed.)