9 comments

  • vesinisa 51 minutes ago
    No word as of yet if Ubuntu's apt is also impacted.

    Sounds like the vulnerability is in the HTTP handling code, and because apt downloads packages over plain HTTP a man-in-the-middle position would be enough to exploit it.

    It almost seems like a repeat of two previous apt vulnerabilities:

    In 2019: https://lists.debian.org/debian-security-announce/2019/msg00...

    And in 2014: https://lists.debian.org/debian-security-announce/2014/msg00...

    • angry_octet 30 minutes ago
      Despite with the 'no need for TLS, apt packages are signed' clowns would have you believe, you can usually point to a package mirror with https. This has the added advantage of preventing a mitm from knowing what packages you install or blocking selected packages.
      • InsidiousWombat 20 minutes ago
        well when CA use 4 as key that kinda matters less
      • anthk 27 minutes ago
        Every mirror will know that because of HTTPD logs.
        • DaSHacka 0 minutes ago
          In fairness to GP, that wouldn't be a man in the 'middle', the mirror is the end destination for your traffic.
    • greggsy 47 minutes ago
      I thought there might be some kind of hash or signature, but I’m assuming that can be forged along with the main payload?
      • vesinisa 39 minutes ago
        From the short description in the advisory, would seem like the attacker can cause the tool to overwrite the file after signature verification.
      • TZubiri 15 minutes ago
        Of course not, Debian is one of the most robust pieces of software around. They wouldn't do something idiotic like relying on the hash being sent with the payload through the same channel.

        I think the idea is that debian distributes the hash themselves through their domain, and mirrors offer the downloads either through http or https. So that you don't need to trust the mirror, you just verify the debian given hash. Only weakness would be a hash collision or a cve like this.

  • hypfer 3 minutes ago
    If I understand correctly, trixie-security contains a fixed version, however, bookworm not (yet)?

    Is it going to be fixed for oldstable?

  • greggsy 48 minutes ago
    > We recommend that you upgrade your apt packages.

    Is there a German word for a broken tool that can only be fixed by using the same broken tool?

    • ahofmann 36 minutes ago
      Well, of course there is "Selbstreparaturparadoxon", but nobody uses that. This is more like a Münchhausen-Problem, where Baron Münchhausen pulls himself out of the swamp by his own hair.
    • veeti 25 minutes ago
      For what it's worth there is an apt "Acquire::http::AllowRedirect" option that can be disabled.
    • pllbnk 39 minutes ago
      Münchhausenwerkzeug.
  • serbuvlad 27 minutes ago
    It's always been strange to me and I've been saying forever that I don't get why package repos don't use HTTPS.
    • basilikum 0 minutes ago
      [delayed]
    • krautsauer 5 minutes ago
      Easier to put caching proxies on the path?
    • InsidiousWombat 22 minutes ago
      theoretical model means that the transfer method doesn't matter.

      Of course, that breaks if implementation checks the signatures in wrong moment

      • vesinisa 7 minutes ago
        There have already been quite a few vulnerabilities in the implementation that would have been avoided if the transport itself was simply protected in line with the industry standard practice of using TLS by default.
    • ferngodfather 23 minutes ago
      I get it to a point because it can be a chicken and egg situation sometimes, but there has got to be a better way.
  • flotzam 23 minutes ago
    Would it have killed them to give even a little bit of guidance how to securely update the apt package(s)?

    If necessary, with instructions for downloading and verifying it out of band

    Or maybe by passing a parameter to the old apt that disables the vulnerable HTTP download resumption when downloading the new apt

    • TZubiri 18 minutes ago
      Use https?
      • flotzam 14 minutes ago
        Still places trust in the download servers, which makes them a juicy target

        But yes, they could have mentioned this too to make the announcement at least half-assed

  • hiddenvulkcan 57 minutes ago
    Yikes, that vuln in apt is pretty bad! I think a lot of the newer wave of vulnerabilities being found generally seem to have a low likelihood of being reached, but this seems somewhat plausible? I'm assuming this would be done by compromising a mirror, in order to do the redirect?
    • bradfa 32 minutes ago
      More likely just a man in the middle attack. Apt typically uses HTTP (no TLS) as the signatures give the security. But in this case it sounds like the vulnerability is that after a successful signature check the legit file can be overridden by the attacker through some HTTP shenanigans.
      • hiddenvulkcan 13 minutes ago
        Well, at least it's Debian, so even if they used HTTPS they'd still be vulnerable!

        I didn't know that about apt, interesting choice!

    • TZubiri 8 minutes ago
      It's not 'Attack Vector: Network' in cvss, so it's probably scoring lower than a 7.

      EDIT: With 'AV:Adjacent Network' and A 'User Interaction: Required' and max impact (High on Confidentiality, Integrity and Availability, assuming worst case), then it gets a score of 8.

      The subjectives lower the severity to my eyes as well, including the use of HTTP mirrors (which is the default notwithstanding), and the attacker needing to be an existing mirror at the time of the announcement, which is already a vetted group (or be in the path between the user and the mirrors, umm that is quite possible though, but quite hard to target). And finally the window for the disclosure and attacks is almost null, someone needs to use apt to be vulnerable, but if they use apt, they are probably autoupdating apt itself, I wonder if a simple 'apt install thing' will trigger an apt upgrade, in order to patch those that are not running autoupgrades.

  • InsidiousWombat 23 minutes ago
    interesting, why is verification not running after package is already on hard drive in full ?
  • mariofdistrust 37 minutes ago
    yey, my computers and containers aren't vulnerable (^-^)
  • 12312987 39 minutes ago
    Debian is such a clown show. The SSL fiasco, apt over http, overpatching packages, allowing AI, kicking out packages over some lintian bullshit.

    How are you going to update if apt is compromised?

    • teddyh 5 minutes ago
      I’ll just note that you had to go back more than 20 years to get that short list of complaints.
    • InsidiousWombat 21 minutes ago
      many mirrors are also available over https, you can just change that
    • throwaway74354 21 minutes ago
      >How are you going to update if apt is compromised?

      Download the package with your http client of choice, install with sudo dpkg --verify -i

    • qwert199 28 minutes ago
      An here we see: The Debian people never introspect or change, because they were the first ones in open source, have too much power and outnumber the critics.

      Truth by flagging.