what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

mandrake.urpmi.txt

mandrake.urpmi.txt
Posted Nov 5, 2000
Authored by Dotslash

Mandrake 7.1's /usr/bin/urpmi allows attackers to install RPM's as root if they have an account in the urpmi group and possibly physical access.

tags | exploit, root
systems | linux, mandrake
SHA-256 | 7c9b89ae1b7901292c8d5b0902bedd8ccaad79f8cc4b4e2702d359ba016ff272

mandrake.urpmi.txt

Change Mirror Download



Local Exploit Issue with:
/usr/bin/urpmi
The urpmi executable (perl script)

[root@localhost /root]# ls -al /usr/bin/urpmi
-rwsr-x--- 1 root urpmi 9352 Apr 4 2000 /usr/bin/urpmi*


This requires an account in the urpmi group. Possibly physical access to the box as well.

On Mandrake 7.1 the package urpmi was installed by default on my machine... I did not add my user to the urpmi group
gid 234(urpmi) it was like that when the user was added to my system. As you can see in the config file a User is aloud to install a
package if it resides in a directory that has been defined as being safe.

[root@localhost /root]# cat /etc/urpmi/urpmi.cfg
cdrom1 removable_cdrom_0://mnt/cdrom/Mandrake/RPMS
cdrom2 removable_cdrom_1://mnt/cdrom/Mandrake/RPMS2
cdrom3 removable_cdrom_2://mnt/cdrom/RPMS
cdrom4 removable_cdrom_3://mnt/cdrom/RPMS

DESCRIPTION
urpmi enables non-superuser install of rpms. In fact, it
only authorizes well-known rpms to be installed.

All users belonging to group urpmi are allowed to install
packages.
Just launch urpmi followed by what you think is the name
of the package(s), and urpmi will install them

^---------- hrmm so lets say I have supermount enabled on my box
And my fstab looks something like this and of course the mtab having the appropreate entry also.
/dev/cdrom /mnt/cdrom auto user,noauto,nosuid,exec,nodev,ro 0 0

So I decide to burn myself a cd with a folder RPMS and I place exploitmeplease.i586.rpm in the folder.
Simply drop it in the cdrom drive and viola.

I should then as a member of the urpmi group be alloud to type:

[user@localhost /mnt/cdrom/RPMS]$ urpmi -ivh exploitmeplease

And procede to install my tools as root


Note that urpmi handle installations from various medias
(ftp, local and nfs volumes, removable medias such as
CDROMs) and is able to install dependencies from a media
different from the package's media. If necessary, urpmi
asks you to insert the required media.

^---------- thats cool it might even ask me to put in a cd... hrmm thats a bright idea. trojan dependancys for a package
you do have access to could be located on a different cd... thats really anal but theoretically it could happen.
Hell for all I know if you got lucky and there was a blank in the drive or if you can physically put a blank in the drive
you could maybe use the cdwriter exploit to burn your trojan cd.



Login or Register to add favorites

File Archive:

December 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Dec 1st
    0 Files
  • 2
    Dec 2nd
    41 Files
  • 3
    Dec 3rd
    0 Files
  • 4
    Dec 4th
    0 Files
  • 5
    Dec 5th
    0 Files
  • 6
    Dec 6th
    0 Files
  • 7
    Dec 7th
    0 Files
  • 8
    Dec 8th
    0 Files
  • 9
    Dec 9th
    0 Files
  • 10
    Dec 10th
    0 Files
  • 11
    Dec 11th
    0 Files
  • 12
    Dec 12th
    0 Files
  • 13
    Dec 13th
    0 Files
  • 14
    Dec 14th
    0 Files
  • 15
    Dec 15th
    0 Files
  • 16
    Dec 16th
    0 Files
  • 17
    Dec 17th
    0 Files
  • 18
    Dec 18th
    0 Files
  • 19
    Dec 19th
    0 Files
  • 20
    Dec 20th
    0 Files
  • 21
    Dec 21st
    0 Files
  • 22
    Dec 22nd
    0 Files
  • 23
    Dec 23rd
    0 Files
  • 24
    Dec 24th
    0 Files
  • 25
    Dec 25th
    0 Files
  • 26
    Dec 26th
    0 Files
  • 27
    Dec 27th
    0 Files
  • 28
    Dec 28th
    0 Files
  • 29
    Dec 29th
    0 Files
  • 30
    Dec 30th
    0 Files
  • 31
    Dec 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close