Vulnerabilities > CVE-2019-0074 - Path Traversal vulnerability in Juniper Junos
Summary
A path traversal vulnerability in NFX150 Series and QFX10K Series, EX9200 Series, MX Series and PTX Series devices with Next-Generation Routing Engine (NG-RE) allows a local authenticated user to read sensitive system files. This issue only affects NFX150 Series and QFX10K Series, EX9200 Series, MX Series and PTX Series with Next-Generation Routing Engine (NG-RE) which uses vmhost. This issue affects Juniper Networks Junos OS on NFX150 Series and QFX10K, EX9200 Series, MX Series and PTX Series with NG-RE and vmhost: 15.1F versions prior to 15.1F6-S12 16.1 versions starting from 16.1R6 and later releases, including the Service Releases, prior to 16.1R6-S6, 16.1R7-S3; 17.1 versions prior to 17.1R3; 17.2 versions starting from 17.2R1-S3, 17.2R3 and later releases, including the Service Releases, prior to 17.2R3-S1; 17.3 versions starting from 17.3R1-S1, 17.3R2 and later releases, including the Service Releases, prior to 17.3R3-S3; 17.4 versions starting from 17.4R1 and later releases, including the Service Releases, prior to 17.4R1-S6, 17.4R2-S2, 17.4R3; 18.1 versions prior to 18.1R2-S4, 18.1R3-S3; 18.2 versions prior to 18.2R2; 18.2X75 versions prior to 18.2X75-D40; 18.3 versions prior to 18.3R1-S2, 18.3R2; 18.4 versions prior to 18.4R1-S1, 18.4R2. This issue does not affect: Juniper Networks Junos OS 15.1 and 16.2.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
OS | 60 | |
Hardware | 5 |
Common Weakness Enumeration (CWE)
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.
Nessus
NASL family Junos Local Security Checks NASL id JUNIPER_JSA10954.NASL description According to the self reported version of Junos OS on the remote device it is affected by a Denial of Service (DoS) vulnerability. A remote unauthenticated attacker can exploit this, to cause the device last seen 2020-06-01 modified 2020-06-02 plugin id 132959 published 2020-01-16 reporter This script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/132959 title Multiple Vulnerabilities in Juniper Junos (JSA10954) code #TRUSTED 570992f2acd038f11bfb2c9946c50cfcd89529f6fa9a2abef3b7449ad1386f1b4c37adce0cb86891c19b5d88cd650028d31680d769426a6479c987782141135234142bfab490bf14462510988591df3dfd96daf51ece66b2ec1d6c1cf9b19bb01f9e343b01d8f9f8b3c0d299b411e4cf0fa9b30496fa44577f503916986f52648c993c74424ef504184f00a1784256130316125ef0b43941acd016dc60c6d6a2a00c2b01300819b6ff62f7c23d97aa3f5fc3d3619ec5f10f22692a2da3556ee18a045622b4ce971ec51b2f27a659b1db29735732aff492d9637c2effd6f56df11efd0e9d9144532987fe48826d6ae3f1f49c31e447ac5760c5890c53825dc0fae67b9baaf9a7ed870c8543cdf78285ccc760f37001fc63879ef1b7cd8bd01462d15885da91b4ea0c033a85cebb3193e76ae8c9277ac930171db0376f1988e2069dc2718aa9dc1db72b2e1bd6baf8889389048154d47d4b7035de5edf703339d2b222f3225a8278bbdefdc0d524135fb439561078520dd0710541c451f9f50f673b56575fb466179297af14a3678017da9f9e8f042eb72c08f5c3d72e7d445db54e9d4a493b34298970bdc171d0bf29f2b93df84b0c7e5a77fca49976c53926acdf1bc6aa17ccf4c62c77a5fd584e07e3c5f96fbd2e5b5f3897d6dc2949ec2b2e5a5a7b66cb04d8028a06d8ea381719b84f487d74ab205e018906383912bebf9a # # (C) Tenable Network Security, Inc. # include("compat.inc"); if (description) { script_id(132959); script_version("1.3"); script_cvs_date("Date: 2020/01/16"); script_cve_id("CVE-2019-0056"); script_xref(name:"JSA", value:"JSA10954"); script_xref(name:"IAVA", value:"2019-A-0436"); script_name(english:"Multiple Vulnerabilities in Juniper Junos (JSA10954)"); script_set_attribute(attribute:"synopsis", value: "The remote device is missing a vendor-supplied security patch."); script_set_attribute(attribute:"description", value: "According to the self reported version of Junos OS on the remote device it is affected by a Denial of Service (DoS) vulnerability. A remote unauthenticated attacker can exploit this, to cause the device's Open Shortest Path First (OSPF) states to transition to Down, resulting in a Denial of Service (DoS) attack. Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number."); script_set_attribute(attribute:"see_also", value:"https://kb.juniper.net/JSA10954"); script_set_attribute(attribute:"solution", value: "Apply the relevant Junos software release referenced in Juniper advisory JSA10954"); script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P"); script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"); script_set_attribute(attribute:"cvss_score_source", value:"CVE-2019-0074"); script_set_attribute(attribute:"vuln_publication_date", value:"2019/10/09"); script_set_attribute(attribute:"patch_publication_date", value:"2019/10/09"); script_set_attribute(attribute:"plugin_publication_date", value:"2020/01/16"); script_set_attribute(attribute:"plugin_type", value:"combined"); script_set_attribute(attribute:"cpe", value:"cpe:/o:juniper:junos"); script_set_attribute(attribute:"stig_severity", value:"I"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_family(english:"Junos Local Security Checks"); script_copyright(english:"This script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof."); script_dependencies("junos_version.nasl"); script_require_keys("Host/Juniper/JUNOS/Version", "Host/Juniper/model"); exit(0); } include('audit.inc'); include('junos.inc'); include('junos_kb_cmd_func.inc'); include('misc_func.inc'); ver = get_kb_item_or_exit('Host/Juniper/JUNOS/Version'); model = get_kb_item_or_exit('Host/Juniper/model'); fixes = make_array(); if ( model != "MX2008" && model != "MX2010" && model != "MX2020" && model != "MX480" && model != "MX960" ) audit(AUDIT_INST_VER_NOT_VULN, 'Junos', ver); fixes['18.1'] = '18.1R2-S4'; fixes['18.1X75'] = '18.1X75-D10'; fixes['18.2'] = '18.2R1-S5'; fixes['18.2X75'] = '18.2X75-D50'; fixes['18.3'] = '18.3R1-S4'; fixes['18.4'] = '18.4R1-S2'; fix = check_junos(ver:ver, fixes:fixes, exit_on_fail:TRUE); # Check for NG-RE, if not output not vuln buf = junos_command_kb_item(cmd:'show chassis fpc pic-status'); if (junos_check_result(buf) && buf =~ "Slot 3") { report = get_report(ver:ver, fix:fix); security_report_v4(severity:SECURITY_WARNING, port:0, extra:report); } else audit(AUDIT_INST_VER_NOT_VULN, 'Junos', ver);
NASL family Junos Local Security Checks NASL id JUNIPER_JSA10975.NASL description According to the self reported version of Junos OS on the remote device it is affected by a path traversal vulnerability with the Next-Generation Routing Engine. A local authenticated attacker can exploit this, to read sensitive file systems. Note that Nessus has not tested for this issue but has instead relied only on the application last seen 2020-06-01 modified 2020-06-02 plugin id 130279 published 2019-10-28 reporter This script is Copyright (C) 2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/130279 title Juniper JSA10975