Lucene search
+L

Active Perl CGI.pm 'Set-Cookie' and 'P3P' HTTP Header Injection Vulnerability - Windows

🗓️ 23 Jan 2013 00:00:00Reported by Copyright (C) 2013 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 35 Views

Active Perl CGI.pm 'Set-Cookie' and 'P3P' HTTP Header Injection Vulnerability - Window

Related
Refs
Code
# 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

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.803344");
  script_version("2024-02-15T05:05:40+0000");
  script_cve_id("CVE-2012-5526");
  script_tag(name:"cvss_base", value:"5.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:P/A:N");
  script_tag(name:"last_modification", value:"2024-02-15 05:05:40 +0000 (Thu, 15 Feb 2024)");
  script_tag(name:"creation_date", value:"2013-01-23 18:18:09 +0530 (Wed, 23 Jan 2013)");
  script_name("Active Perl CGI.pm 'Set-Cookie' and 'P3P' HTTP Header Injection Vulnerability - Windows");
  script_xref(name:"URL", value:"http://xforce.iss.net/xforce/xfdb/80098");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/56562");
  script_xref(name:"URL", value:"http://www.securitytracker.com/id?1027780");
  script_xref(name:"URL", value:"http://cpansearch.perl.org/src/MARKSTOS/CGI.pm-3.63/Changes");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2013 Greenbone AG");
  script_family("General");
  script_dependencies("gb_perl_detect_win.nasl");
  script_require_ports(139, 445);
  script_mandatory_keys("ActivePerl/Ver", "ActivePerl/Loc");

  script_tag(name:"impact", value:"Successful exploitation will allow attackers to inject new header items
  or modify header items.");

  script_tag(name:"affected", value:"Active Perl CGI.pm module before 3.63 on Windows");

  script_tag(name:"insight", value:"The 'CGI.pm' module does not properly filter carriage returns from user
  supplied input to be used in Set-Cookie and P3P headers.");

  script_tag(name:"solution", value:"Upgrade to Active Perl CGI.pm module version 3.63 or later.");

  script_tag(name:"summary", value:"Active Perl is prone to HTTP header injection vulnerability.");

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

  exit(0);
}

include("smb_nt.inc");
include("version_func.inc");
include("secpod_smb_func.inc");

apLoc = get_kb_item("ActivePerl/Loc");
if(apLoc)
{
  insPath = apLoc + "\lib\CGI.PM";
  txtRead = smb_read_file(fullpath:insPath, offset:0, count:10000);
  if("CGI::revision" >< txtRead)
  {
    perVer = eregmatch(pattern:"CGI::VERSION='([0-9.]+)", string:txtRead);
    if(perVer[1])
    {
      if(version_is_less(version:perVer[1], test_version:"3.63"))
      {
        report = report_fixed_ver(installed_version:perVer[1], fixed_version:"3.63", install_path:insPath);
        security_message(port: 0, data: report);
        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

15 Feb 2024 00:00Current
6.6Medium risk
Vulners AI Score6.6
CVSS 25
EPSS0.03261
35