6.10.5.7 Ensure REST API Explorer is Not Set

Information

The REST API Explorer should be disabled

Rationale:

When enabled, the JUNOS REST API can provide a Web GUI interface known as the REST API Explorer to allow developers to learn the API or test RPC calls.

The API Explorer is not designed for use in production environments and adds an unnecessary additional attack surface which could be exploited to compromise the JUNOS Device.

Because it is an unneeded service, intended for use only in development environments, the API Explorer should be disabled on all production systems.

Impact:

The REST API Explorer should only be used in Development or Lab environments, it is not required in order to support normal REST API functionality.

Solution

To disable the REST API Explorer, issue the following command from the [edit system services rest] hierarchy:

[edit system services rest]
user@host# delete enable-explorer

This will disable the API Explorer for both HTTP and HTTPS access.

Default Value:

The REST API is disabled by default. If REST is enabled, the API Explorer is disabled by default.

See Also

https://workbench.cisecurity.org/files/3069

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-4, CSCv7|9.2

Plugin: Juniper

Control ID: 4361e9a2a61b8435e2c2bb260d5f23d53963af65a2a6edcf86d425b358712300