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.