The Morning Dev

Only the news worth knowing

‹
 
  • AAPL 344.17 ▼ 1.53%
  • MSFT 535.93 ▼ 3.58%
  • NVDA 181.60 ▼ 9.26%
  • GOOGL 282.57 ▼ 2.20%
  • AMZN 260.21 ▼ 2.19%
  • META 605.08 ▼ 3.96%
  • TSLA 343.69 ▼ 10.77%
  • AVGO 291.53 ▼ 10.43%
  • TSM 353.10 ▼ 10.78%
  • ORCL 115.16 ▼ 6.93%
  • AMD 404.40 ▼ 17.26%
  • NFLX 65.56 ▼ 1.25%
  • CRM 222.41 ▼ 2.07%
  • ADBE 246.44 ▼ 0.82%
  • INTC 52.25 ▼ 10.33%
  • IBM 247.11 ▼ 2.84%
  • PLTR 154.99 ▼ 9.73%
  • SNOW 269.54 ▼ 7.25%
  • NET 244.51 ▼ 8.28%
  • SAP 243.53 ▲ 1.45%

Security · High impactFan score 46 · Tier B2 sources78 comments in the community

Debian and Ubuntu APT Flaw Lets MitM Attackers Swap Verified Packages and Run Code as Root

The Hacker News · By info@thehackernews.com (The Hacker News) ·

A flaw in APT, the package manager for Debian and Ubuntu, allows an attacker who can modify package downloads to swap a checked package for their own. The attacker's code then runs as root, according to advisories that Debian, Ubuntu, and APT's developers published on November 4…

The Brief

  • A flaw in APT, the package manager for Debian and Ubuntu, lets an attacker who can modify package downloads swap a verified package for their own.
  • The attacker's code then runs as root, according to advisories published by Debian, Ubuntu and APT's developers on November 4.
  • Commenters say APT downloads packages over plain HTTP, so a man-in-the-middle position is enough to exploit the flaw.

Why it matters

Any Debian or Ubuntu system that installs or updates packages over a network path an attacker can influence may run attacker code as root until APT is upgraded.

Who’s affected

  • Debian and Ubuntu administrators
  • Teams running APT-based containers and images
  • Users who fetch packages over plain HTTP

What to do

  1. Upgrade the apt package to the fixed version, as the advisories recommend
  2. Check whether systems still on older Debian releases such as bookworm have received a fix
  • #apt
  • #debian
  • #ubuntu
  • #security
  • #man-in-the-middle
  • #package-manager

What developers are saying

Based on 78 comments · Mostly critical

Commenters are alarmed that APT's HTTP handling can be exploited by a man-in-the-middle and see it as a repeat of earlier APT flaws. Many argue that package repositories should default to HTTPS, while a few recall that APT's developers had resisted HTTPS on the grounds that signatures were enough. Others criticise the lack of upgrade guidance and note that the fix may not yet cover older releases.

  • HTTP instead of HTTPS40%
  • Repeat of earlier APT flaws20%
  • Redirect feature should be opt-in15%
  • Fix availability for older releases15%
  • Lack of upgrade guidance10%

In favour

  • + Packages are signed with PGP, which earlier discussions treated as sufficient protection without HTTPS

Concerns

  • − Plain HTTP lets a man-in-the-middle see which packages are downloaded and whether they are vulnerable
  • − Repeated serious breakage of the redirect feature suggests it is risky and not clearly needed
  • − Advisories gave no guidance on securely updating apt itself
  • − Fixed version appears in trixie-security, but bookworm is not yet fixed

“Would it have killed them to give even a little bit of guidance how to securely update the apt package(s)?”

flotzam on Hacker News

“I think this demonstrates exactly why everything should be https.”

londons_explore on Hacker News

“Since this is the second time the redirect feature was broken in a serious way and there is still no obvious need for it.. time to make it opt-in instead of opt-out?”

edelbitter on Hacker News

Timeline

  1. Advisories published by Debian, Ubuntu and APT developers

  2. Hacker News

    100 points · 78 comments

  3. Lobsters

    Man-in-the-middle arbitrary code execution in Debian’s apt

  4. Lobsters

    3 points · 0 comments

  5. The Hacker News

    Debian and Ubuntu APT Flaw Lets MitM Attackers Swap Verified Packages and Run Code as Root

Full coverage · 2 sources

How do you feel about this?

0 Comments

    More in Security

    Security · High impact

    Zyxel fixes zero-day exploited to hack nearly 1,000 network switches

    Zyxel has patched a zero-day vulnerability in its GS1900 series network switches that hackers exploited to compromise nearly 1,000 devices worldwide and steal configuration files and credentials. [...]

    BleepingComputer · Lawrence Abrams · · 3 sources

    Security · High impact

    APT29-Linked Hackers Hijack Web Analytics Script to Deliver iOS and Android Exploits

    The Russia-linked threat actor known as APT29 is presumed to be behind a large-scale watering hole campaign targeting iOS and Android users through compromised websites, fake domains, and a supply chain attack involving a Ukrainian web analytics service called Plerdy SEO Tracker…

    The Hacker News · info@thehackernews.com (The Hacker News) · · 3 sources

    Security · High impact

    More Asian airlines announce data breaches after attack on Spanish IT provider Amadeus

    Japan Airlines, Cathay Pacific, Korean Air, Asiana Airlines, Singapore Airlines and Malaysia Airlines have all come forward over the last week to report data breaches traced back to Amadeus IT Group — a company that builds and maintains platforms for flight reservation, ticketing…

    The Record from Recorded Future News · · 2 sources