Vulnerabilities > CVE-2013-6987 - Path Traversal vulnerability in Synology Diskstation Manager 4.33810

047910
CVSS 0.0 - NONE
Attack vector
UNKNOWN
Attack complexity
UNKNOWN
Privileges required
UNKNOWN
Confidentiality impact
UNKNOWN
Integrity impact
UNKNOWN
Availability impact
UNKNOWN
synology
CWE-22
nessus
exploit available

Summary

Multiple directory traversal vulnerabilities in the FileBrowser components in Synology DiskStation Manager (DSM) before 4.3-3810 Update 3 allow remote attackers to read, write, and delete arbitrary files via a .. (dot dot) in the (1) path parameter to file_delete.cgi or (2) folder_path parameter to file_share.cgi in webapi/FileStation/; (3) dlink parameter to fbdownload/; or unspecified parameters to (4) html5_upload.cgi, (5) file_download.cgi, (6) file_sharing.cgi, (7) file_MVCP.cgi, or (8) file_rename.cgi in webapi/FileStation/.

Vulnerable Configurations

Part Description Count
Application
Synology
1

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Relative Path Traversal
    An attacker exploits a weakness in input validation on the target by supplying a specially constructed path utilizing dot and slash characters for the purpose of obtaining access to arbitrary files or resources. An attacker modifies a known path on the target in order to reach material that is not available through intended channels. These attacks normally involve adding additional path separators (/ or \) and/or dots (.), or encodings thereof, in various combinations in order to reach parent directories or entirely separate trees of the target's directory structure.
  • Directory Traversal
    An attacker with access to file system resources, either directly or via application logic, will use various file path specification or navigation mechanisms such as ".." in path strings and absolute paths to extend their range of access to inappropriate areas of the file system. The attacker attempts to either explore the file system for recon purposes or access directories and files that are intended to be restricted from their access. Exploring the file system can be achieved through constructing paths presented to directory listing programs, such as "ls" and 'dir', or through specially crafted programs that attempt to explore the file system. The attacker engaging in this type of activity is searching for information that can be used later in a more exploitive attack. Access to restricted directories or files can be achieved through modification of path references utilized by system applications.
  • File System Function Injection, Content Based
    An attack of this type exploits the host's trust in executing remote content including binary files. The files are poisoned with a malicious payload (targeting the file systems accessible by the target software) by the attacker and may be passed through standard channels such as via email, and standard web content like PDF and multimedia files. The attacker exploits known vulnerabilities or handling routines in the target processes. Vulnerabilities of this type have been found in a wide variety of commercial applications from Microsoft Office to Adobe Acrobat and Apple Safari web browser. When the attacker knows the standard handling routines and can identify vulnerabilities and entry points they can be exploited by otherwise seemingly normal content. Once the attack is executed, the attackers' program can access relative directories such as C:\Program Files or other standard system directories to launch further attacks. In a worst case scenario, these programs are combined with other propagation logic and work as a virus.
  • Using Slashes and URL Encoding Combined to Bypass Validation Logic
    This attack targets the encoding of the URL combined with the encoding of the slash characters. An attacker can take advantage of the multiple way of encoding an URL and abuse the interpretation of the URL. An URL may contain special character that need special syntax handling in order to be interpreted. Special characters are represented using a percentage character followed by two digits representing the octet code of the original character (%HEX-CODE). For instance US-ASCII space character would be represented with %20. This is often referred as escaped ending or percent-encoding. Since the server decodes the URL from the requests, it may restrict the access to some URL paths by validating and filtering out the URL requests it received. An attacker will try to craft an URL with a sequence of special characters which once interpreted by the server will be equivalent to a forbidden URL. It can be difficult to protect against this attack since the URL can contain other format of encoding such as UTF-8 encoding, Unicode-encoding, etc.
  • Manipulating Input to File System Calls
    An attacker manipulates inputs to the target software which the target software passes to file system calls in the OS. The goal is to gain access to, and perhaps modify, areas of the file system that the target software did not intend to be accessible.

Exploit-Db

descriptionSynology DSM 4.3-3810 - Directory Traversal. CVE-2013-6987. Webapps exploit for cgi platform
fileexploits/cgi/webapps/30475.txt
idEDB-ID:30475
last seen2016-02-03
modified2013-12-24
platformcgi
port80
published2013-12-24
reporterAndrea Fabrizi
sourcehttps://www.exploit-db.com/download/30475/
titleSynology DSM 4.3-3810 - Directory Traversal
typewebapps

Nessus

NASL familyCGI abuses
NASL idSYNOLOGY_DSM_4_3_3810_3.NASL
descriptionAccording to its version number, the Synology DiskStation Manager installed on the remote host is 4.3-x equal or prior to 4.3-3810. It is, therefore, affected by multiple directory traversal vulnerabilities in the FileBrowser component. The issue exists due to improper validation of values submitted to the various file parameters in the following scripts in the
last seen2020-04-30
modified2014-02-05
plugin id72346
published2014-02-05
reporterThis script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
sourcehttps://www.tenable.com/plugins/nessus/72346
titleSynology DiskStation Manager < 4.3-3810 Update 3 Multiple FileBrowser Component Directory Traversal Vulnerabilities
code
#
# (C) Tenable Network Security, Inc.
#

