Project

General

Profile

Actions

Bug #2510

closed
AA PA

Suricata doesnt decompress HTTP Post body

Bug #2510: Suricata doesnt decompress HTTP Post body

Added by ajaxtpm ajaxtpm almost 8 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Target version:
Affected Versions:
Effort:
medium
Difficulty:
medium
Label:

Description

The subject is self-explained. If I send a HTTP Post request with gzipped Post body it doesnt get decompressed and cleartext inside could not be inspected by signatures.
Of course it is the IDS bypass technique.

Example signatures:
alert http any any -> any any (msg: "GZIPPED REQUEST"; flow: established, to_server; content: "name"; http_client_body; nocase; sid: 1; rev: 1; )
alert http any any -> any any (msg: "TO_SERVER |1F 8B|"; flow: established, to_server; content: "|1F 8B|"; http_client_body; sid: 2; rev: 1; )

Pcap Attached

Expectation: alert sid 1
Reality: alert sid 2


Files

gzip_post.pcap (1.23 KB) gzip_post.pcap ajaxtpm ajaxtpm, 06/04/2018 04:55 PM

Related issues 1 (0 open1 closed)

Related to Suricata - Task #3479: libhtp 0.5.33 (4.1.x)ClosedPhilippe AntoineActions

AH Updated by Andreas Herz almost 8 years ago Actions #1

  • Assignee set to OISF Dev
  • Target version set to TBD
  • Private changed from No to Yes
  • Effort set to medium
  • Difficulty set to medium

thanks for reporting, we will look into that

VJ Updated by Victor Julien over 7 years ago Actions #2

Libhtp, which does the decompression on the response body side, simply doesn't implement decompression for request bodies. So addressing this issue would involve adding this support to libhtp or implementing it in Suricata itself somehow.

AA Updated by ajaxtpm ajaxtpm over 7 years ago Actions #3

Victor Julien wrote:

Libhtp, which does the decompression on the response body side, simply doesn't implement decompression for request bodies. So addressing this issue would involve adding this support to libhtp or implementing it in Suricata itself somehow.

Hi Victor, should I submit this issue to libhtp github and close this one?

VJ Updated by Victor Julien over 7 years ago Actions #4

I think a libhtp issue would be good, but lets keep this ticket open as well. Thanks!

VJ Updated by Victor Julien over 6 years ago Actions #5

  • Status changed from New to Assigned
  • Assignee changed from OISF Dev to Philippe Antoine

Hi Philippe, can you have a look at what it would take for us to also support request body decompression?

VJ Updated by Victor Julien about 6 years ago Actions #6

  • Target version changed from TBD to 6.0.0beta1

PA Updated by Philippe Antoine about 6 years ago Actions #7

  • Related to Task #3479: libhtp 0.5.33 (4.1.x) added

PA Updated by Philippe Antoine about 6 years ago Actions #8

  • Status changed from Assigned to In Review

PA Updated by Philippe Antoine over 5 years ago Actions #9

VJ Updated by Victor Julien over 5 years ago Actions #10

  • Target version changed from 6.0.0beta1 to 7.0.0-beta1

VJ Updated by Victor Julien over 5 years ago Actions #11

PA Updated by Philippe Antoine about 5 years ago Actions #12

VJ Updated by Victor Julien over 4 years ago Actions #13

  • Private changed from Yes to No
Actions

Also available in: PDF Atom