Lucene search
+L

Web Site Cross-Domain Policy File Detection

🗓️ 15 May 2008 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 43 Views

Web Site Cross-Domain Policy File Detection. The remote web server contains a cross-domain policy file used by Adobe's Flash Player

Refs
Code
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#

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

if (description)
{
  script_id(32318);
  script_version("1.17");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");

  script_name(english:"Web Site Cross-Domain Policy File Detection");

  script_set_attribute(attribute:"synopsis", value:
"The remote web server contains a 'crossdomain.xml' file.");
  script_set_attribute(attribute:"description", value:
"The remote web server contains a cross-domain policy file.  This is a
simple XML file used by Adobe's Flash Player to allow access to data
that resides outside the exact web domain from which a Flash movie
file originated.");
  # https://www.adobe.com/devnet/flashplayer/articles/cross_domain_policy.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?8a58aa76");
  script_set_attribute(attribute:"see_also", value:"http://kb2.adobe.com/cps/142/tn_14213.html");
  # http://blogs.adobe.com/stateofsecurity/2007/07/crossdomain_policy_files_1.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?74a6a9a5");
  # https://blog.jeremiahgrossman.com/2008/05/crossdomainxml-invites-cross-site.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?acb70df2");
  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 and cross-site scripting attacks against the web
server.");
  script_set_attribute(attribute:"risk_factor", value:"None");
  script_set_attribute(attribute:"exploited_by_nessus", value:"true");

  script_set_attribute(attribute:"plugin_publication_date", value:"2008/05/15");

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

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

  script_copyright(english:"This script is Copyright (C) 2008-2022 Tenable Network Security, Inc.");

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

  exit(0);
}

include("global_settings.inc");
include("misc_func.inc");
include("http.inc");

port = get_http_port(default:80);

# Loop through directories.
#
# nb: only look in the root directory if CGI scanning is disabled.
if (get_kb_item("Settings/disable_cgi_scanning")) dirs = make_list("");
else dirs = make_list(cgi_dirs());

foreach dir (dirs)
{
  # Try to retrieve the file.
  url = string(dir, "/crossdomain.xml");

  r = http_send_recv3(method:"GET", item:url, port:port);
  if (isnull(r)) exit(0);
  res = r[2];

  # Report it if one was found.
  if ("<cross-domain-policy>" >< tolower(res))
  {
    if (report_verbosity)
    {
      url = build_url(port: port, qs: url);

      report = string(
        "\n",
        "Nessus was able to obtain a cross-domain policy file from the remote\n",
        "host using the following URL :\n",
        "\n",
        "  ", url, "\n"
      );
      if (report_verbosity > 1)
      {
        report = strcat(
          report,
          '\n',
          'Here are its contents :\n',
          '\n',
          str_replace(string: res, find: '><', replace: '>\n<')
        );
      }
      security_note(port:port, extra:report);
    }
    else security_note(port);

    if (!thorough_tests) 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

11 Apr 2022 00:00Current
5.5Medium risk
Vulners AI Score5.5
43