Lucene search
+L

Suricata < 4.0.4 - IDS Detection Bypass Vulnerability

🗓️ 05 Mar 2018 00:00:00Reported by Positive TechnologiesType 
zdt
 zdt
🔗 0day.today👁 331 Views

Suricata < 4.0.4 - IDS Detection Bypass Vulnerability. Bypass IDS checks via TCP injection before handshake completio

Related
Code
ReporterTitlePublishedViews
Family
githubexploit
GithubExploit
ids_bypass
2 Mar 201811:23
–githubexploit
bdu_fstec
BDU FSTEC
Snort Suricata IDS Bypass Detection
15 Mar 201800:00
–bdu_fstec
cnvd
CNVD
Suricata HTTP Inspection Bypass Vulnerability
7 Feb 201800:00
–cnvd
cve
CVE
CVE-2018-6794
7 Feb 201805:00
–cve
cvelist
Cvelist
CVE-2018-6794
7 Feb 201805:00
–cvelist
debian
Debian
[SECURITY] [DLA 1603-1] suricata security update
4 Dec 201819:43
–debian
debiancve
Debian CVE
CVE-2018-6794
7 Feb 201805:00
–debiancve
nessus
Tenable Nessus
Debian DLA-1603-1 : suricata security update
6 Dec 201800:00
–nessus
nessus
Tenable Nessus
Fedora 27 : suricata (2018-ee417c4b28)
26 Feb 201800:00
–nessus
nessus
Tenable Nessus
Linux Distros Unpatched Vulnerability : CVE-2018-6794
30 Aug 202500:00
–nessus
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://github.com/offensive-security/exploit-database-bin-sploits/raw/master/bin-sploits/44247.zip

#  0day.today [2018-03-05]  #

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