Gentoo Archives: gentoo-security

From: shimi <shimi@×××××.net>
To: gentoo-security@l.g.o
Cc: jbutterworth@×××××.org
Subject: Re: [gentoo-security] portage/rsync question
Date: Tue, 06 Apr 2010 21:10:01
Message-Id: t2m9eba290f1004061326p7c5ea227id8b160d1839f6fbc@mail.gmail.com
In Reply to: [gentoo-security] portage/rsync question by "Butterworth
1 On Tue, Apr 6, 2010 at 10:26 PM, Butterworth, John W. <
2 jbutterworth@×××××.org> wrote:
3
4 > Hi. I have a security-related question for Portage/rsync:
5 >
6 >
7 >
8 > If someone makes a change to a copy of a program (say a backdoor added to
9 > apache) hosted on a public mirror, will the sync’ing between the public
10 > mirror and the main rotation mirror determine that it's corrupted (via 'bad'
11 > checksum) on the public-mirror side and replace it?
12 >
13 >
14 >
15 >
16 > If it's hosted @ Gentoo, if the main server is intact, the next sync will
17 overwrite the mirror-local copy
18
19 If it's not hosted on on Gentoo's mirror, Gentoo's sync'ing is unrelated
20 (and I understand that's the scenario you refer to)
21
22 Anyways, unless the *ebuild* was *also* poisoned (which can't happen by a
23 cracker changing stuff at apache.org), when you try to *emerge* the package,
24 emerge will fail because Portage verifies various different hash signatures
25 on the source files - which are embedded in the portage package tree [1].
26
27 HTH,
28
29 -- Shimi
30
31 [1] Try: cat /usr/portage/www-servers/apache/Manifest

Replies

Subject Author
RE: [gentoo-security] portage/rsync question "Butterworth