SMTP: Sendmail MIME Conversion Buffer Overflow

This signature detects attempts to exploit a known vulnerability against Sendmail. Sendmail versions 8.8.0 and 8.8.1 are vulnerable. Attackers can embed a maliciously crafted MIME header in an email to overflow a buffer in Sendmail and execute arbitrary commands as root.

Extended Description

Modutils is a component of many linux systems that includes tools for using loadable kernel modules. One of these tools, modprobe, loads a set of modules that correspond to a provided "name" (passed at the command line) automatically. Modprobe version 2.3.9 and possibly others around it contain a vulnerability (present since March 12, 1999) that can lead to a local root compromise. The problem has to do with modprobe using popen() to execute the "echo" program argumented with user input. Because popen() relies on /bin/sh to parse the command string and execute "echo", unescaped shell metacharacters can be included in user input to execute other commands. Though modprobe is not installed setuid root, this vulnerability can be exploited to gain root access provided the target system is using kmod. Kmod is a kernel facility that automatically executes the program 'modprobe' when a module is requested via request_module(). One program that does this is the version of ping that ships with RedHat Linux 7.0. When a device is specified at the command-line that doesnt exist, request_module is called with the user-supplied arguments passed to the kernel. The kernel then takes the arguments and exec's modprobe with them. Arbitrary commands included in the argument for module name (device name to ping) are then executed when popen() is called as root. Successful exploitation of this will yield root access for the attacker.

Affected Products

Suse linux

References

BugTraq: 1936

CVE: CVE-1999-0206

Short Name
SMTP:OVERFLOW:SENDMAIL-MIME-OF
Severity
Critical
Recommended
False
Recommended Action
Drop
Category
SMTP
Keywords
Buffer CA-1996-24 CVE-1999-0206 Conversion MIME Overflow Sendmail bid:1936
Release Date
04/25/2003
Supported Platforms

srx-branch-12.3

srx-19.3

srx-branch-19.3

vsrx3bsd-19.2

srx-branch-19.4

vsrx-19.4

mx-12.3

mx-19.4

vmx-19.4

mx-19.3

vsrx3bsd-19.4

srx-19.4

vsrx-12.3

vmx-19.3

vsrx-19.2

srx-12.3

Sigpack Version
3375
False Positive
Unknown
Vendors

Red_hat

Mandriva

Conectiva

Suse

Gnu

CVSS Score

10.0

Found a potential security threat?