Oracle Linux 8 : ol-automation-manager (ELSA-2022-9341) - Nessus
High Plugin ID: 160271This page contains detailed information about the Oracle Linux 8 : ol-automation-manager (ELSA-2022-9341) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.
Plugin Overview
ID: 160271
Name: Oracle Linux 8 : ol-automation-manager (ELSA-2022-9341)
Filename: oraclelinux_ELSA-2022-9341.nasl
Vulnerability Published: 2018-06-27
This Plugin Published: 2022-04-27
Last Modification Time: 2022-04-27
Plugin Version: 1.2
Plugin Type: local
Plugin Family: Oracle Linux Local Security Checks
Dependencies:
ssh_get_info.nasl
Required KB Items [?]: Host/local_checks_enabled, Host/OracleLinux, Host/RedHat/release, Host/RedHat/rpm-list
Vulnerability Information
Severity: High
Vulnerability Published: 2018-06-27
Patch Published: 2022-04-27
CVE [?]: CVE-2017-18342, CVE-2020-10108, CVE-2020-10109, CVE-2020-27783, CVE-2021-28658, CVE-2021-28957, CVE-2021-31542, CVE-2021-33203, CVE-2021-33571, CVE-2021-43818, CVE-2021-44420
CPE [?]: cpe:/o:oracle:linux:8, p-cpe:/a:oracle:linux:ol-automation-manager, p-cpe:/a:oracle:linux:ol-automation-manager-cli, p-cpe:/a:oracle:linux:python3-olamkit
Synopsis
The remote Oracle Linux host is missing one or more security updates.
Description
The remote Oracle Linux 8 host has packages installed that are affected by multiple vulnerabilities as referenced in the ELSA-2022-9341 advisory.
- In Twisted Web through 19.10.0, there was an HTTP request splitting vulnerability. When presented with two content-length headers, it ignored the first header. When the second content-length value was set to zero, the request body was interpreted as a pipelined request. (CVE-2020-10108)
- In Twisted Web through 19.10.0, there was an HTTP request splitting vulnerability. When presented with a content-length and a chunked encoding header, the content-length took precedence and the remainder of the request body was interpreted as a pipelined request. (CVE-2020-10109)
- A XSS vulnerability was discovered in python-lxml's clean module. The module's parser didn't properly imitate browsers, which caused different behaviors between the sanitizer and the user's page. A remote attacker could exploit this flaw to run arbitrary HTML/JS code. (CVE-2020-27783)
- In PyYAML before 5.1, the yaml.load() API could execute arbitrary code if used with untrusted data. The load() function has been deprecated in version 5.1 and the 'UnsafeLoader' has been introduced for backward compatibility with the function. (CVE-2017-18342)
- Django before 2.2.24, 3.x before 3.1.12, and 3.2.x before 3.2.4 has a potential directory traversal via django.contrib.admindocs. Staff members could use the TemplateDetailView view to check the existence of arbitrary files. Additionally, if (and only if) the default admindocs templates have been customized by application developers to also show file contents, then not only the existence but also the file contents would have been exposed. In other words, there is directory traversal outside of the template root directories. (CVE-2021-33203)
- In Django 2.2 before 2.2.24, 3.x before 3.1.12, and 3.2 before 3.2.4, URLValidator, validate_ipv4_address, and validate_ipv46_address do not prohibit leading zero characters in octal literals. This may allow a bypass of access control that is based on IP addresses. (validate_ipv4_address and validate_ipv46_address are unaffected with Python 3.9.5+..) . (CVE-2021-33571)
- In Django 2.2 before 2.2.25, 3.1 before 3.1.14, and 3.2 before 3.2.10, HTTP requests for URLs with trailing newlines could bypass upstream access control based on URL paths. (CVE-2021-44420)
- In Django 2.2 before 2.2.21, 3.1 before 3.1.9, and 3.2 before 3.2.1, MultiPartParser, UploadedFile, and FieldFile allowed directory traversal via uploaded files with suitably crafted file names. (CVE-2021-31542)
- In Django 2.2 before 2.2.20, 3.0 before 3.0.14, and 3.1 before 3.1.8, MultiPartParser allowed directory traversal via uploaded files with suitably crafted file names. Built-in upload handlers were not affected by this vulnerability. (CVE-2021-28658)
- lxml is a library for processing XML and HTML in the Python language. Prior to version 4.6.5, the HTML Cleaner in lxml.html lets certain crafted script content pass through, as well as script content in SVG files embedded using data URIs. Users that employ the HTML cleaner in a security relevant context should upgrade to lxml 4.6.5 to receive a patch. There are no known workarounds available. (CVE-2021-43818)
- An XSS vulnerability was discovered in python-lxml's clean module versions before 4.6.3. When disabling the safe_attrs_only and forms arguments, the Cleaner class does not remove the formaction attribute allowing for JS to bypass the sanitizer. A remote attacker could exploit this flaw to run arbitrary JS code on users who interact with incorrectly sanitized HTML. This issue is patched in lxml 4.6.3. (CVE-2021-28957)
Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.
Solution
Update the affected ol-automation-manager, ol-automation-manager-cli and / or python3-olamkit packages.
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 Oracle Linux 8 : ol-automation-manager (ELSA-2022-9341) vulnerability:
- GitHub: https://github.com/glenjarvis/talk-yaml-json-xml-oh-my
[CVE-2017-18342] - GitHub: https://github.com/markosamuli/deployment-server
[CVE-2017-18342] - GitHub: https://github.com/tankywoo/simiki
[CVE-2017-18342] - GitHub: https://github.com/sonatype-nexus-community/jake
[CVE-2020-27783]
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-2021-44420
CVSS V2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P/E:U/RL:OF/RC:C
CVSS Base Score: | 7.5 (High) |
Impact Subscore: | 6.4 |
Exploitability Subscore: | 10.0 |
CVSS Temporal Score: | 5.5 (Medium) |
CVSS Environmental Score: | NA (None) |
Modified Impact Subscore: | NA |
Overall CVSS Score: | 5.5 (Medium) |
CVSS Base Score: | 7.3 (High) |
Impact Subscore: | 3.4 |
Exploitability Subscore: | 3.9 |
CVSS Temporal Score: | 6.4 (Medium) |
CVSS Environmental Score: | NA (None) |
Modified Impact Subscore: | NA |
Overall CVSS Score: | 6.4 (Medium) |
Go back to menu.
Plugin Source
This is the oraclelinux_ELSA-2022-9341.nasl nessus plugin source code. This script is Copyright (C) 2022 and is owned by Tenable, Inc. or an Affiliate thereof.
#%NASL_MIN_LEVEL 70300
##
# (C) Tenable, Inc.
#
# The descriptive text and package checks in this plugin were
# extracted from Oracle Linux Security Advisory ELSA-2022-9341.
##
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description)
{
script_id(160271);
script_version("1.2");
script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/27");
script_cve_id(
"CVE-2017-18342",
"CVE-2020-10108",
"CVE-2020-10109",
"CVE-2020-27783",
"CVE-2021-28658",
"CVE-2021-28957",
"CVE-2021-31542",
"CVE-2021-33203",
"CVE-2021-33571",
"CVE-2021-43818",
"CVE-2021-44420"
);
script_name(english:"Oracle Linux 8 : ol-automation-manager (ELSA-2022-9341)");
script_set_attribute(attribute:"synopsis", value:
"The remote Oracle Linux host is missing one or more security updates.");
script_set_attribute(attribute:"description", value:
"The remote Oracle Linux 8 host has packages installed that are affected by multiple vulnerabilities as referenced in the
ELSA-2022-9341 advisory.
- In Twisted Web through 19.10.0, there was an HTTP request splitting vulnerability. When presented with two
content-length headers, it ignored the first header. When the second content-length value was set to zero,
the request body was interpreted as a pipelined request. (CVE-2020-10108)
- In Twisted Web through 19.10.0, there was an HTTP request splitting vulnerability. When presented with a
content-length and a chunked encoding header, the content-length took precedence and the remainder of the
request body was interpreted as a pipelined request. (CVE-2020-10109)
- A XSS vulnerability was discovered in python-lxml's clean module. The module's parser didn't properly
imitate browsers, which caused different behaviors between the sanitizer and the user's page. A remote
attacker could exploit this flaw to run arbitrary HTML/JS code. (CVE-2020-27783)
- In PyYAML before 5.1, the yaml.load() API could execute arbitrary code if used with untrusted data. The
load() function has been deprecated in version 5.1 and the 'UnsafeLoader' has been introduced for backward
compatibility with the function. (CVE-2017-18342)
- Django before 2.2.24, 3.x before 3.1.12, and 3.2.x before 3.2.4 has a potential directory traversal via
django.contrib.admindocs. Staff members could use the TemplateDetailView view to check the existence of
arbitrary files. Additionally, if (and only if) the default admindocs templates have been customized by
application developers to also show file contents, then not only the existence but also the file contents
would have been exposed. In other words, there is directory traversal outside of the template root
directories. (CVE-2021-33203)
- In Django 2.2 before 2.2.24, 3.x before 3.1.12, and 3.2 before 3.2.4, URLValidator, validate_ipv4_address,
and validate_ipv46_address do not prohibit leading zero characters in octal literals. This may allow a
bypass of access control that is based on IP addresses. (validate_ipv4_address and validate_ipv46_address
are unaffected with Python 3.9.5+..) . (CVE-2021-33571)
- In Django 2.2 before 2.2.25, 3.1 before 3.1.14, and 3.2 before 3.2.10, HTTP requests for URLs with
trailing newlines could bypass upstream access control based on URL paths. (CVE-2021-44420)
- In Django 2.2 before 2.2.21, 3.1 before 3.1.9, and 3.2 before 3.2.1, MultiPartParser, UploadedFile, and
FieldFile allowed directory traversal via uploaded files with suitably crafted file names.
(CVE-2021-31542)
- In Django 2.2 before 2.2.20, 3.0 before 3.0.14, and 3.1 before 3.1.8, MultiPartParser allowed directory
traversal via uploaded files with suitably crafted file names. Built-in upload handlers were not affected
by this vulnerability. (CVE-2021-28658)
- lxml is a library for processing XML and HTML in the Python language. Prior to version 4.6.5, the HTML
Cleaner in lxml.html lets certain crafted script content pass through, as well as script content in SVG
files embedded using data URIs. Users that employ the HTML cleaner in a security relevant context should
upgrade to lxml 4.6.5 to receive a patch. There are no known workarounds available. (CVE-2021-43818)
- An XSS vulnerability was discovered in python-lxml's clean module versions before 4.6.3. When disabling
the safe_attrs_only and forms arguments, the Cleaner class does not remove the formaction attribute
allowing for JS to bypass the sanitizer. A remote attacker could exploit this flaw to run arbitrary JS
code on users who interact with incorrectly sanitized HTML. This issue is patched in lxml 4.6.3.
(CVE-2021-28957)
Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version
number.");
script_set_attribute(attribute:"see_also", value:"https://linux.oracle.com/errata/ELSA-2022-9341.html");
script_set_attribute(attribute:"solution", value:
"Update the affected ol-automation-manager, ol-automation-manager-cli and / or python3-olamkit packages.");
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
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:L/I:L/A:L");
script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
script_set_attribute(attribute:"cvss_score_source", value:"CVE-2021-44420");
script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
script_set_attribute(attribute:"exploit_available", value:"false");
script_set_attribute(attribute:"vuln_publication_date", value:"2018/06/27");
script_set_attribute(attribute:"patch_publication_date", value:"2022/04/27");
script_set_attribute(attribute:"plugin_publication_date", value:"2022/04/27");
script_set_attribute(attribute:"plugin_type", value:"local");
script_set_attribute(attribute:"cpe", value:"cpe:/o:oracle:linux:8");
script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:ol-automation-manager");
script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:ol-automation-manager-cli");
script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:python3-olamkit");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"Oracle Linux Local Security Checks");
script_copyright(english:"This script is Copyright (C) 2022 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("ssh_get_info.nasl");
script_require_keys("Host/OracleLinux", "Host/RedHat/release", "Host/RedHat/rpm-list", "Host/local_checks_enabled");
exit(0);
}
include('rpm.inc');
if (!get_kb_item('Host/local_checks_enabled')) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
if (!get_kb_item('Host/OracleLinux')) audit(AUDIT_OS_NOT, 'Oracle Linux');
var release = get_kb_item("Host/RedHat/release");
if (isnull(release) || !pregmatch(pattern: "Oracle (?:Linux Server|Enterprise Linux)", string:release)) audit(AUDIT_OS_NOT, 'Oracle Linux');
var os_ver = pregmatch(pattern: "Oracle (?:Linux Server|Enterprise Linux) .*release ([0-9]+(\.[0-9]+)?)", string:release);
if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, 'Oracle Linux');
var os_ver = os_ver[1];
if (! preg(pattern:"^8([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, 'Oracle Linux 8', 'Oracle Linux ' + os_ver);
if (!get_kb_item('Host/RedHat/rpm-list')) audit(AUDIT_PACKAGE_LIST_MISSING);
var cpu = get_kb_item('Host/cpu');
if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
if ('x86_64' >!< cpu && cpu !~ "^i[3-6]86$" && 'aarch64' >!< cpu) audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, 'Oracle Linux', cpu);
if ('x86_64' >!< cpu) audit(AUDIT_ARCH_NOT, 'x86_64', cpu);
var pkgs = [
{'reference':'ol-automation-manager-1.0.2-1.el8', 'cpu':'x86_64', 'release':'8', 'rpm_spec_vers_cmp':TRUE},
{'reference':'ol-automation-manager-cli-1.0.2-1.el8', 'release':'8', 'rpm_spec_vers_cmp':TRUE},
{'reference':'python3-olamkit-1.0.2-1.el8', 'release':'8', 'rpm_spec_vers_cmp':TRUE}
];
var flag = 0;
foreach var package_array ( pkgs ) {
var reference = NULL;
var release = NULL;
var sp = NULL;
var cpu = NULL;
var el_string = NULL;
var rpm_spec_vers_cmp = NULL;
var epoch = NULL;
var allowmaj = NULL;
var exists_check = NULL;
if (!empty_or_null(package_array['reference'])) reference = package_array['reference'];
if (!empty_or_null(package_array['release'])) release = 'EL' + package_array['release'];
if (!empty_or_null(package_array['sp'])) sp = package_array['sp'];
if (!empty_or_null(package_array['cpu'])) cpu = package_array['cpu'];
if (!empty_or_null(package_array['el_string'])) el_string = package_array['el_string'];
if (!empty_or_null(package_array['rpm_spec_vers_cmp'])) rpm_spec_vers_cmp = package_array['rpm_spec_vers_cmp'];
if (!empty_or_null(package_array['epoch'])) epoch = package_array['epoch'];
if (!empty_or_null(package_array['allowmaj'])) allowmaj = package_array['allowmaj'];
if (!empty_or_null(package_array['exists_check'])) exists_check = package_array['exists_check'];
if (reference && release) {
if (exists_check) {
if (rpm_exists(release:release, rpm:exists_check) && rpm_check(release:release, sp:sp, cpu:cpu, reference:reference, epoch:epoch, el_string:el_string, rpm_spec_vers_cmp:rpm_spec_vers_cmp, allowmaj:allowmaj)) flag++;
} else {
if (rpm_check(release:release, sp:sp, cpu:cpu, reference:reference, epoch:epoch, el_string:el_string, rpm_spec_vers_cmp:rpm_spec_vers_cmp, allowmaj:allowmaj)) flag++;
}
}
}
if (flag)
{
security_report_v4(
port : 0,
severity : SECURITY_HOLE,
extra : rpm_report_get()
);
exit(0);
}
else
{
var tested = pkg_tests_get();
if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
else audit(AUDIT_PACKAGE_NOT_INSTALLED, 'ol-automation-manager / ol-automation-manager-cli / python3-olamkit');
}
The latest version of this script can be found in these locations depending on your platform:
- Linux / Unix:
/opt/nessus/lib/nessus/plugins/oraclelinux_ELSA-2022-9341.nasl
- Windows:
C:\ProgramData\Tenable\Nessus\nessus\plugins\oraclelinux_ELSA-2022-9341.nasl
- Mac OS X:
/Library/Nessus/run/lib/nessus/plugins/oraclelinux_ELSA-2022-9341.nasl
Go back to menu.
How to Run
Here is how to run the Oracle Linux 8 : ol-automation-manager (ELSA-2022-9341) 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 Oracle Linux Local Security Checks plugin family.
- On the right side table select Oracle Linux 8 : ol-automation-manager (ELSA-2022-9341) plugin ID 160271.
- 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 oraclelinux_ELSA-2022-9341.nasl -t <IP/HOST>
Run the plugin with audit trail message on the console:
/opt/nessus/bin/nasl -a oraclelinux_ELSA-2022-9341.nasl -t <IP/HOST>
Run the plugin with trace script execution written to the console (useful for debugging):
/opt/nessus/bin/nasl -T - oraclelinux_ELSA-2022-9341.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 oraclelinux_ELSA-2022-9341.nasl -t <IP/HOST>
Go back to menu.
References
See also:
- https://www.tenable.com/plugins/nessus/160271
- https://linux.oracle.com/errata/ELSA-2022-9341.html
- https://vulners.com/nessus/ORACLELINUX_ELSA-2022-9341.NASL
- 152764 - Oracle Linux 8 : python27:2.7 (ELSA-2021-1761)
- 152781 - RHEL 7 : rh-python38 (RHSA-2021:3254)
- 153334 - EulerOS 2.0 SP2 : python-lxml (EulerOS-SA-2021-2431)
- 155040 - CentOS 8 : python39:3.9 and python39-devel:3.9 (CESA-2021:4160)
- 155049 - CentOS 8 : python27:2.7 (CESA-2021:4151)
- 155064 - CentOS 8 : python38:3.8 and python38-devel:3.8 (CESA-2021:4162)
- 155151 - RHEL 8 : python27:2.7 (RHSA-2021:4151)
- 155193 - RHEL 8 : python38:3.8 and python38-devel:3.8 (RHSA-2021:4162)
- 155200 - RHEL 8 : python39:3.9 and python39-devel:3.9 (RHSA-2021:4160)
- 155324 - Oracle Linux 8 : python38:3.8 (ELSA-2021-1879)
- 155377 - RHEL 7 : Satellite 6.10 Release (Moderate) (RHSA-2021:4702)
- 155967 - Oracle Linux 8 : python39:3.9 / and / python39-devel:3.9 (ELSA-2021-4160)
- 155969 - Oracle Linux 8 : python38:3.8 / and / python38-devel:3.8 (ELSA-2021-4162)
- 155987 - Oracle Linux 8 : python27:2.7 (ELSA-2021-4151)
- 156005 - RHEL 8 : Red Hat OpenStack Platform 16.1 (python-django20) (RHSA-2021:5070)
- 158799 - SUSE SLED15 / SLES15 Security Update : python-lxml (SUSE-SU-2022:0803-1)
- 159062 - SUSE SLES12 Security Update : python-lxml (SUSE-SU-2022:0895-1)
Version
This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file oraclelinux_ELSA-2022-9341.nasl version 1.2. For more plugins, visit the Nessus Plugin Library.
Go back to menu.