Lucene search
+L

pfSense Squid < 0.4.18 Multiple Vulnerabilities - Active Check

🗓️ 19 Jul 2016 00:00:00Reported by Copyright (C) 2016 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 24 Views

pfSense Squid Multiple Vulnerabilities. Squid on pfSense prone to multiple vulnerabilities due to improper variable escaping, allowing remote attackers to execute arbitrary script code in user's browser session and within the administrators' trust relationship when viewing log files through pfSense web-GUI

Refs
Code
# SPDX-FileCopyrightText: 2016 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:pfsense:pfsense";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.808587");
  script_version("2025-09-09T14:09:45+0000");
  script_tag(name:"cvss_base", value:"4.3");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:N/I:P/A:N");
  script_tag(name:"last_modification", value:"2025-09-09 14:09:45 +0000 (Tue, 09 Sep 2025)");
  script_tag(name:"creation_date", value:"2016-07-19 12:17:57 +0530 (Tue, 19 Jul 2016)");
  script_tag(name:"qod_type", value:"remote_analysis");
  script_name("pfSense Squid < 0.4.18 Multiple Vulnerabilities - Active Check");

  script_tag(name:"summary", value:"Squid running on pfSense is prone to multiple
  vulnerabilities.");

  script_tag(name:"vuldetect", value:"Send a crafted request via HTTP GET and
  check whether it is able to read cookie or not.");

  script_tag(name:"insight", value:"Multiple flaws exist due to improper
  escaping of variables in 'squid-monitor.php' and 'squid_clwarn.php' scripts.");

  script_tag(name:"impact", value:"Successful exploitation will allow remote
  attackers to execute arbitrary script code in a user's browser session within
  the trust relationship between their browser as well as any administrators
  viewing the log files through the pfSense web-GUI.");

  script_tag(name:"affected", value:"Squid version 0.4.16_2 running on pfSense
  version 2.3.1-RELEASE-p1 and probably prior.");

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

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

  script_xref(name:"URL", value:"https://seclists.org/fulldisclosure/2016/Jun/43");
  script_xref(name:"URL", value:"https://packetstormsecurity.com/files/137526");

  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2016 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_pfsense_consolidation.nasl");
  script_require_ports("Services/www", 443);
  script_mandatory_keys("pfsense/http/detected");

  exit(0);
}

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

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

if(!get_app_location(port:port, cpe:CPE, nofork:TRUE))
  exit(0);

url = "/squid_clwarn.php";
res = http_get_cache(item:url, port:port);

if(res && res =~ "Powered by.*>SquidClamav") {
  url = "/squid_clwarn.php?url=xyz&source=xyz&user=&virus=stream:<script>alert(document.cookie)</script>";

  if(http_vuln_check(port:port, url:url, check_header:TRUE, pattern:"Powered by.*>SquidClamav",
     extra_check:make_list("<script>alert\(document\.cookie\)</script>", "Virus detected", "Virus name"))) {
    report = http_report_vuln_url(port:port, url:url);
    security_message(port:port, data:report);
    exit(0);
  }

  exit(99);
}

exit(0);

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
24