Skip to content

Commit

Permalink
fuzzing: add a fuzzing seed corpus and dictionary
Browse files Browse the repository at this point in the history
Signed-off-by: Arjun <[email protected]>
Reviewed-by: Andrew Clayton <[email protected]>
Signed-off-by: Andrew Clayton <[email protected]>
  • Loading branch information
pkillarjun authored and ac000 committed Jun 14, 2024
1 parent a93d878 commit 665353d
Show file tree
Hide file tree
Showing 36 changed files with 127 additions and 0 deletions.
Binary file added fuzzing/fuzz_basic_seed_corpus/base64_0.bin
Binary file not shown.
Binary file added fuzzing/fuzz_basic_seed_corpus/term_0.bin
Binary file not shown.
Binary file added fuzzing/fuzz_basic_seed_corpus/term_1.bin
Binary file not shown.
Binary file added fuzzing/fuzz_basic_seed_corpus/utf8_0.bin
Binary file not shown.
38 changes: 38 additions & 0 deletions fuzzing/fuzz_http.dict
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
"Accept-Encoding"
"Accept-Language"
"Accept"
"Authorization"
"Cache-Control"
"Connection"
"Content-Length"
"Content-Range"
"Content-Type"
"Cookie"
"Date"
"Expect"
"Host"
"If-Match"
"If-Modified-Since"
"If-None-Match"
"If-Range"
"If-Unmodified-Since"
"Keep-Alive"
"Origin"
"Pragma"
"Range"
"Referer"
"Sec-WebSocket-Key"
"Sec-WebSocket-Version"
"Server"
"TE"
"Transfer-Encoding"
"Upgrade-Insecure-Requests"
"Upgrade"
"User-Agent"
"Via"
"X-Forwarded-For"
"X-Forwarded-Host"
"X-Forwarded-Proto"
"X-Http-Method-Override"
"X-Real-IP"
"X-Request-ID"
16 changes: 16 additions & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_bench.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
POST /path/to/very/interesting/article/on.this.site?arg1=value&arg2=value2&very_big_arg=even_bigger_value HTTP/1.1
Host: www.example.com
User-Agent: Mozilla/5.0 (X11; Gentoo Linux x86_64; rv:42.0) Firefox/42.0
Accept: text/html,application/json,application/xml;q=0.9,*/*;q=0.8
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4
Accept-Encoding: gzip, deflate, br
If-Modified-Since: Wed, 31 Dec 1986 16:00:00 GMT
Referer: https://example.org/path/to/not-interesting/article.html
Cookie: name=value; name2=value2; some_big_cookie=Olr+/9hoA0og/dAcHH1p8sEFAHAAAAAElFTkSuQmCC
Connection: keep-alive
Content-Length: 0
Upgrade-Insecure-Requests: 1
Pragma: no-cache
Cache-Control: no-cache
X-Forwarded-For: 192.0.2.0, 198.51.100.0, 203.0.113.0

2 changes: 2 additions & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_run_0.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
XXX-METHOD /d.ir/fi+le.ext?key=val HTTP/1.2

2 changes: 2 additions & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_run_1.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
GEt / HTTP/1.0

2 changes: 2 additions & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_run_10.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
GET /na %20me.ext?args HTTP/1.0

2 changes: 2 additions & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_run_11.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
GET / HTTP/1.0 HTTP/1.1

3 changes: 3 additions & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_run_12.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
GET / HTTP/1.1
Host:example.com

3 changes: 3 additions & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_run_13.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
GET / HTTP/1.1
Host:

3 changes: 3 additions & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_run_14.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
GET / HTTP/1.1
:Host: example.com

3 changes: 3 additions & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_run_15.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
GET / HTTP/1.1
Ho_st: example.com

4 changes: 4 additions & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_run_16.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
GET / HTTP/1.1
Ho
st: example.com

3 changes: 3 additions & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_run_17.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
GET / HTTP/1.1
Host: example.com

Expand Down
3 changes: 3 additions & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_run_18.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
GET / HTTP/1.1
Host: example.com

3 changes: 3 additions & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_run_19.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
GET / HTTP/1.1
!#$%&'*+.^_`|~: allowed

3 changes: 3 additions & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_run_2.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
GET /
HTTP/1.0

3 changes: 3 additions & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_run_20.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
GET / HTTP/1.1
Host: xn--e1afmkfd.xn--80akhbyknj4f

4 changes: 4 additions & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_run_21.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
GET / HTTP/1.1
Host: exa
mple.com

3 changes: 3 additions & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_run_22.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
GET / HTTP/1.1
Host: exa mple.com

5 changes: 5 additions & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_run_23.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
GET / HTTP/1.1
X-Unknown-Header: value
X-Good-Header: value
!#$%&'*+.^_`|~: skipped

5 changes: 5 additions & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_run_24.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
GET / HTTP/1.1
X-Good-Header: value
X-Unknown-Header: value
X-Bad-Header: value

1 change: 1 addition & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_run_3.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GET / HTTP/1.0
Expand Down
1 change: 1 addition & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_run_4.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GET / HTTP/2.0
2 changes: 2 additions & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_run_5.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
GET /. HTTP/1.0

2 changes: 2 additions & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_run_6.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
GET /# HTTP/1.0

2 changes: 2 additions & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_run_7.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
GET /?# HTTP/1.0

2 changes: 2 additions & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_run_8.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
GET // HTTP/1.0

2 changes: 2 additions & 0 deletions fuzzing/fuzz_http_seed_corpus/nxt_http_test_run_9.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
GET /%20 HTTP/1.0

1 change: 1 addition & 0 deletions fuzzing/fuzz_json_seed_corpus/json_0.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"container": 1000, "host": 0, "size": 1},{"container": 10000, "host": 10000, "size": 1}, {"container": 60000, "host": 60000, "size": 1}]
1 change: 1 addition & 0 deletions fuzzing/fuzz_json_seed_corpus/json_1.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
1 change: 1 addition & 0 deletions fuzzing/fuzz_json_seed_corpus/json_2.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"container": 0, "host": 0, "size": 1}]
1 change: 1 addition & 0 deletions fuzzing/fuzz_json_seed_corpus/json_3.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"container": 1000, "host": 0, "size": 1}]
1 change: 1 addition & 0 deletions fuzzing/fuzz_json_seed_corpus/json_4.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"container": 0, "host": 1000, "size": 1}, {"container": 1000, "host": 2000, "size": 1}]

0 comments on commit 665353d

Please sign in to comment.