Product Affected

This issue affects Junos OS 15.1X53. Affected platforms: QFX5200 and QFX10002.
Medium
4.4 (CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H)

Problem

QFX5200 and QFX10002 devices that have been shipped with Junos OS 15.1X53-D21, 15.1X53-D30, 15.1X53-D31, 15.1X53-D32, 15.1X53-D33 and 15.1X53-D60 or have been upgraded to these releases using the .bin or .iso images may contain an unintended additional Open Network Install Environment (ONIE) partition.
This additional partition allows the superuser to reboot to the ONIE partition which will wipe out the content of the Junos partition and its configuration.
Once rebooted, the ONIE partition will not have root password configured, thus any user can access the console or SSH, using an IP address acquired from DHCP, as root without password.
Customer can identify whether their device is affected by running the following commands from the Junos OS shell:

Affected System :
root@:RE:0% rsh -l root -JU __juniper_private4__ 192.168.1.1
root@:RE:0~# grub-fstest /dev/sda2 ls /var/tmp /onie/ | grep onie                       
vmlinuz-3.2.35-onie initrd.img-3.2.35-onie tools/ grub/ grub.d/                                          
root@:RE:0:~#    
                                                                                                                                                                
Note: the two files, vmlinuz-3.2.35-onie and initrd.img-3.2.35-onie (version may vary) will be present.

Non-affected System:
root@:RE:0% rsh -l root -JU __juniper_private4__ 192.168.1.1                             
root@local-node:~# grub-fstest /dev/sda2 ls /onie/ | grep onie
root@local-node:~#       
                                                                                                                                                               
Note: no grep output related to ONIE partition.

Once the device has been shipped or upgraded with the ONIE partition installed, the issue will persist. Simply upgrading to higher release via the CLI will not resolve the issue.

No other Juniper Networks products or platforms are affected by this issue.
Juniper SIRT is not aware of any malicious exploitation of this vulnerability.

This issue was found during internal product security testing or research.

This issue has been assigned CVE-2018-0035 .

Solution

In order to resolve this issue (remove the ONIE partition from the device), customer needs to reimage the device using the USB or PXE image from the Juniper download page.
The affected Junos image files have been removed from the Juniper download page.
Note: Juniper SIRT's policy is not to evaluate releases which are beyond End of Engineering (EOE) or End of Life (EOL).

Software Releases, patches and updates are available at https://www.juniper.net/support/downloads/ .

Workaround

There are no known workarounds for this issue.

It is good security practice to limit the exploitable attack surface of critical infrastructure networking equipment. Use access lists or firewall filters to limit access to device only from trusted, administrative networks or hosts. Limit CLI access to the device from only trusted hosts and administrators.

Severity Assessment

Information for how Juniper Networks uses CVSS can be found at KB 16446 [juniper.net] "Common Vulnerability Scoring System (CVSS) and Juniper's Security Advisories."

Modification History

2018-07-11: Initial Publication.

Related Information