apt-get install --assume-yes allows unverified packages

Bug #144781 reported by Lars Noodén
256
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Fix Released
Wishlist
Michael Vogt

Bug Description

Binary package hint: apt

Using the '--assume-yes' option, apt-get keeps rolling even if the repository (or a host pretending to be the repository) starts serving up packages that cannot be verified.

Technically --assume-yes does answer yes to everything. However, in this day and age with so many MIM and other attacks I would expect that it would throw an error unless accompanied by some --force option.

It looks like automated installs relying on --assume-yes can then be fed tainted or compromised packages.

Revision history for this message
Kees Cook (kees) wrote :

mvo, does update-manager use apt in this way?

Changed in apt:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for apt (Ubuntu) because there has been no activity for 60 days.]

Changed in apt (Ubuntu):
status: Incomplete → Expired
Kees Cook (kees)
Changed in apt (Ubuntu):
status: Expired → New
assignee: nobody → Michael Vogt (mvo)
visibility: private → public
Changed in apt (Ubuntu):
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

@Michael, what is the status of this bug? (see question in comment #1)

Revision history for this message
Julian Andres Klode (juliank) wrote :

Fixed in natty.

(natty)root@jak-thinkpad:/home/jak# apt-key del 437D05B5
OK
(natty)root@jak-thinkpad:/home/jak# apt-get update
[...]
(natty)root@jak-thinkpad:/home/jak# apt-get install --assume-yes cdbs
[...]
WARNING: The following packages cannot be authenticated!
  fdupes python-scour cdbs
E: There are problems and -y was used without --force-yes

Changed in apt (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.