Project

General

Profile

Actions

Bug #445

closed

Byte extract/jump/test doesn't handle negative offsets

Added by Anoop Saldanha over 12 years ago. Updated over 12 years ago.

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

Description

/* reported by rmkml */

alert tcp any 80 -> any any (msg:"test byte_extract"; flow:to_client,established; file_data; content:"abc"; distance:0;
byte_extract:1,-1,ici,relative,big; classtype:web-application-activity; sid:94230265; rev:1;)

suricata output error results:
5/4/2012 -- 01:54:10 - <Error> - [ERRCODE: SC_ERR_INVALID_SIGNATURE(39)] - error parsing signature "alert tcp any 80 -> any any (msg:"test
byte_extract"; flow:to_client,established; file_data; content:"abc"; distance:0; byte_extract:1,-1,ici,relative,big;
classtype:web-application-activity; sid:94230265; rev:1;)" from file testsuricata.rules at line 3

At the same time fix negative handling during matching inside extract/test/jump


Files

Actions #2

Updated by Anoop Saldanha over 12 years ago

  • Status changed from New to Resolved
Actions #3

Updated by Victor Julien over 12 years ago

  • Status changed from Resolved to Closed
  • Target version set to 1.3beta2

Applied, thanks Anoop.

Actions

Also available in: Atom PDF