module

Solaris RSH Stack Clash Privilege Escalation

Disclosed
2017-06-19
Created
2019-03-19

Description

This module exploits a vulnerability in RSH on unpatched Solaris
systems which allows users to gain root privileges.

The stack guard page on unpatched Solaris systems is of
insufficient size to prevent collisions between the stack
and heap memory, aka Stack Clash.

This module uploads and executes Qualys' Solaris_rsh.c exploit,
which exploits a vulnerability in RSH to bypass the stack guard
page to write to the stack and create a SUID root shell.

This module has offsets for Solaris versions 11.1 (x86) and
Solaris 11.3 (x86).

Exploitation will usually complete within a few minutes using
the default number of worker threads (10). Occasionally,
exploitation will fail. If the target system is vulnerable,
usually re-running the exploit will be successful.

This module has been tested successfully on Solaris 11.1 (x86)
and Solaris 11.3 (x86).

Authors

Qualys Corporation
bcoles bcoles@gmail.com

Platform

Solaris,Unix

Architectures

x86, x64

Module Options

To display the available options, load the module within the Metasploit console and run the commands ‘show options’ or ‘show advanced’:


msf > use exploit/solaris/local/rsh_stack_clash_priv_esc
msf exploit(rsh_stack_clash_priv_esc) > show targets
...targets...
msf exploit(rsh_stack_clash_priv_esc) > set TARGET < target-id >
msf exploit(rsh_stack_clash_priv_esc) > show options
...show and set options...
msf exploit(rsh_stack_clash_priv_esc) > exploit

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.