Unauthenticated Path Traversal and Local File Inclusion in Junos OS HTTP/HTTPS Services
CVE-2020-1631 is a path traversal and local file inclusion vulnerability in the Juniper Networks Junos OS HTTP/HTTPS service used by J-Web, Web Authentication, Dynamic-VPN, Firewall Authentication Pass-Through with Web-Redirect, and Zero Touch Provisioning. An unauthenticated attacker can potentially read world-readable files, obtain J-Web session tokens, or perform limited command injection under the service's unprivileged 'nobody' account. On affected Junos OS versions beginning with 19.3R1, file disclosure can expose the device configuration. When J-Web is enabled and a user is actively logged in, an attacker can obtain that user's J-Web access level, including administrator access. Only devices with HTTP/HTTPS services enabled are affected. Juniper SIRT received one report of exploitation in the wild.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Exploitation can disclose world-readable local files, including device configuration on affected releases beginning with Junos OS 19.3R1, and expose J-Web session tokens. Session compromise can grant the privileges of an actively logged-in J-Web user, including administrator access when an administrator is logged in. Command-injection impact is limited by the HTTP service running as 'nobody'.
If you can’t patch tonight, do this now.
Disable HTTP/HTTPS services where operationally feasible; devices with these services disabled are unaffected. Merely avoiding J-Web does not eliminate the file-disclosure and command-injection exposure while HTTP/HTTPS remains enabled. Review current and rotated HTTP service logs for suspicious command-injection or file-access attempts. Log matches can reflect scanning rather than successful exploitation, and attackers may remove local entries, so clean logs do not establish that a device was not attacked.
Patch, then assume compromise.
Upgrade to an applicable release addressing JSA11021. The identified release thresholds are: 12.3R12-S16; 12.3X48-D101 or 12.3X48-D105; 14.1X53-D54; 15.1R7-S7; 15.1X49-D211 or 15.1X49-D220; 16.1R7-S8; 17.2R3-S4; 17.3R3-S8; 17.4R2-S11 or 17.4R3-S2; 18.1R3-S10; 18.2R2-S7 or 18.2R3-S4; 18.3R2-S4 or 18.3R3-S2; 18.4R1-S7 or 18.4R3-S2; 19.1R1-S5 or 19.1R3-S1; 19.2R2; 19.3R2-S3 or 19.3R3; 19.4R1-S2 or 19.4R2; and 20.1R1-S1 or 20.1R2. Select the fix appropriate to the release train rather than assuming any numerically later release is safe: the affected-version listing separately includes 18.4R2 and later versions and 19.1R2 and later versions.
No public exploits tracked yet. Mallory keeps watching.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.