RHEL 7 : Satellite 6.10 Release (Moderate) (RHSA-2021:4702) - Nessus

Critical   Plugin ID: 155377

This page contains detailed information about the RHEL 7 : Satellite 6.10 Release (Moderate) (RHSA-2021:4702) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 155377
Name: RHEL 7 : Satellite 6.10 Release (Moderate) (RHSA-2021:4702)
Filename: redhat-RHSA-2021-4702.nasl
Vulnerability Published: 2019-10-08
This Plugin Published: 2021-11-17
Last Modification Time: 2021-11-17
Plugin Version: 1.2
Plugin Type: local
Plugin Family: Red Hat Local Security Checks
Dependencies: redhat_repos.nasl, ssh_get_info.nasl
Required KB Items [?]: Host/cpu, Host/local_checks_enabled, Host/RedHat/release, Host/RedHat/rpm-list

Vulnerability Information


Severity: Critical
Vulnerability Published: 2019-10-08
Patch Published: 2021-11-16
CVE [?]: CVE-2019-14853, CVE-2019-14859, CVE-2019-25025, CVE-2020-8130, CVE-2020-8908, CVE-2020-14343, CVE-2020-26247, CVE-2021-3413, CVE-2021-3494, CVE-2021-20256, CVE-2021-21330, CVE-2021-22885, CVE-2021-22902, CVE-2021-22904, CVE-2021-28658, CVE-2021-29509, CVE-2021-31542, CVE-2021-32740, CVE-2021-33203, CVE-2021-33503, CVE-2021-33571
CPE [?]: cpe:/o:redhat:enterprise_linux:7, p-cpe:/a:redhat:enterprise_linux:candlepin, p-cpe:/a:redhat:enterprise_linux:foreman, p-cpe:/a:redhat:enterprise_linux:python3-django, p-cpe:/a:redhat:enterprise_linux:python3-ecdsa, p-cpe:/a:redhat:enterprise_linux:python3-pyyaml, p-cpe:/a:redhat:enterprise_linux:python3-urllib3, p-cpe:/a:redhat:enterprise_linux:satellite, p-cpe:/a:redhat:enterprise_linux:satellite-capsule, p-cpe:/a:redhat:enterprise_linux:tfm-rubygem-actionpack, p-cpe:/a:redhat:enterprise_linux:tfm-rubygem-activerecord-session_store, p-cpe:/a:redhat:enterprise_linux:tfm-rubygem-addressable, p-cpe:/a:redhat:enterprise_linux:tfm-rubygem-nokogiri, p-cpe:/a:redhat:enterprise_linux:tfm-rubygem-puma, p-cpe:/a:redhat:enterprise_linux:tfm-rubygem-rails

Synopsis

The remote Red Hat host is missing one or more security updates.

Description

The remote Redhat Enterprise Linux 7 host has packages installed that are affected by multiple vulnerabilities as referenced in the RHSA-2021:4702 advisory.

- python-ecdsa: Unexpected and undocumented exceptions during signature decoding (CVE-2019-14853)

- python-ecdsa: DER encoding is not being verified in signatures (CVE-2019-14859)

- rubygem-activerecord-session_store: hijack sessions by using timing attacks targeting the session id (CVE-2019-25025)

- PyYAML: incomplete fix for CVE-2020-1747 (CVE-2020-14343)

- rubygem-nokogiri: XML external entity injection via Nokogiri::XML::Schema (CVE-2020-26247)

- rake: OS Command Injection via egrep in Rake::FileList (CVE-2020-8130)

- guava: local information disclosure via temporary directory created with unsafe permissions (CVE-2020-8908)

- Satellite: BMC controller credential leak via API (CVE-2021-20256)

- python-aiohttp: Open redirect in aiohttp.web_middlewares.normalize_path_middleware (CVE-2021-21330)

- rubygem-actionpack: Possible Information Disclosure / Unintended Method Execution in Action Pack (CVE-2021-22885)

- rails: Possible Denial of Service vulnerability in Action Dispatch (CVE-2021-22902)

