cbcvebase.
CVE-2020-1631
published 2020-05-04

CVE-2020-1631: A vulnerability in the HTTP/HTTPS service used by J-Web, Web Authentication, Dynamic-VPN (DVPN), Firewall Authentication Pass-Through with Web-Redirect, and…

PriorityP186critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
KEVITW
CISA Known Exploited Vulnerabilitydue 2022-04-15
Exploited in the wild
EPSS
4.72%
90.8th percentile
A vulnerability in the HTTP/HTTPS service used by J-Web, Web Authentication, Dynamic-VPN (DVPN), Firewall Authentication Pass-Through with Web-Redirect, and Zero Touch Provisioning (ZTP) allows an unauthenticated attacker to perform local file inclusion (LFI) or path traversal. Using this vulnerability, an attacker may be able to inject commands into the httpd.log, read files with 'world' readable permission file or obtain J-Web session tokens. In the case of command injection, as the HTTP service runs as user 'nobody', the impact of this command injection is limited. (CVSS score 5.3, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N) In the case of reading files with 'world' readable permission, in Junos OS 19.3R1 and above, the unauthenticated attacker would be able to read the configuration file. (CVSS score 5.9, vector CVSS:3.1/ AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N) If J-Web is enabled, the attacker could gain the same level of access of anyone actively logged into J-Web. If an administrator is logged in, the attacker could gain administrator access to J-Web. (CVSS score 8.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) This issue only affects Juniper Networks Junos OS devices with HTTP/HTTPS services enabled. Junos OS devices with HTTP/HTTPS services disabled are not affected. If HTTP/HTTPS services are enabled, the following command will show the httpd processes: user@device> show system processes | match http 5260 - S 0:00.13 /usr/sbin/httpd-gk -N 5797 - I 0:00.10 /usr/sbin/httpd --config /jail/var/etc/httpd.conf To summarize: If HTTP/HTTPS services are disabled, there is no impact from this vulnerability. If HTTP/HTTPS services are enabled and J-Web is not in use, this vulnerability has a CVSS score of 5.9 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N). If J-Web is enabled, this vulnerability has a CVSS score of 8.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H). Juniper SIRT has received a single report of this vulnerability being exploited in the

Affected

38 ranges· showing 25
VendorProductVersion rangeFixed in
juniperj-web
juniperjunos
juniperjunos
juniperjunos
juniperjunos
juniperjunos
juniperjunos
juniperjunos
juniperjunos
juniperjunos
juniperjunos
juniperjunos
juniperjunos
juniperjunos
juniperjunos
juniperjunos
juniperjunos
juniperjunos
juniperjunos
juniperjunos_os
juniper_networksjunos_os>= 12.3 < 12.3R12-S1612.3R12-S16
juniper_networksjunos_os>= 12.3X48 < 12.3X48-D101, 12.3X48-D10512.3X48-D101, 12.3X48-D105
juniper_networksjunos_os>= 14.1X53 < 14.1X53-D5414.1X53-D54
juniper_networksjunos_os>= 15.1 < 15.1R7-S715.1R7-S7
juniper_networksjunos_os>= 15.1X49 < 15.1X49-D211, 15.1X49-D22015.1X49-D211, 15.1X49-D220

Detection & IOCsextracted from sources · hover to see the quote

path/var/log/httpd.log
path/jail/var/etc/httpd.conf
commandshow log httpd.log | match "=*;*&|=*%3b*&"
commandshow log httpd.log.0.gz | match "=*;*&|=*%3b*&"
commandshow log httpd.log.1.gz | match "=*;*&|=*%3b*&"
bytes
=*;*&
bytes
*%3b*&
  • Search for semicolon-based command injection patterns in httpd.log — both URL-encoded (%3b) and literal (;) forms indicate potential exploitation of the LFI/path traversal vulnerability.
  • Review rotated/compressed log files (httpd.log.0.gz, httpd.log.1.gz) for the same injection patterns, as attackers may have been active before log rotation.
  • Absence of log entries does not rule out compromise — a skilled attacker may have tampered with local logs to remove evidence.
  • Confirm HTTP/HTTPS services are running by checking for httpd processes; presence of both httpd-gk and httpd confirms the attack surface is exposed.
  • Monitor for J-Web session token theft — if J-Web is active and an administrator is logged in, an attacker exploiting this vulnerability could obtain admin-level session tokens.
  • ·Vulnerability only affects devices with HTTP/HTTPS services enabled; devices with these services disabled are not affected.
  • ·On Junos OS 19.3R1 and above, an unauthenticated attacker can read the configuration file (world-readable), elevating the confidentiality impact significantly.
  • ·Command injection impact is limited because the HTTP service runs as the low-privilege user 'nobody'.
  • ·Confirmed in-the-wild exploitation reported to Juniper SIRT prior to advisory publication.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
vulncheck8.8HIGH
cisa9.8CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.