include('compat.inc');

if (description)
{
  script_id(72346);
  script_version("1.5");
  script_set_attribute(attribute:"plugin_modification_date", value:"2020/04/29");

  script_cve_id("CVE-2013-6987");
  script_bugtraq_id(64483);

  script_name(english:"Synology DiskStation Manager < 4.3-3810 Update 3 Multiple FileBrowser Component Directory Traversal Vulnerabilities");

  script_set_attribute(attribute:"synopsis", value:
"The remote Synology DiskStation Manager is affected by multiple
directory traversal vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"According to its version number, the Synology DiskStation Manager
installed on the remote host is 4.3-x equal or prior to 4.3-3810.  It
is, therefore, affected by multiple directory traversal vulnerabilities
in the FileBrowser component.  The issue exists due to improper
validation of values submitted to the various file parameters in the
following scripts in the '/webapi/FileStation' directory :

  - html5_upload.cgi
  - file_delete.cgi
  - file_download.cgi
  - file_sharing.cgi
  - file_share.cgi
  - file_MVCP.cgi
  - file_rename.cgi

Any authenticated user can exploit these affected files to read, write,
and delete arbitrary files. 

Note that Nessus has not tested for these issues but has instead
relied only on the application's self-reported version number.");
  script_set_attribute(attribute:"solution", value:
"Upgrade to 4.3-3810 Update 3 or later, or contact the vendor.");
  script_set_attribute(attribute:"see_also", value:"https://nvd.nist.gov/vuln/detail/CVE-2013-6987");
#https://www.synology.com/en-us/company/news/article/Synology_Fixes_Vulnerability_in_DiskStation_Manager/Synology%C2%AE%20repariert%20Schwachstelle%20in%20Diskstation%20Manager
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?75a666d4");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2013-6987");

  script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
  script_set_attribute(attribute:"exploit_available", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2013/12/20");
  script_set_attribute(attribute:"patch_publication_date", value:"2013/12/19");
  script_set_attribute(attribute:"plugin_publication_date", value:"2014/02/05");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:synology:diskstation_manager");
  script_end_attributes();

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

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

  script_dependencies("synology_diskstation_manager_detect.nbin");
  script_require_keys("www/synology_dsm");
  script_require_ports("Services/www", 5000, 5001);

  exit(0);
}

include('http.inc');
include('webapp_func.inc');

port = get_http_port(default:5000, embedded:TRUE);

install = get_install_from_kb(appname:"synology_dsm", port:port, exit_on_fail:TRUE);

app = "Synology DiskStation Manager (DSM)";
dir = install["dir"];
install_loc = build_url(port:port, qs:dir + "/");

version = install["ver"];
if (version == UNKNOWN_VER) audit(AUDIT_UNKNOWN_WEB_APP_VER, app, install_loc);

ver = split(version, sep:".", keep:FALSE);
for (i=0; i<max_index(ver); i++)
  ver[i] = int(ver[i]);

version_fixed = '';

if (ver[0] > 4)
  {audit(AUDIT_WEB_APP_NOT_AFFECTED, app, install_loc, version);}
else if(ver[1] == 3  && ver[2] == 3810 && report_paranoia != 2)
  {audit(AUDIT_PARANOID);}
else if(ver[0] < 4 || (ver[1] == 0  && ver[2] < 2259))
  {version_fixed = '4.0-2259';}
else if(ver[1] == 1 || (ver[1] == 2  && ver[2] < 3243))
  {version_fixed = '4.2-3243';}
else if(ver[1] == 3  && (ver[2] < 3810 || (ver[2] == 3810 && report_paranoia == 2)))
  {version_fixed = '4.3-3827';}

if (version_fixed != '')
  {report =
    '\n  URL               : ' + install_loc +
    '\n  Installed version : ' + version +
    '\n  Fixed version     : ' + version_fixed + '\n';
  security_hole(port:port, extra:report);
  security_report_v4(port:port, extra:report, severity:SECURITY_HOLE);
  }
else audit(AUDIT_WEB_APP_NOT_AFFECTED, app, install_loc, version);

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/124563/synology-traversal.txt
idPACKETSTORM:124563
last seen2016-12-05
published2013-12-23
reporterAndrea Fabrizi
sourcehttps://packetstormsecurity.com/files/124563/Synology-DSM-4.3-3810-Directory-Traversal.html
titleSynology DSM 4.3-3810 Directory Traversal

Seebug

bulletinFamilyexploit
descriptionCVE ID:CVE-2013-6987 Synology DiskStation Manager 是第一个提供网络多任务处理用户接口的NAS操作系统。 Synology DSM目录遍历漏洞漏洞允许任何身份验证的用户访问,创建,删除,修改系统文件和配置文件。 0 Synology DSM &lt;= 4.3-3810 Synology ----- 目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载: http:// www.synology.com
idSSV:61204
last seen2017-11-19
modified2013-12-25
published2013-12-25
reporterRoot
sourcehttps://www.seebug.org/vuldb/ssvid-61204
titleSynology DSM目录遍历漏洞