Junos OS runs PKId for certificate validation. When a peer device presents a self-signed certificate as its end entity certificate with its issuer name matching one of the valid CA certificates enrolled in Junos, the peer certificate validation is skipped and the peer certificate is treated as valid. This may allow an attacker to generate a specially crafted self-signed certificate and bypass certificate validation. This issue only affects certificates used for IKE/IPsec. Other public key-based authentication is unaffected by this vulnerability. Juniper SIRT is not aware of any malicious exploitation of this vulnerability. No other Juniper Networks products or platforms are affected by this issue. This issue has been assigned CVE-2016-1280 .
The following software releases have been updated to resolve this specific issue: Junos OS 12.1X44-D52, 12.1X44-D55, 12.1X46-D37, 12.1X46-D40, 12.1X47-D30, 12.3R12, 12.3X48-D20, 13.3R10, 14.1R8, 14.1X53-D40*, 14.2R7, 15.1R4, 15.1X49-D20, 15.1X53-D60*, 16.1R1, and all subsequent releases. *Available Q3/2016 This issue is being tracked as PR 1096758 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.
Configure all PKI-VPN tunnels to accept only Distinguished Name (DN) as the remote peer’s IKE ID. Example for SRX devices: The SRX can match the DN by exact string, or a wildcard string. If a wildcard string is used, it must not match any of its trusted CA’s Subject name. One of the following four options can be used:
set security ike gateway <peer name> dynamic distinguished-name container <peer certificate's subject string> set security ike gateway <peer name> dynamic distinguished-name wildcard <wildcard string> set security ike gateway <peer name> remote-identity distinguished-name container <peer certificate's subject string> set security ike gateway <peer name> remote-identity distinguished-name wildcard <wildcard string>
set security ike gateway <peer name> local-identity distinguished-name
2016-07-13: Initial publication 2016-07-15: Removed mitigation of disallowing usage of self-signed certificates for IKE/IPsec authentication