News for hackers. Stuff that matters.
Re:The Linux Backdoor Attempt of 2003 by gmiller123456 on Tuesday October 09, 2018 @02:12PM (#18178379)
"But the attempt didn’t work, because the Linux team was careful enough to notice that that this code was in the CVS repository without having gone through the normal approval process. Score one for Linux."

Actually, they were just lucky enough that someone wasn't able to break into the main BitKeeper repository. It is highly unlikely that any private organization could withstand a state sponsored intrusion from the likes of the US, Russia, or China. And that's assuming they needed to. They probably already have found bugs that would let them in without going to such lengths. Also take into consideration that just "Linux" by itself is useless, there will be a lot of other 3rd party applications installed on the system with a lot less strict security over their source code.

The particular bug in question doesn't actually provide an exploit, it just sets the current UID to 0. An attacker would still need some other method of executing their own code under that ID which would require the ability to create new processes (e.g. the command line), or a method of altering the code of the current process through some other bug. The fact that an accompanying alteration wasn't found that allowed for that is a good hint that there's a lot more problems.

Re:The Linux Backdoor Attempt of 2003 by wscott on Wednesday October 10, 2018 @06:59AM (#18183693)
disclaimer: I was one of the BitKeeper developers in 2003

> Actually, they were just lucky enough that someone wasn't able to break into the main BitKeeper repository.

That is kinda the point of BitKeeper (and yes git as well). The "main" repository is just a convention and everybody has a copy of it. If you changed a line of code in the history then the checksums wouldn't match and this checksum difference would propagate to all following csets. BitKeeper would give an error when talking to the server with this change.

This was actually one of our complaints about git. It is entirely too trusting of blobs of data sent from another git repository. Files are stored and indexed by the SHA1 hash, but that hash is not revalidated when files are read again in the future. We could mangle git objects and then git would checkout bad files without complaining. This would even happen for objects sent over the wire. Only the enclosing checksum is validated but the corrupted objects were not detected. A 'git fsck' would notice, but this is really expensive so rarely used. It has been a long time, so git may have improved.

Re:The Linux Backdoor Attempt of 2003 by saagarjha on Tuesday October 09, 2018 @04:41PM (#18179645)
Are there any calls that check the UID before performing a privileged operation? It seems to me like this would be exploitable, since modifying a kernel data structure like this is surely not intended.
Re:The Linux Backdoor Attempt of 2003 by mikeash on Tuesday October 09, 2018 @05:57PM (#18180164)
I think the other commenter is trying to say that this is only a local exploit, and an attacker would also need a remote exploit (or be allowed remote access) to use it.
Re:The Linux Backdoor Attempt of 2003 by marcosdumay on Tuesday October 09, 2018 @11:13PM (#18181686)
> Are there any calls that check the UID before performing a privileged operation?

All of them. that's what the UID is for.

Re:The Linux Backdoor Attempt of 2003 by saagarjha on Wednesday October 10, 2018 @02:59AM (#18182599)
That's what I thought–this basically gives you root access. So it's just a privilege escalation, plain and simple.