- rails: Possible DoS Vulnerability in Action Controller Token Authentication (CVE-2021-22904)

- django: potential directory-traversal via uploaded files (CVE-2021-28658)

- rubygem-puma: incomplete fix for CVE-2019-16770 allows Denial of Service (DoS) (CVE-2021-29509)

- django: Potential directory-traversal via uploaded files (CVE-2021-31542)

- rubygem-addressable: ReDoS in templates (CVE-2021-32740)

- django: Potential directory traversal via ``admindocs`` (CVE-2021-33203)

- python-urllib3: ReDoS in the parsing of authority part of URL (CVE-2021-33503)

- django: Possible indeterminate SSRF, RFI, and LFI attacks since validators accepted leading zeros in IPv4 addresses (CVE-2021-33571)

- Satellite: Azure compute resource secret_key leak to authenticated users (CVE-2021-3413)

- foreman: possible man-in-the-middle in smart_proxy realm_freeipa (CVE-2021-3494)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Update the affected 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 RHEL 7 : Satellite 6.10 Release (Moderate) (RHSA-2021:4702) vulnerability:

  1. GitHub: https://github.com/rails/activerecord-session_store
    [CVE-2019-25025]
  2. GitHub: https://github.com/wxianfeng/hanzi_to_pinyin
    [CVE-2020-8130]
  3. GitHub: https://github.com/asa1997/topgear_test
    [CVE-2020-8908]
  4. GitHub: https://github.com/SugarP1g/LearningSecurity
    [CVE-2020-14343]
  5. GitHub: https://github.com/j4k0m/loader-CVE-2020-14343
    [CVE-2020-14343: A web application vulnerable to CVE-2020-14343 insecure deserialization leading to ...]
  6. GitHub: https://github.com/Bratah123/PolyBot
    [CVE-2021-21330]
  7. GitHub: https://github.com/KOOKIIEStudios/Max_Feeder
    [CVE-2021-21330]
  8. GitHub: https://github.com/TEAM-SPIRIT-Productions/Lapis
    [CVE-2021-21330]
  9. GitHub: https://github.com/engn33r/awesome-redos-security
    [CVE-2021-32740]
  10. GitHub: https://github.com/dbrennand/virustotal-python
    [CVE-2021-33503]
  11. GitHub: https://github.com/engn33r/awesome-redos-security
    [CVE-2021-33503]
  12. GitHub: https://github.com/p-rog/cve-analyser
    [CVE-2021-33503]
  13. GitHub: https://github.com/raul23/pyyaml-CVE-2020-14343
    [CVE-2020-14343: Experimenting with the CVE-2020-14343 PyYAML vulnerability]

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-14343
CVSS V2 Vector: AV:N/AC:L/Au:N/C:C/I:C/A:C/E:U/RL:OF/RC:C
CVSS Base Score:10.0 (High)
Impact Subscore:10.0
Exploitability Subscore:10.0
CVSS Temporal Score:7.4 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:7.4 (High)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C
CVSS Base Score:9.8 (Critical)
Impact Subscore:5.9
Exploitability Subscore:3.9
CVSS Temporal Score:8.5 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.5 (High)
STIG Severity [?]: I
STIG Risk Rating: High

Go back to menu.

Plugin Source


This is the redhat-RHSA-2021-4702.nasl nessus plugin source code. This script is Copyright (C) 2021 and is owned by Tenable, Inc. or an Affiliate thereof.

