apt-cache doesn't differentiate sources that share protocol, host, release and archive name
Bug #22354 reported by
Debian Bug Importer
This bug affects 8 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Debian) |
Fix Released
|
Unknown
|
|||
apt (Ubuntu) |
Fix Released
|
High
|
Robert Collins |
Bug Description
Automatically imported from Debian bug report #329814 http://
Related branches
lp://staging/~lifeless/ubuntu/lucid/apt/bug-22354
- Michael Vogt (community): Approve
- Ubuntu branches: Pending requested
-
Diff: 117 lines (+31/-6)5 files modifiedAUTHORS (+4/-0)
apt-pkg/contrib/strutl.cc (+12/-0)
apt-pkg/contrib/strutl.h (+1/-0)
apt-pkg/deb/debindexfile.cc (+6/-6)
debian/changelog (+8/-0)
lp://staging/~mvo/apt/mvo
- Ubuntu Core Development Team: Pending requested
-
Diff: 443 lines (+76/-48)14 files modifiedapt-pkg/contrib/fileutl.cc (+10/-5)
doc/po/fr.po (+54/-32)
test/integration/framework (+1/-0)
test/integration/run-tests (+1/-1)
test/integration/test-autoremove (+1/-1)
test/integration/test-bug-590438-broken-provides-thanks-to-remove-order (+1/-1)
test/integration/test-bug-591882-conkeror (+1/-1)
test/integration/test-bug-595691-empty-and-broken-archive-files (+1/-1)
test/integration/test-bug-598669-install-postfix-gets-exim-heavy (+1/-1)
test/integration/test-compressed-indexes (+1/-1)
test/integration/test-disappearing-packages (+1/-1)
test/integration/test-pdiff-usage (+1/-1)
test/integration/test-policy-pinning (+1/-1)
test/integration/test-ubuntu-bug-614993 (+1/-1)
- Ubuntu Core Development Team: Pending requested
-
Diff: 73066 lines (+13639/-12297) (has conflicts)76 files modifiedapt-pkg/contrib/fileutl.cc (+26/-2)
apt-pkg/contrib/strutl.cc (+2/-2)
apt-pkg/deb/debindexfile.cc (+13/-9)
apt-pkg/deb/deblistparser.cc (+6/-0)
apt-pkg/deb/debsystem.cc (+2/-2)
apt-pkg/depcache.cc (+15/-1)
apt-pkg/packagemanager.cc (+3/-3)
apt-pkg/pkgcache.cc (+1/-0)
apt-pkg/pkgcache.h (+1/-1)
apt-pkg/policy.cc (+5/-4)
buildlib/debiandoc.mak (+2/-2)
buildlib/po4a_manpage.mak (+1/-1)
cmdline/apt-get.cc (+12/-0)
debian/apt.cron.daily (+15/-28)
debian/changelog (+158/-0)
debian/control (+1/-1)
doc/examples/configure-index (+1/-0)
doc/po/de.po (+292/-590)
doc/po/fr.po (+8/-4)
po/apt-all.pot (+278/-266)
po/ar.po (+278/-266)
po/ast.po (+299/-287)
po/bg.po (+278/-266)
po/bs.po (+278/-266)
po/ca.po (+375/-241)
po/cs.po (+278/-266)
po/cy.po (+278/-266)
po/da.po (+405/-226)
po/de.po (+350/-247)
po/dz.po (+278/-266)
po/el.po (+278/-266)
po/es.po (+278/-266)
po/eu.po (+278/-266)
po/fi.po (+278/-266)
po/fr.po (+278/-268)
po/gl.po (+278/-266)
po/he.po (+2/-2)
po/hu.po (+278/-266)
po/it.po (+284/-272)
po/ja.po (+278/-266)
po/km.po (+278/-266)
po/ko.po (+278/-266)
po/ku.po (+278/-266)
po/lt.po (+278/-266)
po/mr.po (+278/-266)
po/nb.po (+377/-236)
po/ne.po (+278/-266)
po/nl.po (+280/-268)
po/nn.po (+278/-266)
po/pl.po (+278/-266)
po/pt.po (+279/-267)
po/pt_BR.po (+278/-266)
po/ro.po (+278/-266)
po/ru.po (+279/-267)
po/sk.po (+278/-266)
po/sl.po (+278/-266)
po/sv.po (+278/-266)
po/th.po (+278/-266)
po/tl.po (+278/-266)
po/uk.po (+278/-266)
po/vi.po (+543/-535)
po/zh_CN.po (+278/-273)
po/zh_TW.po (+278/-266)
test/integration/Packages-policy-pinning (+12/-0)
test/integration/framework (+2/-1)
test/integration/run-tests (+1/-1)
test/integration/test-autoremove (+1/-1)
test/integration/test-bug-590438-broken-provides-thanks-to-remove-order (+1/-1)
test/integration/test-bug-591882-conkeror (+5/-5)
test/integration/test-bug-595691-empty-and-broken-archive-files (+91/-0)
test/integration/test-bug-598669-install-postfix-gets-exim-heavy (+22/-0)
test/integration/test-compressed-indexes (+1/-1)
test/integration/test-disappearing-packages (+1/-1)
test/integration/test-pdiff-usage (+1/-1)
test/integration/test-policy-pinning (+228/-0)
test/integration/test-ubuntu-bug-614993 (+62/-0)
lp://staging/~mvo/apt/debian-sid
(Merged)
Changed in apt: | |
status: | New → Confirmed |
Changed in apt (Ubuntu): | |
assignee: | Matt Zimmerman (mdz) → nobody |
Changed in apt (Ubuntu): | |
assignee: | nobody → Robert Collins (lifeless) |
Changed in apt (Debian): | |
status: | New → Fix Released |
To post a comment you must log in.
Message-ID: <email address hidden>
Date: Fri, 23 Sep 2005 16:23:58 +0200
From: Pierre THIERRY <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: apt-cache doesn't differentiate sources that share protocol, host, release and archive name
--1kVeyRzorzGcO9ta Disposition: inline Transfer- Encoding: quoted-printable
Content-Type: text/plain; charset=iso-8859-1
Content-
Content-
Package: apt
Version: 0.5.28.6
Severity: serious
Tags: security
Justification: User can think he's installing Debian software when he's not
When multiple sources are used with APT that are hosted on the same host
with the same protocol, and also share combinations of release and
archive (e.g. etch/main), apt-cache policy shows their packages in a
identical form. That has lead me to think that mplayer and transcode had
been accepted in Debian and install a non-official package of ffmpeg,
because I had Christian Marillat's source in my sources.list.
Thus, any source on a server of an official Debian source that contain
packages without security fixes or with additional security holes, whose
version is higher than Debian official packages will lead the user to an
unprotected situation, even if he is cautious of what packages he
installs, in terms of security.
pierre@bateleur:~$ apt-cache policy mplayer-k6 1.0-pre7cvs2005 0716-0. 1 0 nerim.net sid/main Packages nerim.net sarge/main Packages nerim.net etch/main Packages dpkg/status
mplayer-k6:
Install=E9=A0: (aucun)
Candidat=A0: 1:1.0-pre7-0.0
Table de version=A0:
1:
500 ftp://ftp.
1:1.0-pre7-0.0 0
500 ftp://ftp.
990 ftp://ftp.
100 /var/lib/
pierre@bateleur:~$ apt-cache policy ffmpeg nerim.net sid/main Packages 20050427- 0sarge0. 1 0 nerim.net sarge/main Packages nerim.net sid/main Packages dpkg/status cvs20050313- 2 0 nerim.net sarge/main Packages nerim.net etch/main Packages
ffmpeg:
Install=E9=A0: 0.cvs20050918-4
Candidat=A0: 3:20050806-0.2
Table de version=A0:
3:20050806-0.2 0
500 ftp://ftp.
3:
500 ftp://ftp.
*** 0.cvs20050918-4 0
500 ftp://ftp.
100 /var/lib/
0.
500 ftp://ftp.
990 ftp://ftp.
-- Package-specific info:
-- apt-config dump --
APT ""; Essential ""; Essential: : "build-essential"; Release "testing"; :userstatus "status.user"; dpkg/status" ; :archives "archives/"; :srcpkgcache "srcpkgcache.bin"; :pkgcache "pkgcache.bin"; :sourcelist "sources.list"; :vendorlist "vendors.list"; :vendorparts "vendors.list.d"; :preferences "preferences"; apt/methods" ; Install- Pkgs ""; Install- Pkgs:: "if dpkg -s apt-listbugs | grep -q '^Status: .* ok= apt-listbugs apt |...
APT::Architecture "i386";
APT::Build-
APT::Build-
APT::Default-
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State:
Dir::State::status "/var/lib/
Dir::Cache "var/cache/apt/";
Dir::Cache:
Dir::Cache:
Dir::Cache:
Dir::Etc "etc/apt/";
Dir::Etc:
Dir::Etc:
Dir::Etc:
Dir::Etc::main "apt.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc:
Dir::Bin "";
Dir::Bin::methods "/usr/lib/
Dir::Bin::dpkg "/usr/bin/dpkg";
DPkg "";
DPkg::Pre-
DPkg::Pre-
installed'; then /usr/sbin/