Product Affected

This issue affects IDP Series products.
Critical
9.0 (AV:N/AC:L/Au:S/C:C/I:C/A:C)

Problem

The IDP web management interface is configured incorrectly so that the Perl interpreter is accessible via the web interface. This permits the execution of arbitrary Perl commands with root privileges on the server.

Juniper SIRT is not aware of any malicious exploitation of this vulnerability.

No other Juniper Networks products or platforms are affected by this issue.

Solution

The issue has been fixed in IDP OS version 5.1r3 and all subsequent releases.The Juniper SIRT strongly recommends upgrading to a fixed release or applying the workaround as soon as possible.

This issue is being tracked as PR 679403 and is visible on the Customer Support website.

KB16765 [juniper.net] - "In which releases are vulnerabilities fixed?" describes which release vulnerabilities are fixed as per our End of Engineering and End of Life support policies.

Workaround

The issue can be worked around by modifying the web server's configuration file to deny access to the Perl interpreter, as follows:

Edit the /etc/httpd/conf/httpd.conffile and find the following block of text:

<Location /putfile>
SetHandler perl-script
PerlHandler WebConf::PutFile


Immediately following the above text block, insert these instructions:

<Location /cgi-bin/*.exe>
order deny,allow
deny from all


The resulting change should look like this: (customer added lines in bold font)

<Location /putfile>
SetHandler perl-script
PerlHandler WebConf::PutFile

<Location /cgi-bin/*.exe>
order deny,allow
deny from all

Save the modified file and restart the web server with the command: service httpd restart . The Perl interpreter will no longer be accessible via the web interface.

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

Modification History:

2017-03-05: Category restructure.

Related Information