Cisco ASA up to 9.5 IKEv1/IKEv2 ikev2_add_rcv_frag UDP Packet memory corruption
CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
---|---|---|
9.4 | $0-$5k | 0.00 |
A vulnerability, which was classified as very critical, has been found in Cisco ASA up to 9.5 (Firewall Software). This issue affects the function ikev2_add_rcv_frag
of the component IKEv1/IKEv2. The manipulation as part of a UDP Packet leads to a memory corruption vulnerability. Using CWE to declare the problem leads to CWE-119. The product performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer. Impacted is confidentiality, integrity, and availability.
The bug was discovered 02/10/2016. The weakness was released 02/10/2016 by David Barksdale, Jordan Gruskovnjak and Alex Wheeler with Exodus Intelligence as cisco-sa-20160210-asa-ike / CSCux29978 / CSCux42019 as confirmed advisory (Website). The advisory is shared at tools.cisco.com. The public release was coordinated with Cisco. The identification of this vulnerability is CVE-2016-1287 since 01/04/2016. The attack may be initiated remotely. No form of authentication is needed for a successful exploitation. Technical details as well as a public exploit are known. The price for an exploit might be around USD $0-$5k at the moment (estimation calculated on 11/12/2024). Due to its background and reception, this vulnerability has a historic impact. The advisory points out:
The call to my_malloc() is passed the queue length plus a header size. There are several ways to attack this code. The most basic way to attack this code is to create a reassembly queue where one of the fragments has a length less than the default fragment header size of 8 bytes, which underflows the copy length during reassembly. This small value allows the length check (signed) in ikev2_add_rcv_frag() to be passed and the copy length to be larger (underflowed) than the allocated buffer size of: reassembly queue length + 8 in ikev2_reassemble_pkt().
A public exploit has been developed by David Barksdale/Jordan Gruskovnjak/Alex Wheeler and been published immediately after the advisory. The exploit is available at blog.exodusintel.com. It is declared as proof-of-concept. We expect the 0-day to have been worth approximately $100k and more. The vulnerability scanner Nessus provides a plugin with the ID 88713 (Cisco ASA Software IKEv1 and IKEv2 UDP Packet Handling RCE (cisco-sa-20160210-asa-ike)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family CISCO and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 43481 (Cisco ASA Software IKEv1 and IKEv2 Buffer Overflow Vulnerability (cisco-sa-20160210-asa-ike)). The advisory illustrates:
After having successfully crafted fragments with length less than 8, the corruption happens during the fragments reassembly.
Upgrading to version 8.4(7.30), 8.7(1.18), 9.0(4.38), 9.1(7), 9.2(4.5), 9.3(3.7), 9.4(2.4) or 9.5(2.2) eliminates this vulnerability. A possible mitigation has been published immediately after the disclosure of the vulnerability. The advisory contains the following remark:
Looking for the value of the length field of a Fragment Payload (type 132) IKEv2 or IKEv1 packet allows detecting an exploitation attempt. Any length field with a value < 8 must be considered as an attempt to exploit the vulnerability. The detection also has to deal with the fact that the multiple payloads can be chained inside an IKEv2 packet, and that the Fragment Payload may not be the only/first payload of the packet.Furthermore it is possible to detect and prevent this kind of attack with TippingPoint and the filter 23897.
The vulnerability is also documented in the databases at X-Force (110524), Exploit-DB (39823), Tenable (88713), SecurityFocus (BID 83161†) and SecurityTracker (ID 1034997†). blog.exodusintel.com is providing further details.
Product
Type
Vendor
Name
Version
License
CPE 2.3
CPE 2.2
Video
CVSSv4
VulDB CVSS-B Score: 🔍VulDB CVSS-BT Score: 🔍
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 9.9VulDB Meta Temp Score: 9.4
VulDB Base Score: 10.0
VulDB Temp Score: 9.0
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 9.8
NVD Vector: 🔍
CVSSv2
AV | AC | Au | C | I | A |
---|---|---|---|---|---|
💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
---|---|---|---|---|---|
unlock | unlock | unlock | unlock | unlock | unlock |
unlock | unlock | unlock | unlock | unlock | unlock |
unlock | unlock | unlock | unlock | unlock | unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Memory corruptionCWE: CWE-119
CAPEC: 🔍
ATT&CK: 🔍
Local: No
Remote: Yes
Availability: 🔍
Access: Public
Status: Proof-of-Concept
Author: David Barksdale/Jordan Gruskovnjak/Alex Wheeler
Download: 🔍
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
0-Day | unlock | unlock | unlock | unlock |
---|---|---|---|---|
Today | unlock | unlock | unlock | unlock |
Nessus ID: 88713
Nessus Name: Cisco ASA Software IKEv1 and IKEv2 UDP Packet Handling RCE (cisco-sa-20160210-asa-ike)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
OpenVAS ID: 800316
OpenVAS Name: Cisco ASA Software IKEv1 and IKEv2 Buffer Overflow Vulnerability
OpenVAS File: 🔍
OpenVAS Family: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Exploit-DB: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Exploit Delay Time: 🔍
Upgrade: ASA 8.4(7.30)/8.7(1.18)/9.0(4.38)/9.1(7)/9.2(4.5)/9.3(3.7)/9.4(2.4)/9.5(2.2)
Suricata ID: 2022506
Suricata Class: 🔍
Suricata Message: 🔍
TippingPoint: 🔍
McAfee IPS: 🔍
McAfee IPS Version: 🔍
Timeline
01/04/2016 🔍02/10/2016 🔍
02/10/2016 🔍
02/10/2016 🔍
02/10/2016 🔍
02/10/2016 🔍
02/10/2016 🔍
02/10/2016 🔍
02/11/2016 🔍
02/11/2016 🔍
02/11/2016 🔍
02/12/2016 🔍
11/12/2024 🔍
Sources
Vendor: cisco.comAdvisory: cisco-sa-20160210-asa-ike / CSCux29978 / CSCux42019
Researcher: David Barksdale, Jordan Gruskovnjak, Alex Wheeler
Organization: Exodus Intelligence
Status: Confirmed
Coordinated: 🔍
CVE: CVE-2016-1287 (🔍)
CERT: 🔍
X-Force: 110524 - Cisco ASA IKE buffer overflow
SecurityFocus: 83161 - Cisco Adaptive Security Appliance Software CVE-2016-1287 Buffer Overflow Vulnerability
SecurityTracker: 1034997
Vulnerability Center: 56581 - [cisco-sa-20160210-asa-ike] Cisco ASA Remote DoS and Code Execution in IKEv1 and IKEv2, Critical
scip Labs: https://www.scip.ch/en/?labs.20161013
Misc.: 🔍
Entry
Created: 02/11/2016 04:23 PMUpdated: 11/12/2024 03:31 AM
Changes: 02/11/2016 04:23 PM (113), 07/29/2019 06:42 PM (4), 07/08/2022 02:48 AM (3), 06/24/2024 09:16 PM (15), 10/15/2024 06:21 PM (2), 11/12/2024 03:31 AM (1)
Complete: 🔍
Cache ID: 18:2FD:40
No comments yet. Languages: en.
Please log in to comment.