Re:A tale of several distros joining forces for a common goa...
by solarkraft on Saturday February 08, 2025 @12:47PM
(#42984626)
I tend to agree. The exploit was (by detour) committed to the source.
Re:A tale of several distros joining forces for a common goa...
by ramses0 on Saturday February 08, 2025 @02:08PM
(#42985332)
Technically, interestingly, if `bazel` were used as the build tool, it would avoid the straightforward ability to cross-contaminate the build executable with the test code...
Yeah, `bazel run test:...` would have access to the test files, but `bazel build xz:executable` would not (by default) be able to pull in extra shenanigans from the test files (and I think there's generally linting and formatting rules required by default with `BUILD.bazel` files, reducing another sneak-vectors)
If I'm understanding correctly, the malicious code was introduced as part of the test code, so no matter who compiled it, they'd get a binary with the same (malicious) functionality. Heck, it might even have been reproducibly malicious.
The real crazy part was that it was modifying the functionality of sshd at runtime, allowing the attacker to log into any system.
Reproducibility of either sshd or xz wouldn't have stopped this attack.
That's my reading of https://research.swtch.com/xz-script.