Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149660 - net-nds/migrationtools: insecure temporary file creation
Summary: net-nds/migrationtools: insecure temporary file creation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Security
URL: http://cve.mitre.org/cgi-bin/cvename....
Whiteboard: B3? [noglsa masked] jaervosz
Keywords: PMASKED
: 154481 (view as bug list)
Depends on: 154988
Blocks:
  Show dependency tree
 
Reported: 2006-09-30 14:34 UTC by Matthias Geerdsen (RETIRED)
Modified: 2006-12-23 08:29 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Geerdsen (RETIRED) gentoo-dev 2006-09-30 14:34:51 UTC
PADL MigrationTools 46 creates temporary files insecurely, which allows local users to overwrite arbitrary files via a symlink attack on the temporary files, which are not properly created by (1) migrate_all_online.sh, (2) migrate_all_offline.sh, (3) migrate_all_netinfo_online.sh, (4) migrate_all_netinfo_offline.sh, (5) migrate_all_nis_online.sh, (6) migrate_all_nis_offline.sh, (7) migrate_all_nisplus_online.sh, and (8) migrate_all_nisplus_offline.sh.

http://www.frsirt.com/english/advisories/2005/2427
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338920
Comment 1 Matthias Geerdsen (RETIRED) gentoo-dev 2006-10-03 11:59:09 UTC
robbat2 pls provide an updated ebuild

btw, debian has fixed this in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338920
Comment 2 Matthias Geerdsen (RETIRED) gentoo-dev 2006-10-19 05:48:36 UTC
Robbat/Grant please have look at this
Comment 3 Matthias Geerdsen (RETIRED) gentoo-dev 2006-11-01 08:29:51 UTC
Robin? Grant?

this bug has now been open for over one month without reaction
Comment 4 Matthias Geerdsen (RETIRED) gentoo-dev 2006-11-09 06:47:31 UTC
*** Bug 154481 has been marked as a duplicate of this bug. ***
Comment 5 Matthias Geerdsen (RETIRED) gentoo-dev 2006-11-10 04:51:42 UTC
It has been over a month(!) without any comment from maintainers now. If somebody has no time to extract patches or provide an ebuild, then at least leave a comment stating that.




Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-11-10 17:36:17 UTC
my opinion is to dump the package anyway.
Comment 7 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2006-11-20 23:47:43 UTC
Dumping it would solve this problem as well. Could we get it masked until treecleaners come about to do their work. Comments?
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-11-21 03:13:59 UTC
masked in cvs now.
Comment 9 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2006-11-21 04:07:01 UTC
Time for GLSA decision. I vote NO.
Comment 10 Wolf Giesen (RETIRED) gentoo-dev 2006-11-21 04:32:07 UTC
Hm, I think it would be nice to let people know when we bestow security masking on a package.
Comment 11 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-11-21 06:41:28 UTC
frilled: it's masked for tree-cleaners, see bug 154988
Comment 12 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2006-11-24 12:58:40 UTC
Not sure why this is not in glsa? status.
Comment 13 Evert 2006-11-27 01:41:02 UTC
I see migrationtools is scheduled for removal. So what's the alternative??? Should I put migrationtools in a portage overlay now?

$ emerge -p migrationtools

These are the packages that would be merged, in order:

Calculating dependencies   
!!! All ebuilds that could satisfy "migrationtools" have been masked.
!!! One of the following masked packages is required to complete your request:
- net-nds/migrationtools-45 (masked by: package.mask, ~x86 keyword)
# Robin H. Johnson <robbat2@gentoo.org> (21 Nov 2006)
# bug #149660, scheduled for removal 2006-Dec-21.

- net-nds/migrationtools-44-r2 (masked by: package.mask)
- net-nds/migrationtools-44-r1 (masked by: package.mask)
- net-nds/migrationtools-46 (masked by: package.mask)
- net-nds/migrationtools-45-r1 (masked by: package.mask, ~x86 keyword)
Comment 14 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-11-27 05:06:42 UTC
Evert: migrationtools is the sort of application you use once, and don't need afterwards. If you do want to use it, just unpack it on your machine, edit the files to put the configuration stuff (that you need to do anyway with the ebuild),  use the conversion scripts, and then delete them.
Comment 15 Matthias Geerdsen (RETIRED) gentoo-dev 2006-11-27 06:51:19 UTC
/me tends to vote no
Comment 16 Evert 2006-11-27 08:16:35 UTC
I like the convenience of (de)installing *everything* using emerge :)
And other than that, I think it's kinda lame to remove a package because of a security issue which is already fixed by other distros...
Comment 17 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-11-27 14:03:53 UTC
Evert: since one has to edit several of the migrationtools files to use them, emerge --unmerge wouldn't remove them anyway as the hashes recorded in /var/db/pkg/..../CONTENTS would have changed.
Comment 18 Evert 2006-11-29 13:40:25 UTC
That's where u have a point ;-)
Comment 19 Matthias Geerdsen (RETIRED) gentoo-dev 2006-12-05 11:59:54 UTC
security pls vote
Comment 20 Matt Drew (RETIRED) gentoo-dev 2006-12-05 12:23:33 UTC
apprentice - no on GLSA
Comment 21 Wolf Giesen (RETIRED) gentoo-dev 2006-12-05 21:19:11 UTC
I also tend to vote no.
Comment 22 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2006-12-05 21:59:58 UTC
2+ NO votes -> no GLSA.

I'll keep this one open until the package is completely removed.
Comment 23 Tavis Ormandy (RETIRED) gentoo-dev 2006-12-23 08:29:45 UTC
Jokey reports the package has been removed, noglsa so RESOLVED FIXED. Thanks everyone.