Exploit database

Vulnerability

CVE-2010-4170

Vulnerability details

Score
7.2
Severity
high

CVSS 2.0 · NVD

Vector string

AV:L/AC:L/Au:N/C:C/I:C/A:C

Description

The staprun runtime tool in SystemTap 1.3 does not properly clear the environment before executing modprobe, which allows local users to gain privileges by setting the MODPROBE_OPTIONS environment variable to specify a malicious configuration file.

CVE Program

Exploit source choices

3 sources
SystemTap MODPROBE_OPTIONS Privilege Escalation
MSF-linux--local--systemtap_modprobe_options_priv_escMetasploitLinux / remote

This module attempts to gain root privileges by exploiting a vulnerability in the `staprun` executable included with SystemTap version 1.3. The `staprun` executable does not clear environment variables prior to executing `modprobe`, allowing an arbitrary configuration file to be specified in the `MODPROBE_OPTIONS` environment variable, resulting in arbitrary command execution with root privileges. This module has been tested successfully on: systemtap 1.2-1.fc13-i686 on Fedora 13 (i686); and systemtap 1.1-3.el5 on RHEL 5.5 (x64).

2010-11-17systemtap_modprobe_options_priv_esc.rb