Vulnerabilities > CVE-2017-3629 - Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in Oracle Solaris 10/11

047910
CVSS 7.2 - HIGH
Attack vector
LOCAL
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
local
low complexity
oracle
CWE-119
nessus
exploit available
metasploit

Summary

Vulnerability in the Solaris component of Oracle Sun Systems Products Suite (subcomponent: Kernel). Supported versions that are affected are 10 and 11. Easily exploitable vulnerability allows low privileged attacker with logon to the infrastructure where Solaris executes to compromise Solaris. Successful attacks of this vulnerability can result in takeover of Solaris. CVSS 3.0 Base Score 7.8 (Confidentiality, Integrity and Availability impacts). CVSS Vector: (CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

Vulnerable Configurations

Part Description Count
OS
Oracle
2

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Exploit-Db

  • descriptionOracle Solaris 11.1 / 11.3 RSH - Local Root Stack Clash Exploit. CVE-2017-3629,CVE-2017-3630,CVE-2017-3631. Local exploit for Solaris_x86 platform. Tags: Local
    fileexploits/solaris_x86/local/42270.c
    idEDB-ID:42270
    last seen2017-06-29
    modified2017-06-28
    platformsolaris_x86
    port
    published2017-06-28
    reporterExploit-DB
    sourcehttps://www.exploit-db.com/download/42270/
    titleOracle Solaris 11.1 / 11.3 RSH - Local Root Stack Clash Exploit
    typelocal
  • descriptionSolaris - RSH Stack Clash Privilege Escalation (Metasploit). CVE-2017-1000364,CVE-2017-3629,CVE-2017-3630,CVE-2017-3631. Local exploit for Solaris platform. ...
    fileexploits/solaris/local/45625.rb
    idEDB-ID:45625
    last seen2018-11-27
    modified2018-10-16
    platformsolaris
    port
    published2018-10-16
    reporterExploit-DB
    sourcehttps://old.exploit-db.com/download/45625/
    titleSolaris - RSH Stack Clash Privilege Escalation (Metasploit)
    typelocal

Metasploit

descriptionThis 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).
idMSF:EXPLOIT/SOLARIS/LOCAL/RSH_STACK_CLASH_PRIV_ESC
last seen2020-06-13
modified2019-01-10
published2018-09-18
references
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/solaris/local/rsh_stack_clash_priv_esc.rb
titleSolaris RSH Stack Clash Privilege Escalation

Nessus

NASL familySolaris Local Security Checks
NASL idSOLARIS_JUN2017_SRU_11_3_21_5_0.NASL
descriptionThe remote Solaris host is missing a vendor-supplied security patch. It is, therefore, affected by the following vulnerabilities : - Multiple security bypass vulnerabilities exist in the Kernel subcomponent that allow a specially crafted application to circumvent the stack guard page security mechanism. A local attacker can exploit these, by using stack clash methods, to gain elevated privileges. (CVE-2017-3629, CVE-2017-3630) - A privilege escalation vulnerability exists in the Kernel subcomponent when UID binaries are invoked via a hard-link using a different pathname. A local attacker can exploit this to gain elevated privileges. (CVE-2017-3631)
last seen2020-06-01
modified2020-06-02
plugin id100997
published2017-06-22
reporterThis script is Copyright (C) 2017-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
sourcehttps://www.tenable.com/plugins/nessus/100997
titleSolaris 11 : Multiple Kernel Vulnerabilities

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/149804/rsh_stack_clash_priv_esc.rb.txt
idPACKETSTORM:149804
last seen2018-10-16
published2018-10-15
reporterBrendan Coles
sourcehttps://packetstormsecurity.com/files/149804/Solaris-RSH-Stack-Clash-Privilege-Escalation.html
titleSolaris RSH Stack Clash Privilege Escalation