Scientific Linux Security Update : python-pip on SL7.x (noarch) (20200512) - Nessus
High Plugin ID: 137038This page contains detailed information about the Scientific Linux Security Update : python-pip on SL7.x (noarch) (20200512) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.
Plugin Overview
ID: 137038
Name: Scientific Linux Security Update : python-pip on SL7.x (noarch) (20200512)
Filename: sl_20200512_python_pip_on_SL7_x.nasl
Vulnerability Published: 2018-10-09
This Plugin Published: 2020-06-02
Last Modification Time: 2020-06-05
Plugin Version: 1.2
Plugin Type: local
Plugin Family: Scientific Linux Local Security Checks
Dependencies:
ssh_get_info.nasl
Required KB Items [?]: Host/cpu, Host/local_checks_enabled, Host/RedHat/release, Host/RedHat/rpm-list
Vulnerability Information
Severity: High
Vulnerability Published: 2018-10-09
Patch Published: 2020-05-12
CVE [?]: CVE-2018-18074, CVE-2018-20060, CVE-2019-11236, CVE-2019-11324
CPE [?]: p-cpe:/a:fermilab:scientific_linux:python3-pip, x-cpe:/o:fermilab:scientific_linux
Synopsis
The remote Scientific Linux host is missing a security update.
Description
Security Fix(es) :
- python-urllib3: Cross-host redirect does not remove Authorization header allow for credential exposure (CVE-2018-20060)
- python-urllib3: CRLF injection due to not encoding the '\r\n' sequence leading to possible attack on internal service (CVE-2019-11236)
- python-urllib3: Certification mishandle when error should be thrown (CVE-2019-11324)
- python-requests: Redirect from HTTPS to HTTP does not remove Authorization header (CVE-2018-18074)
Solution
Update the affected python3-pip package.
Public Exploits
Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (GitHub)
Exploit Ease: Exploits (PoCs) are available
Here's the list of publicly known exploits and PoCs for verifying the Scientific Linux Security Update : python-pip on SL7.x (noarch) (20200512) vulnerability:
- GitHub: https://github.com/colonelmeow/appsecctf
[CVE-2018-18074] - GitHub: https://github.com/jrak1204/overstock_test
[CVE-2018-18074] - GitHub: https://github.com/PwnCast/CVE-2018-20060
[CVE-2018-20060: PoC for exploiting CVE-2018-20060 : urllib3 before version 1.23 does not remove the ...] - GitHub: https://github.com/PwnCast/CVE-2019-11236
[CVE-2019-11236: PoC for exploiting CVE-2019-11236 : In the urllib3 library through 1.24.1 for ...] - GitHub: https://github.com/khodges42/Etrata
[CVE-2019-11236] - GitHub: https://github.com/twu/skjold
[CVE-2019-11236] - GitHub: https://github.com/PwnCast/CVE-2019-11324
[CVE-2019-11324: PoC for exploiting CVE-2019-11324 : The urllib3 library before 1.24.2 for Python ...] - GitHub: https://github.com/Tabll/gemnasium-db
[CVE-2019-11324] - GitHub: https://github.com/khodges42/Etrata
[CVE-2019-11324] - GitHub: https://github.com/twu/skjold
[CVE-2019-11324]
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-2019-11324
CVSS V2 Vector: AV:N/AC:L/Au:N/C:N/I:P/A:N/E:U/RL:OF/RC:C
CVSS Base Score: | 5.0 (Medium) |
Impact Subscore: | 2.9 |
Exploitability Subscore: | 10.0 |
CVSS Temporal Score: | 3.7 (Low) |
CVSS Environmental Score: | NA (None) |
Modified Impact Subscore: | NA |
Overall CVSS Score: | 3.7 (Low) |
CVSS Base Score: | 7.5 (High) |
Impact Subscore: | 3.6 |
Exploitability Subscore: | 3.9 |
CVSS Temporal Score: | 6.5 (Medium) |
CVSS Environmental Score: | NA (None) |
Modified Impact Subscore: | NA |
Overall CVSS Score: | 6.5 (Medium) |
Go back to menu.
Plugin Source
This is the sl_20200512_python_pip_on_SL7_x.nasl nessus plugin source code. This script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof.
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text is (C) Scientific Linux.
#
include("compat.inc");
if (description)
{
script_id(137038);
script_version("1.2");
script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/05");
script_cve_id("CVE-2018-18074", "CVE-2018-20060", "CVE-2019-11236", "CVE-2019-11324");
script_name(english:"Scientific Linux Security Update : python-pip on SL7.x (noarch) (20200512)");
script_summary(english:"Checks rpm output for the updated package");
script_set_attribute(
attribute:"synopsis",
value:"The remote Scientific Linux host is missing a security update."
);
script_set_attribute(
attribute:"description",
value:
"Security Fix(es) :
- python-urllib3: Cross-host redirect does not remove
Authorization header allow for credential exposure
(CVE-2018-20060)
- python-urllib3: CRLF injection due to not encoding the
'\r\n' sequence leading to possible attack on internal
service (CVE-2019-11236)
- python-urllib3: Certification mishandle when error
should be thrown (CVE-2019-11324)
- python-requests: Redirect from HTTPS to HTTP does not
remove Authorization header (CVE-2018-18074)"
);
# https://listserv.fnal.gov/scripts/wa.exe?A2=ind2006&L=SCIENTIFIC-LINUX-ERRATA&P=1031
script_set_attribute(
attribute:"see_also",
value:"http://www.nessus.org/u?7b4fe177"
);
script_set_attribute(
attribute:"solution",
value:"Update the affected python3-pip package."
);
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:P/A:N");
script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N");
script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
script_set_attribute(attribute:"cvss_score_source", value:"CVE-2019-11324");
script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
script_set_attribute(attribute:"plugin_type", value:"local");
script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:python3-pip");
script_set_attribute(attribute:"cpe", value:"x-cpe:/o:fermilab:scientific_linux");
script_set_attribute(attribute:"vuln_publication_date", value:"2018/10/09");
script_set_attribute(attribute:"patch_publication_date", value:"2020/05/12");
script_set_attribute(attribute:"plugin_publication_date", value:"2020/06/02");
script_set_attribute(attribute:"generated_plugin", value:"current");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_copyright(english:"This script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_family(english:"Scientific Linux Local Security Checks");
script_dependencies("ssh_get_info.nasl");
script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/RedHat/release", "Host/RedHat/rpm-list");
exit(0);
}
include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("rpm.inc");
if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
release = get_kb_item("Host/RedHat/release");
if (isnull(release) || "Scientific Linux " >!< release) audit(AUDIT_HOST_NOT, "running Scientific Linux");
os_ver = pregmatch(pattern: "Scientific Linux.*release ([0-9]+(\.[0-9]+)?)", string:release);
if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Scientific Linux");
os_ver = os_ver[1];
if (! preg(pattern:"^7([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Scientific Linux 7.x", "Scientific Linux " + os_ver);
if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
cpu = get_kb_item("Host/cpu");
if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
if (cpu >!< "x86_64" && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Scientific Linux", cpu);
flag = 0;
if (rpm_check(release:"SL7", reference:"python3-pip-9.0.3-7.el7_8")) flag++;
if (flag)
{
security_report_v4(
port : 0,
severity : SECURITY_WARNING,
extra : rpm_report_get()
);
exit(0);
}
else
{
tested = pkg_tests_get();
if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
else audit(AUDIT_PACKAGE_NOT_INSTALLED, "python3-pip");
}
The latest version of this script can be found in these locations depending on your platform:
- Linux / Unix:
/opt/nessus/lib/nessus/plugins/sl_20200512_python_pip_on_SL7_x.nasl
- Windows:
C:\ProgramData\Tenable\Nessus\nessus\plugins\sl_20200512_python_pip_on_SL7_x.nasl
- Mac OS X:
/Library/Nessus/run/lib/nessus/plugins/sl_20200512_python_pip_on_SL7_x.nasl
Go back to menu.
How to Run
Here is how to run the Scientific Linux Security Update : python-pip on SL7.x (noarch) (20200512) as a standalone plugin via the Nessus web user interface (https://localhost:8834/):
- Click to start a New Scan.
- Select Advanced Scan.
- Navigate to the Plugins tab.
- On the top right corner click to Disable All plugins.
- On the left side table select Scientific Linux Local Security Checks plugin family.
- On the right side table select Scientific Linux Security Update : python-pip on SL7.x (noarch) (20200512) plugin ID 137038.
- Specify the target on the Settings tab and click to Save the scan.
- 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 sl_20200512_python_pip_on_SL7_x.nasl -t <IP/HOST>
Run the plugin with audit trail message on the console:
/opt/nessus/bin/nasl -a sl_20200512_python_pip_on_SL7_x.nasl -t <IP/HOST>
Run the plugin with trace script execution written to the console (useful for debugging):
/opt/nessus/bin/nasl -T - sl_20200512_python_pip_on_SL7_x.nasl -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 sl_20200512_python_pip_on_SL7_x.nasl -t <IP/HOST>
Go back to menu.
References
See also:
- https://www.tenable.com/plugins/nessus/137038
- http://www.nessus.org/u?7b4fe177
- https://vulners.com/nessus/SL_20200512_PYTHON_PIP_ON_SL7_X.NASL
- 137039 - Scientific Linux Security Update : python-virtualenv on SL7.x (noarch) (20200512)
- 134649 - Scientific Linux Security Update : python-pip on SL7.x (noarch) (20200317)
- 134650 - Scientific Linux Security Update : python-virtualenv on SL7.x (noarch) (20200317)
- 134676 - RHEL 7 : python-virtualenv (RHSA-2020:0851)
- 134688 - Oracle Linux 7 : python-pip (ELSA-2020-0850)
- 134689 - Oracle Linux 7 : python-virtualenv (ELSA-2020-0851)
- 134743 - EulerOS Virtualization 3.0.2.2 : python-urllib3 (EulerOS-SA-2020-1277)
- 134826 - RHEL 7 : python-pip (RHSA-2020:0850)
- 134903 - CentOS 7 : python-pip (CESA-2020:0850)
- 134904 - CentOS 7 : python-virtualenv (CESA-2020:0851)
- 135127 - EulerOS Virtualization for ARM 64 3.0.6.0 : python-urllib3 (EulerOS-SA-2020-1340)
- 135141 - EulerOS Virtualization for ARM 64 3.0.6.0 : python-pip (EulerOS-SA-2020-1354)
- 135558 - EulerOS 2.0 SP3 : python-requests (EulerOS-SA-2020-1429)
- 135931 - Amazon Linux 2 : python-virtualenv (ALAS-2020-1413)
- 136044 - RHEL 8 : python27:2.7 (RHSA-2020:1605)
- 136112 - RHEL 8 : python-pip (RHSA-2020:1916)
- 136517 - RHEL 7 : python-virtualenv (RHSA-2020:2081)
- 136519 - RHEL 7 : python-pip (RHSA-2020:2068)
- 137039 - Scientific Linux Security Update : python-virtualenv on SL7.x (noarch) (20200512)
- 137475 - EulerOS 2.0 SP2 : python-requests (EulerOS-SA-2020-1633)
- 137485 - EulerOS 2.0 SP2 : python-urllib3 (EulerOS-SA-2020-1643)
- 137972 - EulerOS Virtualization 3.0.6.0 : python-requests (EulerOS-SA-2020-1753)
- 138048 - Amazon Linux 2 : python-urllib3 (ALAS-2020-1446)
- 138769 - NewStart CGSL MAIN 6.01 : python-pip Multiple Vulnerabilities (NS-SA-2020-0035)
- 140276 - NewStart CGSL CORE 5.04 / MAIN 5.04 : python-virtualenv Multiple Vulnerabilities (NS-SA-2020-0044)
- 141726 - EulerOS Virtualization 3.0.2.2 : python-requests (EulerOS-SA-2020-2201)
- 143975 - NewStart CGSL CORE 5.05 / MAIN 5.05 : python-pip Multiple Vulnerabilities (NS-SA-2020-0112)
- 143977 - NewStart CGSL CORE 5.05 / MAIN 5.05 : python-virtualenv Multiple Vulnerabilities (NS-SA-2020-0118)
- 145580 - CentOS 8 : python-urllib3 (CESA-2019:3590)
- 145618 - CentOS 8 : python27:2.7 (CESA-2019:3335)
- 145889 - CentOS 8 : python27:2.7 (CESA-2020:1605)
- 145934 - CentOS 8 : python-pip (CESA-2020:1916)
- 149204 - EulerOS 2.0 SP3 : python-urllib3 (EulerOS-SA-2021-1842)
- 150239 - Photon OS 3.0: Python PHSA-2021-3.0-0246
- 150806 - Debian DLA-2686-1 : python-urllib3 security update
Version
This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file sl_20200512_python_pip_on_SL7_x.nasl version 1.2. For more plugins, visit the Nessus Plugin Library.
Go back to menu.