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

getmailroot.txt

getmailroot.txt
Posted Sep 21, 2004
Authored by David Watson

getmail versions 3.2.5 and version 4 releases prior to 4.2.0 suffer from a symbolic link vulnerability that allows for privilege escalation.

tags | advisory
SHA-256 | 1ede5e8f95847bac68ac6e0bcf37788047f31e767417bebac5e0d47ac997e9d2

getmailroot.txt

Change Mirror Download
The following vulnerabilities apply to all releases of getmail prior to 3.2.5, 
and all version 4 releases prior to 4.2.0. They do not apply where getmail is
run as an unprivileged user, or where an unprivileged external MDA is used
for the final delivery of mail. They are not exploitable remotely.

Although it is not the recommended mode of operation, by being run as root,
getmail is able give users ownership of the files containing their new mail.
However, the built-in mail delivery code was not suitable for use as root in
the presence of hostile local users. It had the following vulnerabilities:

Mbox delivery (version 4 releases prior to 4.2.0):

Attacker replacing an mbox file with a symbolic link can have mail delivered
(as root) into a new mbox file with a name and path of their choosing.
Successful exploitation of a race condition allows existing files to be
overwritten. The files are given 600 permissions and the same owner/group
as the directory containing the mbox delivery point.

Maildir delivery (version 4 releases prior to 4.2.0, all releases prior to
3.2.5):

Attacker replacing subdirectories of a maildir with suitable symbolic links
can have mail delivered into an arbitrary directory. Filenames cannot be
chosen by the attacker, but successful exploitation of a race condition can
allow arbitrary file contents to be substituted for mail. The files are given
600 permissions and the same owner/group as the maildir.

Both sets of vulnerabilities may be exploited to have arbitrary commands
executed as root.

Workaround:

Do not run getmail as a privileged user; or, in version 4, use an external MDA
with explicitly configured user and group privileges.

Fix:

Versions 3.2.5 and 4.2.0 are now available at:

http://www.qcc.ca/~charlesc/software/getmail-4/

Version 3.2.5 just enforces the workaround. Version 4.2.0 solves the problem
by dropping privileges to those of an explicitly configured user before
delivering mail, as was already done for delivery by external MDAs.

Note: version 4 releases require Python 2.3.3 or later. Python 2.3.x can be
installed alongside an earlier version if required; see the README file in
the latest source tarball, available at http://www.python.org. Once
installed, getmail will use whichever version was initially used to run its
setup script.
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
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    16 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