| Source | Link |
|---|---|
| nessus | www.nessus.org/u |
| cve | www.cve.mitre.org/cgi-bin/cvename.cgi |
#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
##
include('compat.inc');
if (description)
{
script_id(187568);
script_version("1.0");
script_set_attribute(attribute:"plugin_modification_date", value:"2024/01/03");
script_cve_id("CVE-2021-42574");
script_name(english:"GitLab 0.0 < 14.2.6 / 14.3 < 14.3.4 / 14.4 < 14.4.1 (CVE-2021-42574)");
script_set_attribute(attribute:"synopsis", value:
"The version of GitLab installed on the remote host is affected by a vulnerability.");
script_set_attribute(attribute:"description", value:
"The version of GitLab installed on the remote host is affected by a vulnerability, as follows:
- An issue was discovered in the Bidirectional Algorithm in the Unicode Specification through 14.0. It
permits the visual reordering of characters via control sequences, which can be used to craft source code
that renders different logic than the logical ordering of tokens ingested by compilers and interpreters.
Adversaries can leverage this to encode source code for compilers accepting Unicode such that targeted
vulnerabilities are introduced invisibly to human reviewers. NOTE: the Unicode Consortium offers the
following alternative approach to presenting this concern. An issue is noted in the nature of
international text that can affect applications that implement support for The Unicode Standard and the
Unicode Bidirectional Algorithm (all versions). Due to text display behavior when text includes left-to-
right and right-to-left characters, the visual order of tokens may be different from their logical order.
Additionally, control characters needed to fully support the requirements of bidirectional text can
further obfuscate the logical order of tokens. Unless mitigated, an adversary could craft source code such
that the ordering of tokens perceived by human reviewers does not match what will be processed by a
compiler/interpreter/etc. The Unicode Consortium has documented this class of vulnerability in its
document, Unicode Technical Report #36, Unicode Security Considerations. The Unicode Consortium also
provides guidance on mitigations for this class of issues in Unicode Technical Standard #39, Unicode
Security Mechanisms, and in Unicode Standard Annex #31, Unicode Identifier and Pattern Syntax. Also, the
BIDI specification allows applications to tailor the implementation in ways that can mitigate misleading
visual reordering in program text; see HL4 in Unicode Standard Annex #9, Unicode Bidirectional Algorithm.
(CVE-2021-42574)
Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version
number.");
# https://about.gitlab.com/releases/2021/10/28/security-release-gitlab-14-4-1-released/
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?fb58e26d");
script_set_attribute(attribute:"solution", value:
"Upgrade to GitLab version 14.2.6, 14.3.4, 14.4.1 or later.");
script_set_attribute(attribute:"agent", value:"unix");
script_set_cvss_base_vector("CVSS2#AV:N/AC:H/Au:N/C:P/I:P/A:P");
script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H");
script_set_cvss3_temporal_vector("CVSS:3.0/E:P/RL:O/RC:C");
script_set_attribute(attribute:"cvss_score_source", value:"CVE-2021-42574");
script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
script_set_attribute(attribute:"exploit_available", value:"true");
script_set_attribute(attribute:"vuln_publication_date", value:"2021/10/28");
script_set_attribute(attribute:"patch_publication_date", value:"2021/10/28");
script_set_attribute(attribute:"plugin_publication_date", value:"2024/01/03");
script_set_attribute(attribute:"plugin_type", value:"combined");
script_set_attribute(attribute:"cpe", value:"cpe:/a:gitlab:gitlab");
script_set_attribute(attribute:"generated_plugin", value:"current");
script_set_attribute(attribute:"thorough_tests", value:"true");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"CGI abuses");
script_copyright(english:"This script is Copyright (C) 2024 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("gitlab_webui_detect.nbin", "gitlab_nix_installed.nbin");
script_require_keys("installed_sw/GitLab");
exit(0);
}
include('vcf.inc');
var app = 'GitLab';
var app_info = vcf::combined_get_app_info(app:app);
if (report_paranoia < 2 && max_index(app_info.parsed_version[0]) < 3 && app_info.version =~ "^14\.(2|3|4)$")
if (!empty_or_null(app_info.port))
audit(AUDIT_POTENTIAL_VULN, app, app_info.version, app_info.port);
else
audit(AUDIT_POTENTIAL_VULN, app, app_info.version);
var constraints = [
{ 'min_version' : '0.0', 'fixed_version' : '14.2.6' },
{ 'min_version' : '14.3', 'fixed_version' : '14.3.4' },
{ 'min_version' : '14.4', 'fixed_version' : '14.4.1' }
];
vcf::check_version_and_report(
app_info:app_info,
constraints:constraints,
severity:SECURITY_WARNING
);
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation