Have we seen exploitation in the wild yet?
If it hadn't been discovered for another month or so, then it would have appeared in stable Fedora 40, Ubuntu 24.4 and Debian, and then it definitely would have been exploited. Another year it would have been in RHEL 10. Very luck escape.
Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
361–370 of 500 posts
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#362I wonder if separating the test files out into their own repo, so that they would not have been available at build time could have made this harder. The reasoning being that anything available and this potentially involved in the build should be human readable.
That's actually a good principle to adopt overall.
We should treat this attack like an air plane accident and adopt new rules that mitigate the chances of it being successfully carried out again. We might not be able to vet every single person who contributes, but we should be able to easily separate out noisy test data.
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#363Earlier quoted context omitted.
I suspect the original rationale is about preserving the longevity of the backdoor. If you blow a hole wide open that anyone can enter, it’s going to be found and shut down quickly. If this hadn’t had the performance impact that brought it quickly to the surface, it’s possible that this would have lived quietly for a long time exactly because it’s not widely exploitable.
This is just a safety measure that it does not blow up in your own face (country).
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#364Earlier quoted context omitted.
I'm not too familar with the SSH protocol, but is it possible to impersonate a victim server V without having the private key to their host key?
This stuff is pre-auth. You can just treat the entire thing as opaque and proxy everything to the host you're trying to compromise; as soon as you have an exploit string for a given host you can just replay it.
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#365Earlier quoted context omitted.
This stuff is pre-auth. You can just treat the entire thing as opaque and proxy everything to the host you're trying to compromise; as soon as you have an exploit string for a given host you can just replay it.
The whole point of asymmetric-key is that a middleman can't do that. Even if you relayed the entire handshake, all traffic after that is just line noise to you unless you have the transmitter's private key. You can't read it or mangle it (well, you can mangle it, but the receiving party will know it was mangled in transit). The exploit string on the wire for that transmission won't work in the context of any other tr…
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#366Earlier quoted context omitted.
Interesting... Though you can edit whatever log file you want
Any log that root on that box has write access to. It’s theoretically possible to have an anomaly detection service running on a vulnerable machine dumping all of its’ data to an append-only service on some other non-compromised box. In that case, (in this ideal world) the attacker would not be able to disable the detection service before it had logged the anomalous traffic, and wouldn’t be able to purge those logs s…
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#367Earlier quoted context omitted.
It did, actually: the filename can contain terminal control characters, which thanks to the change from safe_fprintf to fprintf, were printed without escaping, which allows the creator of the archive being extracted to control the terminal of the user extracting the archive.
That's (a) not exploitable without the existence of a much higher-severity exploit -- sure you can clear the screen, but that's low impact (b) possible to trigger on other extant paths; see https://github.com/libarchive/libarchive/issues/2107 so it seems nothing new was introduced (c) kind of contrived to get to execute; you have to somehow fail to extract the archive but on the happy path you'll see a bunch of weird…
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#368>Interestingly enough, "Jia Tan" is very close to 加蛋 in Mandarin, meaning "to add an egg". Unlikely to be a real name or a coincidence.
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#369If this backdoor can be classified as a crime, github logs can identify the IP/location/other details of the attacker which is more than enough to identify them, unless their OPSEC is perfect, which it almost never is (e.g. Ross Ulbricht).
Re: Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
#370Is there anything actually illegal here? Like is it a plausible “business” model for talented and morally compromised developers to do this and then sell the private key to state actors without actually breaking in themselves or allowing anyone else to break in. Edit: MIT license provides a pretty broad disclaimer to say it isn’t fit for any purpose implied or otherwise.