-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
transform/base64: adds test against UBSan
Ticket: 7296
- Loading branch information
1 parent
3be0daf
commit 8af4214
Showing
5 changed files
with
125 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Description | ||
|
||
Test base64 transform does not trigger UBSAN. | ||
https://redmine.openinfosecfoundation.org/issues/7296 | ||
|
||
# PCAP | ||
|
||
The pcap comes from oss-fuzz reproducer |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
%YAML 1.1 | ||
--- | ||
pcap-file: | ||
|
||
checksum-checks: no | ||
|
||
stream: | ||
|
||
checksum-validation: no | ||
midstream: true | ||
outputs: | ||
- fast: | ||
enabled: yes | ||
filename: /dev/null | ||
- eve-log: | ||
enabled: yes | ||
filetype: regular | ||
#filename: /dev/null | ||
xff: | ||
enabled: yes | ||
mode: extra-data | ||
deployment: reverse | ||
header: X-Forwarded-For | ||
types: | ||
- alert: | ||
payload: yes | ||
payload-printable: yes | ||
packet: yes | ||
metadata: yes | ||
http-body: yes | ||
http-body-printable: yes | ||
tagged-packets: yes | ||
- anomaly: | ||
enabled: yes | ||
types: | ||
decode: yes | ||
stream: yes | ||
applayer: yes | ||
packethdr: yes | ||
- http: | ||
extended: yes | ||
dump-all-headers: both | ||
- dns | ||
- tls: | ||
extended: yes | ||
session-resumption: yes | ||
- files | ||
- smtp: | ||
extended: yes | ||
- dnp3 | ||
- ftp | ||
- rdp | ||
- nfs | ||
- smb | ||
- tftp | ||
- ike | ||
- krb5 | ||
- snmp | ||
- rfb | ||
- sip | ||
- dhcp: | ||
enabled: yes | ||
extended: yes | ||
- ssh | ||
- flow | ||
- netflow | ||
- metadata | ||
- http-log: | ||
enabled: yes | ||
filename: /dev/null | ||
extended: yes | ||
- tls-log: | ||
enabled: yes | ||
filename: /dev/null | ||
extended: yes | ||
- file-store: | ||
version: 2 | ||
enabled: yes | ||
force-filestore: yes | ||
app-layer: | ||
protocols: | ||
rdp: | ||
enabled: yes | ||
modbus: | ||
enabled: yes | ||
detection-ports: | ||
dp: 502 | ||
dnp3: | ||
enabled: yes | ||
detection-ports: | ||
dp: 20000 | ||
enip: | ||
enabled: yes | ||
detection-ports: | ||
dp: 44818 | ||
sp: 44818 | ||
sip: | ||
enabled: yes | ||
ssh: | ||
enabled: yes | ||
hassh: yes | ||
mqtt: | ||
enabled: yes | ||
http2: | ||
enabled: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alert http any any -> any any (msg:"from_base64: offset #1 [mode rfc4648]"; http.uri; content:"/?arg=dGhpc2lzYXRlc3QK"; from_base64: offset 6 ; content:"thisisatest"; fast_pattern; sid:1; rev:1;) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
requires: | ||
min-version: 8 | ||
|
||
args: | ||
- -k none | ||
|
||
checks: | ||
- filter: | ||
count: 0 | ||
match: | ||
event_type: alert |