First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 77731
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Tavis Ormandy (RETIRED) <taviso@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 77731 depends on: Show dependency tree
Bug 77731 blocks:

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-01-12 13:16 0000
building a tbz2 of the webmin package contains the encrypted root password, as
people often distribute these, probably a good idea to not include the
`miniserv.users` file as part of the package.

You could comment out the part of setup.sh that creates the file and then
create it yourself in pkg_postinst(), that way the file won't be part of the
package.

(perhaps this bug affects usermin as well?)

A few quick google searches so at least a few people are distributing webmin
tbz2's to the whole world! *ouch* :)

------- Comment #1 From Jeremy Huddleston (RETIRED) 2005-01-12 17:44:37 0000 -------
how does miniserv.users get the root password?  The tbz2 is generated in
src_install as user portage who can't even read /etc/shaddow

Am I missing something?

------- Comment #2 From Tavis Ormandy (RETIRED) 2005-01-13 04:00:46 0000 -------
looks like it get's it from this line in the ebuild:

crypt=`grep "^root:" ${ROOT}/etc/shadow | cut -f 2 -d :`

perhaps you could just put some nonsense in there and then sed it out in pkg_postinst with the correct data? Although users who quickpkg it would still include the sensitive data..perhaps best to leave it out of the package altogether and create the file in pkg_postinst()?

src_install is run as root, i believe, otherwise it wouldnt be able to chown stuff...perhaps the userpriv feature changes that? I don't know it very well :)

------- Comment #3 From Jeremy Huddleston (RETIRED) 2005-01-13 05:20:23 0000 -------
packages affected -> replacements
=app-admin/webmin-1.170-r2 -> >=app-admin/webmin-1.170-r2

The affected package was removed since all the stable keywords were on my archs.

Not sure how you guys want to handle this as it's not wrong with installs but rather the binpkgs.

usermin isn't affected.

------- Comment #4 From Sune Kloppenborg Jeppesen 2005-01-13 09:30:01 0000 -------
Thx everyone.

Both Koon and I vote for no GLSA on this one -> closing.

------- Comment #5 From Jeremy Huddleston (RETIRED) 2005-01-13 15:01:13 0000 -------
changing subject as usermin wasn't affected

------- Comment #6 From solar 2005-02-06 12:20:01 0000 -------
I do not think we need a GLSA for this.

------- Comment #7 From Tavis Ormandy (RETIRED) 2005-02-06 12:46:22 0000 -------
regarding glsa, doesnt this qualify under the vulnerability treatment policy as
"Global service compromise: denial of service, passwords or full database
leaks", the webmin tbz2 would be world readable and these are often distributed
by people to other users...these users need to know that their root password
has been compromised (assuming the attacker knows how to use jtr).

Also, user action has to be taken to ensure security, ie actually removing the
old tbz2..isnt that the point of security advisories? I found 2 users on the
web who had these tbz2 accessible to the world, i let them know about this and
advised them to change their pass :)

It's possible there are still packages with passwords in out there now (portage
doesnt remove old ones!), I only spotted this as I was affected on a server i
maintain, i know I would have liked to be informed that my root pass should be
considered compromised?

according to gentoo-stats.org about 10% of systems have webmin installed.

------- Comment #8 From Tavis Ormandy (RETIRED) 2005-02-07 02:04:07 0000 -------
reopening regarding glsa issue

------- Comment #9 From Thierry Carrez (RETIRED) 2005-02-07 02:17:02 0000 -------
I tend to think now that Tavis is right, and we should issue a GLSA about it. I
orginally thought it was quickpkg's fault (by design, it includes the files
currently used on your filesystem), but here we had something in the ebuild
that copied the root password over before the tbz2 was built (in the "buildpkg"
feature or emerge -B), which is a clear ebuild flaw.

So I vote YES now :)

------- Comment #10 From Kurt Lieber 2005-02-08 13:15:54 0000 -------
agree with koon.  think GLSA is needed.

------- Comment #11 From Thierry Carrez (RETIRED) 2005-02-08 13:37:23 0000 -------
I'll try to write the GLSA

------- Comment #12 From Thierry Carrez (RETIRED) 2005-02-11 13:08:21 0000 -------
GLSA 200502-12

First Last Prev Next    No search results available      Search page      Enter new bug