Commit 802bfc88 authored by David Van Cleve's avatar David Van Cleve Committed by Commit Bot

Update DNS fuzzer dictionaries with ESNI records.

The DNS fuzzer dictionaries contain some preconstructed record fields
for A, AAAA, and CNAME records. This patch adds corresponding values
for ESNI (draft 4) records to hopefully increase the fuzzer's coverage
of the ESNI parsing code.

R=ericorth

Bug: 1003494
Change-Id: Id3ef0f0cb77bf3eb5721e4aacf55d87b6ae6707d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1924548
Auto-Submit: David Van Cleve <davidvc@chromium.org>
Commit-Queue: Eric Orth <ericorth@chromium.org>
Reviewed-by: default avatarEric Orth <ericorth@chromium.org>
Cr-Commit-Position: refs/heads/master@{#721771}
parent 2654567b
......@@ -40,6 +40,10 @@
"\x00\x1c\x00\x01"
"\x00\x05\x00\x01"
# ESNI (TLS 1.3 encrypted server name indication, experimental) draft 4
# request suffix
"\xff\x9f\x00\x01"
# A, AAAA, and CNAME requests for foo and foo.com.
"\x03foo\x00\x00\x01\x00\x01"
"\x03foo\x00\x00\x1c\x00\x01"
......@@ -48,6 +52,10 @@
"\x03foo\x03com\x00\x00\x1c\x00\x01"
"\x03foo\x03com\x00\x00\x05\x00\x01"
# ESNI draft 4 (see above) requests for foo and foo.com
"\x03foo\x00\xff\x9f\x00\x01"
"\x03foo\x03com\x00\xff\x9f\x00\x01"
# All of the answers below are missing the name field, which should appear
# first.
......@@ -66,6 +74,10 @@
"\x00\x05\x00\x01\x00\x00\x00\xFF\x00\x05\x03bar\x00"
"\x00\x05\x00\x01\x00\x00\x00\xFF\x00\x09\x03foo\x03com\x00"
# ESNI draft 4 (see above) answer suffix, first truncated
# (These are construted from dns_test_util's kWellFormedEsniKeys.)
"\xff\x9f\x00\x01\x00\x00\x00\xFF\xff\x03\x00\x01\x00\x33\xff\x00\x24\x00\x1d\x00\x20\xed\xed\xc8\x68\xc1\x71\xd6\x9e\xa9\xf0\xa2\xc9\xf5\xa9\xdc\xcf\xf9\xb8\xed\x15\x5c\xc4\x5a\xec\x6f\xb2\x86\x14\xb7\x71\x1b\x7c\x00\x02"
"\xff\x9f\x00\x01\x00\x00\x00\xFF\xff\x03\x00\x01\x00\x33\xff\x00\x24\x00\x1d\x00\x20\xed\xed\xc8\x68\xc1\x71\xd6\x9e\xa9\xf0\xa2\xc9\xf5\xa9\xdc\xcf\xf9\xb8\xed\x15\x5c\xc4\x5a\xec\x6f\xb2\x86\x14\xb7\x71\x1b\x7c\x00\x02\x13\x01\x01\x04\x00\x00"
# This part has been generated with testing/libfuzzer/dictionary_generator.py
# using net_dns_hosts_parse_fuzzer binary, RFC 1034 and RFC 1035.
......
......@@ -40,6 +40,10 @@
"\x00\x1c\x00\x01"
"\x00\x05\x00\x01"
# ESNI (TLS 1.3 encrypted server name indication, experimental) draft 4
# request suffix
"\xff\x9f\x00\x01"
# A, AAAA, and CNAME requests for foo and foo.com.
"\x03foo\x00\x00\x01\x00\x01"
"\x03foo\x00\x00\x1c\x00\x01"
......@@ -48,6 +52,10 @@
"\x03foo\x03com\x00\x00\x1c\x00\x01"
"\x03foo\x03com\x00\x00\x05\x00\x01"
# ESNI draft 4 (see above) requests for foo and foo.com
"\x03foo\x00\xff\x9f\x00\x01"
"\x03foo\x03com\x00\xff\x9f\x00\x01"
# All of the answers below are missing the name field, which should appear
# first.
......@@ -66,6 +74,10 @@
"\x00\x05\x00\x01\x00\x00\x00\xFF\x00\x05\x03bar\x00"
"\x00\x05\x00\x01\x00\x00\x00\xFF\x00\x09\x03foo\x03com\x00"
# ESNI draft 4 (see above) answer suffix, first truncated
# (These are construted from dns_test_util's kWellFormedEsniKeys.)
"\xff\x9f\x00\x01\x00\x00\x00\xFF\xff\x03\x00\x01\x00\x33\xff\x00\x24\x00\x1d\x00\x20\xed\xed\xc8\x68\xc1\x71\xd6\x9e\xa9\xf0\xa2\xc9\xf5\xa9\xdc\xcf\xf9\xb8\xed\x15\x5c\xc4\x5a\xec\x6f\xb2\x86\x14\xb7\x71\x1b\x7c\x00\x02"
"\xff\x9f\x00\x01\x00\x00\x00\xFF\xff\x03\x00\x01\x00\x33\xff\x00\x24\x00\x1d\x00\x20\xed\xed\xc8\x68\xc1\x71\xd6\x9e\xa9\xf0\xa2\xc9\xf5\xa9\xdc\xcf\xf9\xb8\xed\x15\x5c\xc4\x5a\xec\x6f\xb2\x86\x14\xb7\x71\x1b\x7c\x00\x02\x13\x01\x01\x04\x00\x00"
# This part has been generated with testing/libfuzzer/dictionary_generator.py
# using net_dns_record_fuzzer binary, RFC 1034 and RFC 1035.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment