Lucene search
K

Suricata < 4.0.4 - IDS Detection Bypass

🗓️ 05 Mar 2018 00:00:00Reported by Positive TechnologiesType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 51 Views

Suricata 4.0.4 - IDS Detection Bypass CVE-2018-6794, Medium severity. Malicious data injection impacts TCP and HTTP response signatures bypass

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Suricata < 4.0.4 - IDS Detection Bypass Vulnerability
5 Mar 201800:00
zdt
CNVD
Suricata HTTP Inspection Bypass Vulnerability
7 Feb 201800:00
cnvd
CVE
CVE-2018-6794
7 Feb 201805:00
cve
Cvelist
CVE-2018-6794
7 Feb 201805:00
cvelist
Debian
[SECURITY] [DLA 1603-1] suricata security update
4 Dec 201819:43
debian
Debian CVE
CVE-2018-6794
7 Feb 201805:00
debiancve
Tenable Nessus
Debian DLA-1603-1 : suricata security update
6 Dec 201800:00
nessus
Tenable Nessus
Fedora 27 : suricata (2018-ee417c4b28)
26 Feb 201800:00
nessus
Tenable Nessus
Linux Distros Unpatched Vulnerability : CVE-2018-6794
30 Aug 202500:00
nessus
exploitpack
Suricata 4.0.4 - IDS Detection Bypass
5 Mar 201800:00
exploitpack
Rows per page
-----------------------------------------------------
Vulnerability Type: Detection Bypass
Affected Product: Suricata
Vulnerable version: <4.0.4
CVE number: CVE-2018-6794
Found: 25.01.2018
By: Kirill Shipulin (@kirill_wow), Positive Technologies
Severity: Medium
------------------------------------------

About Suricata:
---------------
Suricata is a high performance Network Threat Detection, IDS, IPS and Network Security Monitoring engine. Open Source and owned by a community run non-profit foundation, the Open Information Security Foundation (OISF). Suricata is developed by the OISF, its supporting vendors and the community

Attack Description:
-------------------
If as a server side you break a normal TCP 3 way handshake packets order and inject some response data before 3whs is complete then data still will be received by the a client but some IDS engines may skip content checks on that.

Attack scenario TCP flow scheme:
Client    ->  [SYN] [Seq=0 Ack= 0]           ->  Evil Server
Client    <-  [SYN, ACK] [Seq=0 Ack= 1]      <-  Evil Server
Client    <-  [PSH, ACK] [Seq=1 Ack= 1]      <-  Evil Server  # Injection before the 3whs is completed
Client    <-  [FIN, ACK] [Seq=83 Ack= 1]     <-  Evil Server
Client    ->  [ACK] [Seq=1 Ack= 84]          ->  Evil Server
Client    ->  [PSH, ACK] [Seq=1 Ack= 84]     ->  Evil Server

IDS signature checks for tcp stream or http response body will be skipped in the case of data injection. This attack technique requires all three packets from a malicious server to be received by a client side together before it completes 3whs. Proof of concept server was written in C to reproduce this and it works reliably in local networks. Since some network devices may affect packets transmission exploitation is not so reliable for the internet scenario.

This attack possibly may impact other network monitoring or intrusion detection systems because is not limited to Suricata IDS: an old Snort IDS version 2.9.4 is also affected.

Successful exploitation leads to a complete TCP-Stream response or HTTP response signatures bypass and may be used to prevent malicious payloads from network detection.

PoС:
----
A Working PoC server is available here: https://github.com/kirillwow/ids_bypass
There is also a traffic capture of this data injection technique.

Timeline Summary:
-----------------
2018-01-25: Issue submitted to the bug tracker.
2018-01-30: Patch ready.
2018-02-14: Suricata 4.0.4 containing the fix has been released.

References:
-----------
CVE-2018-6794
https://redmine.openinfosecfoundation.org/issues/2427

Contacts:
---------
Twitter: https://twitter.com/AttackDetection
Twitter: https://twitter.com/kirill_wow
Telegram: https://t.me/kirill_wow


Proof of Concept:
https://gitlab.com/exploit-database/exploitdb-bin-sploits/-/raw/main/bin-sploits/44247.zip

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

05 Mar 2018 00:00Current
5.6Medium risk
Vulners AI Score5.6
CVSS 25
CVSS 35.3
EPSS0.37431
51