• 0 Posts
  • 3 Comments
Joined 3 years ago
cake
Cake day: June 15th, 2023

help-circle
  • The article doesn’t clearly explain how all of these fit together, but here’s what I think they mean happens:

    • Attacker tries to connect on a user account that should not accept a password, ie the user’s hash is “*”.
    • This should be outright rejected (“*” means no password login), but because of the point you highlighted, it just grabs a random salt and tries to calculate the password hash anyway.
    • The password is too long so it gets automatically rejected… with the magic value “*”.
    • User hash is “*” and the “calculated” hash is also “*”, so login accepted.

    Without the “fix” of using another user’s salt, the process would fail immediately for a password-less account. Note that the other user’s salt never plays a role in the calculation because the password is too long and the hash function doesn’t bother calculating it. But it’s the reason execution continues and allows the rest of the bad behaviors to accept the login.

    In hindsight, the mistakes are pretty silly. They shouldn’t actually care if the hash matched the user’s hash if they are one the codepath that is only performing the hash to waste time. Long passwords should be rejected earlier as invalid user inputs instead of reaching the hash functions. These decisions are basically saying “I’m going to do something stupid, but it shouldn’t affect anything because the other parts of the code are surely not doing something stupid at the same time”. It’s obvious why this design philosophy didn’t scale.


  • The article is full of dishonest nonsense. It compares file sizes without comparing features. Well, actually it’s blatantly lying by saying that the setups have the “same functionality” when they clearly do not. For example, systemd-homed supports encrypted home directories which is potentially a useful feature for shared PCs, but the non-systemd setup uses nothing for managing /home, so it takes 0 bytes. NetworkManager has a size of “N/A” apparently. It looks like there should be notes or citations but they’re missing. They’re archived here if you’re interested, but it’s just a bunch of upstream URLs; this doesn’t show us what the author is comparing.

    The other related point is also nonsense:

    We can evaluate the “systemd isn’t monolithic” claim based on how it’s packaged and distributed.

    Well, no. We can evaluate how distros package systemd, not what systemd is or isn’t. The author uses Arch Linux to show that a systemd-based setup requires 36MB. But as the article itself states, arch linux puts every single binary into a single package. Not mentioned in the article is how Arch Linux also bundles other stuff most people don’t need in the packages, like header files, programming manual pages, completions for various shells, default configurations not part of systemd etc. Is the non-systemd setup done in the same way or is the author manually installing 6 executables and calling it “equivalent”? We can’t know because one the one side we have a real (worst-case) example of Arch Linux packaging systemd, and on the other side we have “to get the same functionality without systemd, a distribution could use”.

    None of this illustrates any waste of space on the entire Debian Stable mirror if you’re worried about that. In fact the bundling of systemd component into a small number of packages saves space for Debian (though it potentially wastes space for your PC).