Lucene search
K

Adobe Dreamweaver dwsync.xml Remote Information Disclosure

🗓️ 18 Aug 2008 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 687 Views

Adobe Dreamweaver dwsync.xml Remote Information Disclosur

Code
#%NASL_MIN_LEVEL 70300
#

# Changes by Tenable:
# - Revised plugin title (4/15/009)

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

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

  script_name(english:"Adobe Dreamweaver dwsync.xml Remote Information Disclosure");

  script_set_attribute(attribute:"synopsis", value:
"The remote web server discloses the location of files and directories.");
  script_set_attribute(attribute:"description", value:
"Adobe's Dreamweaver is known to produce 'dwsync.xml' files.  These
contain synchronization information that may include the list of files
and directories synchronised.  This can lead to information
disclosure.");
  script_set_attribute(attribute:"solution", value:
"Disable the 'Maintain synchronization information' option from the
Remote Info category of the advanced view of the Site Definition
dialog box.  In addition, remove the offending files if already
created by the system.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:TF/RC:ND");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:F/RL:T/RC:X");

  script_set_attribute(attribute:"plugin_publication_date", value:"2008/08/18");

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

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

  script_copyright(english:"This script is Copyright (C) 2008-2022 Westpoint Ltd");

  script_dependencies("http_version.nasl", "no404.nasl", "webmirror.nasl");
  script_exclude_keys("Settings/disable_cgi_scanning");
  script_require_ports("Services/www", 80);

  exit(0);
}
include("http_func.inc");
include("http_keepalive.inc");
include("global_settings.inc");


port = get_http_port(default:80, embedded:TRUE);
if ( get_kb_item("www/" + port + "/no404") ) exit(0);


file = "dwsync.xml";
default_dir = ("_notes");

warning ="";

if (thorough_tests)
   dirs = get_kb_list("www/" +  port +  "/content/directories");
if (isnull(dirs)) dirs = make_list("");   # The root directory

function check_dir(dir)
{
   if (!preg(string:dir, pattern:default_dir + "$"))
   {
     check_dir(dir:dir + "/" + default_dir);
   }

  if( is_cgi_installed_ka(item:dir + "/" + file, port:port))
  {
     parse_file(url:dir + "/" + file);
  }
}

# Quick and dirty attempt, will only understand xml in the exact format generated by dreamweaver.

global_var warning;

function parse_file(url)
{
  local_var line, matchinglines, req, res;

  req = http_get(port:port, item:url); 
  res = http_keepalive_send_recv(port:port, data:req, bodyonly:1);
  if (res)
  {
   matchinglines = egrep(pattern:'<file *name="', string:res, icase:1);
   if (matchinglines)
   {
    matchinglines = split(matchinglines, keep:0);
    warning += build_url(port:port, qs:url) + ':' + '\n';
    # We should add these to the knowledge base.

    foreach line (matchinglines)
    { 
      line = ereg_replace(pattern:'<file *name="([^"]+)".*', replace:"\1", string:line, icase:1); 
      warning += "\t" + line + "\n"; 
    }
   }
 }
}


foreach path (dirs)
{
  check_dir(dir:path);
}

if (warning)
{
  report = "\nThe following dwsync.xml files where discovered :\n\n" + warning;
  security_report_v4(port:port, extra:report, severity:SECURITY_WARNING);
}

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
687