exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

plaguez.advisory.009.redhat.rpm

plaguez.advisory.009.redhat.rpm
Posted Sep 23, 1999

plaguez.advisory.009.redhat.rpm

systems | linux, redhat
SHA-256 | 075a13bb408c93480bac768403b59ef26c35537f219ef73494e817f826aaf90e

plaguez.advisory.009.redhat.rpm

Change Mirror Download

plaguez security advisory n. 9

RedHat rpm vulnerability





Program: rpm(8), the RedHat Package Manager

Version: 2.3.11 current (shipped with RedHat Linux 4.2)
older ones as well.

OS: RedHat Linux specific.

Problem: temporary files.

Impact: can be exploited to overwrite arbitrary files
on the system.



Hello,

Adding fuel to the temp. file discussion, here is yet another problem
with temporary file checking.

RPM (Redhat Package Manager) has many useful features. One of these
features is to retrieve a file off of the net and install it all in
one step. When RPM is used this way, the file RPM is retrieving is
temporarily stored in /var/tmp. The file mask RPM uses is
rpm-ftp-$no-$pid.tmp whereas $no is the number of the package in the
queue (0,1,2,...).

Unfortunatly, rpm does not properly check if the temporary file
already exists, and will follow symlinks. As rpm is often ran by
root, it is then possible to overwrite any file on the system,
regardless of access permissions.


Fix:
----

Apply the following temporary patch below to url.c in the rpm
source directory. RedHat should soon come with the proper fix.

196c196,201
< fd = creat(dest, 0600);
---
> // fd = creat(dest, 0600);
> if(-1==(fd=open(dest,O_CREAT|O_EXCL|O_RDWR,0600)))
> {
> perror(dest);
> exit(1);
> }



See you next week,

-plaguez


------------------------
plaguez
dube0866@eurobretagne.fr
http://www.innu.org
------------------------
Login or Register to add favorites

File Archive:

April 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close