#%NASL_MIN_LEVEL 70300
##
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were
# extracted from Red Hat Security Advisory RHSA-2021:4702. The text
# itself is copyright (C) Red Hat, Inc.
##

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(155377);
  script_version("1.2");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/11/17");

  script_cve_id(
    "CVE-2019-14853",
    "CVE-2019-14859",
    "CVE-2019-25025",
    "CVE-2020-8130",
    "CVE-2020-8908",
    "CVE-2020-14343",
    "CVE-2020-26247",
    "CVE-2021-3413",
    "CVE-2021-3494",
    "CVE-2021-20256",
    "CVE-2021-21330",
    "CVE-2021-22885",
    "CVE-2021-22902",
    "CVE-2021-22904",
    "CVE-2021-28658",
    "CVE-2021-29509",
    "CVE-2021-31542",
    "CVE-2021-32740",
    "CVE-2021-33203",
    "CVE-2021-33503",
    "CVE-2021-33571"
  );
  script_xref(name:"RHSA", value:"2021:4702");
  script_xref(name:"IAVA", value:"2021-A-0463");

  script_name(english:"RHEL 7 : Satellite 6.10 Release (Moderate) (RHSA-2021:4702)");

  script_set_attribute(attribute:"synopsis", value:
"The remote Red Hat host is missing one or more security updates.");
  script_set_attribute(attribute:"description", value:
"The remote Redhat Enterprise Linux 7 host has packages installed that are affected by multiple vulnerabilities as
referenced in the RHSA-2021:4702 advisory.

  - python-ecdsa: Unexpected and  undocumented exceptions during signature decoding (CVE-2019-14853)

  - python-ecdsa: DER encoding is not being verified in signatures (CVE-2019-14859)

  - rubygem-activerecord-session_store: hijack sessions by using timing attacks targeting the session id
    (CVE-2019-25025)

  - PyYAML: incomplete fix for CVE-2020-1747 (CVE-2020-14343)

  - rubygem-nokogiri: XML external entity injection via Nokogiri::XML::Schema (CVE-2020-26247)

  - rake: OS Command Injection via egrep in Rake::FileList (CVE-2020-8130)

  - guava: local information disclosure via temporary directory created with unsafe permissions
    (CVE-2020-8908)

  - Satellite: BMC controller credential leak via API (CVE-2021-20256)

  - python-aiohttp: Open redirect in aiohttp.web_middlewares.normalize_path_middleware (CVE-2021-21330)

  - rubygem-actionpack: Possible Information Disclosure / Unintended Method Execution in Action Pack
    (CVE-2021-22885)

  - rails: Possible Denial of Service vulnerability in Action Dispatch (CVE-2021-22902)

  - rails: Possible DoS Vulnerability in Action Controller Token Authentication (CVE-2021-22904)

  - django: potential directory-traversal via uploaded files (CVE-2021-28658)

  - rubygem-puma: incomplete fix for CVE-2019-16770 allows Denial of Service (DoS) (CVE-2021-29509)

  - django: Potential directory-traversal via uploaded files (CVE-2021-31542)

  - rubygem-addressable: ReDoS in templates (CVE-2021-32740)

  - django: Potential directory traversal via ``admindocs`` (CVE-2021-33203)

  - python-urllib3: ReDoS in the parsing of authority part of URL (CVE-2021-33503)

  - django: Possible indeterminate SSRF, RFI, and LFI attacks since validators accepted leading zeros in IPv4
    addresses (CVE-2021-33571)

  - Satellite: Azure compute resource secret_key leak to authenticated users (CVE-2021-3413)

  - foreman: possible man-in-the-middle in smart_proxy realm_freeipa (CVE-2021-3494)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version
number.");
  script_set_attribute(attribute:"see_also", value:"https://cwe.mitre.org/data/definitions/20.html");
  script_set_attribute(attribute:"see_also", value:"https://cwe.mitre.org/data/definitions/22.html");
  script_set_attribute(attribute:"see_also", value:"https://cwe.mitre.org/data/definitions/78.html");
  script_set_attribute(attribute:"see_also", value:"https://cwe.mitre.org/data/definitions/200.html");
  script_set_attribute(attribute:"see_also", value:"https://cwe.mitre.org/data/definitions/276.html");
  script_set_attribute(attribute:"see_also", value:"https://cwe.mitre.org/data/definitions/319.html");
  script_set_attribute(attribute:"see_also", value:"https://cwe.mitre.org/data/definitions/347.html");
  script_set_attribute(attribute:"see_also", value:"https://cwe.mitre.org/data/definitions/391.html");
  script_set_attribute(attribute:"see_also", value:"https://cwe.mitre.org/data/definitions/400.html");
  script_set_attribute(attribute:"see_also", value:"https://cwe.mitre.org/data/definitions/601.html");
  script_set_attribute(attribute:"see_also", value:"https://cwe.mitre.org/data/definitions/611.html");
  script_set_attribute(attribute:"see_also", value:"https://cwe.mitre.org/data/definitions/835.html");
  script_set_attribute(attribute:"see_also", value:"https://cwe.mitre.org/data/definitions/918.html");
  script_set_attribute(attribute:"see_also", value:"https://access.redhat.com/security/cve/CVE-2019-14853");
  script_set_attribute(attribute:"see_also", value:"https://access.redhat.com/security/cve/CVE-2019-14859");
  script_set_attribute(attribute:"see_also", value:"https://access.redhat.com/security/cve/CVE-2019-25025");
  script_set_attribute(attribute:"see_also", value:"https://access.redhat.com/security/cve/CVE-2020-8130");
  script_set_attribute(attribute:"see_also", value:"https://access.redhat.com/security/cve/CVE-2020-8908");
  script_set_attribute(attribute:"see_also", value:"https://access.redhat.com/security/cve/CVE-2020-14343");
  script_set_attribute(attribute:"see_also", value:"https://access.redhat.com/security/cve/CVE-2020-26247");
  script_set_attribute(attribute:"see_also", value:"https://access.redhat.com/security/cve/CVE-2021-3413");
  script_set_attribute(attribute:"see_also", value:"https://access.redhat.com/security/cve/CVE-2021-3494");
  script_set_attribute(attribute:"see_also", value:"https://access.redhat.com/security/cve/CVE-2021-20256");
  script_set_attribute(attribute:"see_also", value:"https://access.redhat.com/security/cve/CVE-2021-21330");
  script_set_attribute(attribute:"see_also", value:"https://access.redhat.com/security/cve/CVE-2021-22885");
  script_set_attribute(attribute:"see_also", value:"https://access.redhat.com/security/cve/CVE-2021-22902");
  script_set_attribute(attribute:"see_also", value:"https://access.redhat.com/security/cve/CVE-2021-22904");
  script_set_attribute(attribute:"see_also", value:"https://access.redhat.com/security/cve/CVE-2021-28658");
  script_set_attribute(attribute:"see_also", value:"https://access.redhat.com/security/cve/CVE-2021-29509");
  script_set_attribute(attribute:"see_also", value:"https://access.redhat.com/security/cve/CVE-2021-31542");
  script_set_attribute(attribute:"see_also", value:"https://access.redhat.com/security/cve/CVE-2021-32740");
  script_set_attribute(attribute:"see_also", value:"https://access.redhat.com/security/cve/CVE-2021-33203");
  script_set_attribute(attribute:"see_also", value:"https://access.redhat.com/security/cve/CVE-2021-33503");
  script_set_attribute(attribute:"see_also", value:"https://access.redhat.com/security/cve/CVE-2021-33571");
  script_set_attribute(attribute:"see_also", value:"https://access.redhat.com/errata/RHSA-2021:4702");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.redhat.com/1758704");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.redhat.com/1760843");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.redhat.com/1816270");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.redhat.com/1860466");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.redhat.com/1906919");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.redhat.com/1912487");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.redhat.com/1930352");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.redhat.com/1930926");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.redhat.com/1933364");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.redhat.com/1935724");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.redhat.com/1944801");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.redhat.com/1948005");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.redhat.com/1954294");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.redhat.com/1957441");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.redhat.com/1961379");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.redhat.com/1961382");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.redhat.com/1964874");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.redhat.com/1966251");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.redhat.com/1966253");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.redhat.com/1968074");
  script_set_attribute(attribute:"see_also", value:"https://bugzilla.redhat.com/1979702");
  script_set_attribute(attribute:"solution", value:
"Update the affected packages.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
  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:H/I:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2020-14343");

  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");
  script_cwe_id(20, 22, 78, 200, 276, 319, 347, 391, 400, 601, 611, 835, 918);

  script_set_attribute(attribute:"vuln_publication_date", value:"2019/10/08");
  script_set_attribute(attribute:"patch_publication_date", value:"2021/11/16");
  script_set_attribute(attribute:"plugin_publication_date", value:"2021/11/17");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:redhat:enterprise_linux:7");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:candlepin");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:foreman");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:python3-django");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:python3-ecdsa");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:python3-pyyaml");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:python3-urllib3");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:satellite");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:satellite-capsule");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:tfm-rubygem-actionpack");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:tfm-rubygem-activerecord-session_store");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:tfm-rubygem-addressable");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:tfm-rubygem-nokogiri");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:tfm-rubygem-puma");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:tfm-rubygem-rails");
  script_set_attribute(attribute:"stig_severity", value:"I");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Red Hat Local Security Checks");

  script_copyright(english:"This script is Copyright (C) 2021 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("ssh_get_info.nasl", "redhat_repos.nasl");
  script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list", "Host/cpu");

  exit(0);
}


