Lucene search
+L

Web Site Client Access Policy File Detection

🗓️ 11 Feb 2014 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 47 Views

Web Site Client Access Policy File Detection. Checks for the file clientaccesspolicy.xml, a simple XML file used by Microsoft Silverlight to allow access to services outside the web domain

Refs
Code
SourceLink
nessuswww.nessus.org/u
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(72427);
  script_version("1.6");
  script_set_attribute(attribute:"plugin_modification_date", value:"2026/04/22");

  script_name(english:"Web Site Client Access Policy File Detection");
  script_summary(english:"Checks for the file clientaccesspolicy.xml");

 script_set_attribute(attribute:"synopsis", value:
"The remote web server contains a 'clientaccesspolicy.xml' file.");
 script_set_attribute(attribute:"description", value:
"The remote web server contains a client access policy file.  This is a
simple XML file used by Microsoft Silverlight to allow access to
services that reside outside the exact web domain from which a
Silverlight control originated.");
 # https://docs.microsoft.com/en-us/previous-versions/windows/silverlight/dotnet-windows-silverlight/cc197955(v=vs.95)
 script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?a4eeeaa2");
 script_set_attribute(attribute:"solution", value:
"Review the contents of the policy file carefully.  Improper policies,
especially an unrestricted one with just '*', could allow for cross-
site request forgery or other attacks against the web server.");
  script_set_attribute(attribute:"risk_factor", value:"None");

  script_set_attribute(attribute:"plugin_publication_date", value:"2014/02/11");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"exploited_by_nessus", value:"true");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"CGI abuses");

  script_copyright(english:"This script is Copyright (C) 2014-2026 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("http_version.nasl");
  script_require_ports("Services/www", 80, 443);

  exit(0);
}

include("http.inc");
include('report.inc');

port = get_http_port(default:80);

# According to Microsoft, Silverlight 4 supports two different
# mechanisms for services to opt-in to cross-domain access:
#
# 1. Place a clientaccesspolicy.xml file at the root of the domain
#    where the service is hosted to configure the service to allow
#    cross-domain access.
#
# 2. Place a valid crossdomain.xml file at the root of the domain
#    where the service is hosted. The file must mark the entire domain
#    public. Silverlight supports a subset of the crossdomain.xml
#    schema.
#
# Since crossdomain.nasl already covers the latter, we only need to
# concern ourselves with the former.

url = "/clientaccesspolicy.xml";

res = http_send_recv3(
  method       : "GET",
  item         : url,
  port         : port,
  exit_on_fail : TRUE
);

if (isnull(res[2]) || "<access-policy>" >!< tolower(res[2])) audit(AUDIT_WEB_FILES_NOT, "clientaccesspolicy.xml", port);

var report_items = {
  'requests' : chomp(http_last_sent_request()),
  'file'     : 'clientaccesspolicy.xml',
  'output'   : res[2]
};

report::build_and_report(port:port, severity:SECURITY_NOTE, report_items:report_items, overrides:{'attach_type':'application/xml'});

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

22 Apr 2026 00:00Current
5.8Medium risk
Vulners AI Score5.8
47