Oracle Solaris PAM parse_user_name() buffer overflow (CVE-2020-14871) - Nessus

Critical   Plugin ID: 142712

This page contains detailed information about the Oracle Solaris PAM parse_user_name() buffer overflow (CVE-2020-14871) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 142712
Name: Oracle Solaris PAM parse_user_name() buffer overflow (CVE-2020-14871)
Filename: solaris_ssh_pam_cve-2020-14871.nbin
Vulnerability Published: 2020-10-21
This Plugin Published: 2020-11-11
Last Modification Time: 2022-05-03
Plugin Version: 1.74
Plugin Type: remote
Plugin Family: Misc.
Dependencies: ssh_detect.nasl

Vulnerability Information


Severity: Critical
Vulnerability Published: 2020-10-21
Patch Published: 2020-10-21
CVE [?]: CVE-2020-14871
CPE [?]: cpe:/o:oracle:solaris

Synopsis

The SSH server running on the remote host is affected by a buffer overflow vulnerability.

Description

The remote SSH server is affected by a security bypass vulnerability due to a flaw in the parse_user_name() function in the Pluggable Authentication Module (PAM). A remote attacker can exploit this, via a crafted keyboard-interactive username string, to execute arbitrary code on the target system.

Solution

Oracle has released security updates for the affected systems.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): Services/ssh
Exploit Available: True (Metasploit Framework, Exploit-DB, GitHub)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the Oracle Solaris PAM parse_user_name() buffer overflow (CVE-2020-14871) vulnerability:

  1. Metasploit: exploit/solaris/ssh/pam_username_bof
    [Oracle Solaris SunSSH PAM parse_user_name() Buffer Overflow]
  2. Exploit-DB: exploits/solaris/remote/49261.c
    [EDB-49261: Solaris SunSSH 11.0 x86 - libpam Remote Root]
  3. Exploit-DB: exploits/solaris/remote/49896.py
    [EDB-49896: Solaris SunSSH 11.0 x86 - libpam Remote Root (2)]
  4. Exploit-DB: exploits/solaris/remote/50039.py
    [EDB-50039: Solaris SunSSH 11.0 x86 - libpam Remote Root (3)]
  5. GitHub: https://github.com/hackerhouse-opensource/exploits
    [CVE-2020-14871]
  6. GitHub: https://github.com/robidev/CVE-2020-14871-Exploit
    [CVE-2020-14871: This is a basic ROP based exploit for CVE 2020-14871. CVE 2020-14871 is a ...]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS Score Source [?]: CVE-2020-14871
CVSS V2 Vector: AV:N/AC:L/Au:N/C:C/I:C/A:C/E:H/RL:OF/RC:C
CVSS Base Score:10.0 (High)
Impact Subscore:10.0
Exploitability Subscore:10.0
CVSS Temporal Score:8.7 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.7 (High)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H/E:H/RL:O/RC:C
CVSS Base Score:10.0 (Critical)
Impact Subscore:6.0
Exploitability Subscore:3.9
CVSS Temporal Score:9.5 (Critical)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:9.5 (Critical)

Go back to menu.

Plugin Source


The solaris_ssh_pam_cve-2020-14871.nbin Nessus plugin is distributed in a propriatory binary format and its source code is protected. This script is Copyright (C) 2020-2022 and is owned by Tenable, Inc. or an Affiliate thereof.

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/solaris_ssh_pam_cve-2020-14871.nbin
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\solaris_ssh_pam_cve-2020-14871.nbin
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/solaris_ssh_pam_cve-2020-14871.nbin

Go back to menu.

How to Run


Here is how to run the Oracle Solaris PAM parse_user_name() buffer overflow (CVE-2020-14871) as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select Misc. plugin family.
  6. On the right side table select Oracle Solaris PAM parse_user_name() buffer overflow (CVE-2020-14871) plugin ID 142712.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl solaris_ssh_pam_cve-2020-14871.nbin -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a solaris_ssh_pam_cve-2020-14871.nbin -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - solaris_ssh_pam_cve-2020-14871.nbin -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state solaris_ssh_pam_cve-2020-14871.nbin -t <IP/HOST>

Go back to menu.

References


See also: Similar and related Nessus plugins:
  • 141557 - Solaris 10 (sparc) : 153074-01
  • 141553 - Solaris 10 (x86) : 153075-01
  • 141772 - Oracle Solaris Critical Patch Update : oct2020_SRU11_3_36_23_0
  • 141773 - Oracle Solaris Critical Patch Update : oct2020_SRU11_4_24_75_2
  • 109176 - Oracle Solaris Critical Patch Update : apr2018_SRU11_3_31_6_0 (Spectre)
  • 135667 - Oracle Solaris Critical Patch Update : apr2020_SRU11_3_36_20_0
  • 135668 - Oracle Solaris Critical Patch Update : apr2020_SRU11_4_15_5_0
  • 80936 - Oracle Solaris Critical Patch Update : jan2015_SRU11_1_11_4_0
  • 80937 - Oracle Solaris Critical Patch Update : jan2015_SRU11_1_15_4_0
  • 88003 - Oracle Solaris Critical Patch Update : jan2016_SRU11_3_4_5_0
  • 121223 - Oracle Solaris Critical Patch Update : jan2019_SRU11_4_3_5_0 (Foreshadow) (Spectre)
  • 132997 - Oracle Solaris Critical Patch Update : jan2020_SRU11_4_16_4_0
  • 111188 - Oracle Solaris Critical Patch Update : jul2018_SRU11_3_31_6_0
  • 126764 - Oracle Solaris Critical Patch Update : jul2019_SRU11_3_36_13_0
  • 126768 - Oracle Solaris Critical Patch Update : jul2019_SRU11_4_8_5_0
  • 138539 - Oracle Solaris Critical Patch Update : jul2020_SRU11_4_21_69_0
  • 151922 - Oracle Solaris Critical Patch Update : jul2021_SRU11_3_36_26_0
  • 100997 - Solaris 11 : Multiple Kernel Vulnerabilities
  • 11513 - Solaris in.lpd Crafted Job Request Arbitrary Remote Command Execution
  • 76829 - Oracle Solaris Critical Patch Update : oct2012_SRU10_5
  • 130006 - Oracle Solaris Critical Patch Update : oct2019_SRU11_3_36_15_0
  • 130007 - Oracle Solaris Critical Patch Update : oct2019_SRU11_4_12_5_0

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file solaris_ssh_pam_cve-2020-14871.nbin version 1.74. For more plugins, visit the Nessus Plugin Library.

Go back to menu.