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.

NOTE: REST does not appear to be configured on the target. This check is not applicable.

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: 39638c9e81022c88e91a48774253b1a6a775f75c961e6a54fd1955e2f5b7956d