include('audit.inc');
include('global_settings.inc');
include('misc_func.inc');
include('rpm.inc');
include('rhel.inc');

if (!get_kb_item('Host/local_checks_enabled')) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
var release = get_kb_item('Host/RedHat/release');
if (isnull(release) || 'Red Hat' >!< release) audit(AUDIT_OS_NOT, 'Red Hat');
var os_ver = pregmatch(pattern: "Red Hat Enterprise Linux.*release ([0-9]+(\.[0-9]+)?)", string:release);
if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, 'Red Hat');
var os_ver = os_ver[1];
if (!rhel_check_release(operator: 'ge', os_version: os_ver, rhel_version: '7')) audit(AUDIT_OS_NOT, 'Red Hat 7.x', 'Red Hat ' + 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$" && 's390' >!< cpu && 'aarch64' >!< cpu) audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, 'Red Hat', cpu);

var repositories = {
    'satellite_6_10_el7': [
      'rhel-7-server-satellite-6.10-debug-rpms',
      'rhel-7-server-satellite-6.10-rpms',
      'rhel-7-server-satellite-6.10-source-rpms'
    ],
    'satellite_capsule_6_10_el7': [
      'rhel-7-server-satellite-capsule-6.10-debug-rpms',
      'rhel-7-server-satellite-capsule-6.10-rpms',
      'rhel-7-server-satellite-capsule-6.10-source-rpms'
    ]
};

var repo_sets = rhel_get_valid_repo_sets(repositories:repositories);
if(repo_sets == RHEL_REPOS_NO_OVERLAP_MESSAGE) audit(AUDIT_PACKAGE_LIST_MISSING, RHEL_REPO_AUDIT_PACKAGE_LIST_DETAILS);

var pkgs = [
    {'reference':'candlepin-4.0.9-1.el7sat', 'release':'7', 'el_string':'el7sat', 'rpm_spec_vers_cmp':TRUE, 'repo_list':['satellite_6_10_el7', 'satellite_capsule_6_10_el7']},
    {'reference':'foreman-2.5.2.17-2.el7sat', 'release':'7', 'el_string':'el7sat', 'rpm_spec_vers_cmp':TRUE, 'repo_list':['satellite_6_10_el7', 'satellite_capsule_6_10_el7']},
    {'reference':'python3-django-2.2.24-1.el7pc', 'release':'7', 'el_string':'el7pc', 'rpm_spec_vers_cmp':TRUE, 'repo_list':['satellite_6_10_el7', 'satellite_capsule_6_10_el7']},
    {'reference':'python3-ecdsa-0.13.3-2.el7pc', 'release':'7', 'el_string':'el7pc', 'rpm_spec_vers_cmp':TRUE, 'repo_list':['satellite_6_10_el7', 'satellite_capsule_6_10_el7']},
    {'reference':'python3-pyyaml-5.4.1-1.el7pc', 'cpu':'x86_64', 'release':'7', 'el_string':'el7pc', 'rpm_spec_vers_cmp':TRUE, 'repo_list':['satellite_6_10_el7', 'satellite_capsule_6_10_el7']},
    {'reference':'python3-urllib3-1.26.5-1.el7pc', 'release':'7', 'el_string':'el7pc', 'rpm_spec_vers_cmp':TRUE, 'repo_list':['satellite_6_10_el7', 'satellite_capsule_6_10_el7']},
    {'reference':'satellite-6.10.0-3.el7sat', 'release':'7', 'el_string':'el7sat', 'rpm_spec_vers_cmp':TRUE, 'repo_list':['satellite_6_10_el7', 'satellite_capsule_6_10_el7']},
    {'reference':'satellite-capsule-6.10.0-3.el7sat', 'release':'7', 'el_string':'el7sat', 'rpm_spec_vers_cmp':TRUE, 'repo_list':['satellite_6_10_el7', 'satellite_capsule_6_10_el7']},
    {'reference':'tfm-rubygem-actionpack-6.0.3.7-1.el7sat', 'release':'7', 'el_string':'el7sat', 'rpm_spec_vers_cmp':TRUE, 'repo_list':['satellite_6_10_el7', 'satellite_capsule_6_10_el7']},
    {'reference':'tfm-rubygem-activerecord-session_store-2.0.0-1.el7sat', 'release':'7', 'el_string':'el7sat', 'rpm_spec_vers_cmp':TRUE, 'repo_list':['satellite_6_10_el7', 'satellite_capsule_6_10_el7']},
    {'reference':'tfm-rubygem-addressable-2.8.0-1.el7sat', 'release':'7', 'el_string':'el7sat', 'rpm_spec_vers_cmp':TRUE, 'repo_list':['satellite_6_10_el7', 'satellite_capsule_6_10_el7']},
    {'reference':'tfm-rubygem-nokogiri-1.11.3-2.el7sat', 'cpu':'x86_64', 'release':'7', 'el_string':'el7sat', 'rpm_spec_vers_cmp':TRUE, 'repo_list':['satellite_6_10_el7', 'satellite_capsule_6_10_el7']},
    {'reference':'tfm-rubygem-puma-5.3.2-1.el7sat', 'cpu':'x86_64', 'release':'7', 'el_string':'el7sat', 'rpm_spec_vers_cmp':TRUE, 'repo_list':['satellite_6_10_el7', 'satellite_capsule_6_10_el7']},
    {'reference':'tfm-rubygem-rails-6.0.3.7-1.el7sat', 'release':'7', 'el_string':'el7sat', 'rpm_spec_vers_cmp':TRUE, 'repo_list':['satellite_6_10_el7', 'satellite_capsule_6_10_el7']}
];

var flag = 0;
foreach 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;
  var repo_list = NULL;
  if (!empty_or_null(package_array['repo_list'])) repo_list = package_array['repo_list'];
  if (!empty_or_null(package_array['reference'])) reference = package_array['reference'];
  if (!empty_or_null(package_array['release'])) release = 'RHEL' + 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 &&
      (rhel_decide_repo_check(repo_list:repo_list, repo_sets:repo_sets) || (!exists_check || 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++;
}

if (flag)
{
  var extra = NULL;
  if (empty_or_null(repo_sets)) extra = rpm_report_get() + redhat_report_repo_caveat();
  else extra = rpm_report_get() + redhat_report_package_caveat();
  security_report_v4(
      port       : 0,
      severity   : SECURITY_HOLE,
      extra      : extra
  );
  exit(0);
}
else
{
  var tested = pkg_tests_get();
  if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
  else audit(AUDIT_PACKAGE_NOT_INSTALLED, 'candlepin / foreman / python3-django / python3-ecdsa / python3-pyyaml / etc');
}

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

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/redhat-RHSA-2021-4702.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\redhat-RHSA-2021-4702.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/redhat-RHSA-2021-4702.nasl

Go back to menu.

How to Run


Here is how to run the RHEL 7 : Satellite 6.10 Release (Moderate) (RHSA-2021:4702) 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 Red Hat Local Security Checks plugin family.
  6. On the right side table select RHEL 7 : Satellite 6.10 Release (Moderate) (RHSA-2021:4702) plugin ID 155377.
  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 redhat-RHSA-2021-4702.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a redhat-RHSA-2021-4702.nasl -t <IP/HOST>

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

/opt/nessus/bin/nasl -T - redhat-RHSA-2021-4702.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 redhat-RHSA-2021-4702.nasl -t <IP/HOST>

Go back to menu.

References


RHSA | Red Hat Security Advisory: IAVA | Information Assurance Vulnerability Alert:
  • 2021-A-0463
CWE | Common Weakness Enumeration:
  • CWE-20 (Weakness) Improper Input Validation
  • CWE-22 (Weakness) Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-78 (Weakness) Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  • CWE-200 (Weakness) Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-276 (Weakness) Incorrect Default Permissions
  • CWE-319 (Weakness) Cleartext Transmission of Sensitive Information
  • CWE-347 (Weakness) Improper Verification of Cryptographic Signature
  • CWE-391 (Weakness) Unchecked Error Condition
  • CWE-400 (Weakness) Uncontrolled Resource Consumption
  • CWE-601 (Weakness) URL Redirection to Untrusted Site ('Open Redirect')
  • CWE-611 (Weakness) Improper Restriction of XML External Entity Reference
  • CWE-835 (Weakness) Loop with Unreachable Exit Condition ('Infinite Loop')
  • CWE-918 (Weakness) Server-Side Request Forgery (SSRF)
See also: Similar and related Nessus plugins:
  • 157659 - AlmaLinux 8 : python38:3.8 and python38-devel:3.8 (ALSA-2021:2583)
  • 146036 - CentOS 8 : python38:3.8 (CESA-2020:4641)
  • 151145 - CentOS 8 : python38:3.8 and python38-devel:3.8 (CESA-2021:2583)
  • 145771 - EulerOS 2.0 SP8 : PyYAML (EulerOS-SA-2021-1168)
  • 147051 - EulerOS Virtualization for ARM 64 3.0.6.0 : PyYAML (EulerOS-SA-2021-1565)
  • 148626 - EulerOS Virtualization 2.9.1 : PyYAML (EulerOS-SA-2021-1723)
  • 148591 - EulerOS Virtualization 2.9.0 : pyyaml (EulerOS-SA-2021-1755)
  • 149578 - EulerOS 2.0 SP5 : PyYAML (EulerOS-SA-2021-1912)
  • 150211 - EulerOS 2.0 SP9 : pyyaml (EulerOS-SA-2021-1937)
  • 150205 - EulerOS 2.0 SP9 : PyYAML (EulerOS-SA-2021-1958)
  • 151250 - EulerOS Virtualization 3.0.6.6 : PyYAML (EulerOS-SA-2021-2031)
  • 151330 - EulerOS Virtualization for ARM 64 3.0.2.0 : PyYAML (EulerOS-SA-2021-2078)
  • 156538 - EulerOS Virtualization 3.0.2.6 : PyYAML (EulerOS-SA-2021-2902)
  • 145367 - Fedora 33 : PyYAML (2021-3342569a0f)
  • 145763 - Fedora 32 : PyYAML (2021-eed7193502)
  • 150230 - FreeBSD : PyYAML -- arbitrary code execution (c7ec6375-c3cf-11eb-904f-14dae9d5a9d2)
  • 151279 - Oracle Linux 8 : python38:3.8 / and / python38-devel:3.8 (ELSA-2021-2583)
  • 146772 - Photon OS 1.0: Pyyaml PHSA-2021-1.0-0361
  • 146067 - Photon OS 3.0: Pyyaml PHSA-2021-3.0-0190
  • 142431 - RHEL 8 : python38:3.8 (RHSA-2020:4641)
  • 157771 - Rocky Linux 8 : python38:3.8 and python38-devel:3.8 (RLSA-2021:2583)
  • 152809 - SUSE SLES12 Security Update : python-PyYAML (SUSE-SU-2021:2818-1)
  • 149417 - Ubuntu 20.04 LTS / 20.10 : PyYAML vulnerability (USN-4940-1)

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file redhat-RHSA-2021-4702.nasl version 1.2. For more plugins, visit the Nessus Plugin Library.

Go back to menu.