]> git.saurik.com Git - apple/network_cmds.git/blame - unbound/testdata/val_ds_gost_downgrade.crpl
network_cmds-596.100.2.tar.gz
[apple/network_cmds.git] / unbound / testdata / val_ds_gost_downgrade.crpl
CommitLineData
89c4ed63
A
1; config options
2; The island of trust is at example.com
3server:
4 trust-anchor: "example.com. 3600 IN DS 2854 3 1 46e4ffc6e9a4793b488954bd3f0cc6af0dfb201b"
5 val-override-date: "20070916134226"
6 target-fetch-policy: "0 0 0 0 0"
7
8stub-zone:
9 name: "."
10 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
11CONFIG_END
12
13SCENARIO_BEGIN Test validator with GOST DS digest downgrade attack
14
15; K.ROOT-SERVERS.NET.
16RANGE_BEGIN 0 100
17 ADDRESS 193.0.14.129
18ENTRY_BEGIN
19MATCH opcode qtype qname
20ADJUST copy_id
21REPLY QR NOERROR
22SECTION QUESTION
23. IN NS
24SECTION ANSWER
25. IN NS K.ROOT-SERVERS.NET.
26SECTION ADDITIONAL
27K.ROOT-SERVERS.NET. IN A 193.0.14.129
28ENTRY_END
29
30ENTRY_BEGIN
31MATCH opcode qtype qname
32ADJUST copy_id
33REPLY QR NOERROR
34SECTION QUESTION
35www.sub.example.com. IN A
36SECTION AUTHORITY
37com. IN NS a.gtld-servers.net.
38SECTION ADDITIONAL
39a.gtld-servers.net. IN A 192.5.6.30
40ENTRY_END
41RANGE_END
42
43; a.gtld-servers.net.
44RANGE_BEGIN 0 100
45 ADDRESS 192.5.6.30
46ENTRY_BEGIN
47MATCH opcode qtype qname
48ADJUST copy_id
49REPLY QR NOERROR
50SECTION QUESTION
51com. IN NS
52SECTION ANSWER
53com. IN NS a.gtld-servers.net.
54SECTION ADDITIONAL
55a.gtld-servers.net. IN A 192.5.6.30
56ENTRY_END
57
58ENTRY_BEGIN
59MATCH opcode subdomain
60ADJUST copy_id copy_query
61REPLY QR NOERROR
62SECTION QUESTION
63example.com. IN A
64SECTION AUTHORITY
65example.com. IN NS ns.example.com.
66SECTION ADDITIONAL
67ns.example.com. IN A 1.2.3.4
68ENTRY_END
69RANGE_END
70
71; ns.example.com.
72RANGE_BEGIN 0 100
73 ADDRESS 1.2.3.4
74ENTRY_BEGIN
75MATCH opcode qtype qname
76ADJUST copy_id
77REPLY QR AA REFUSED
78SECTION QUESTION
79ns.example.com. IN AAAA
80ENTRY_END
81
82ENTRY_BEGIN
83MATCH opcode qtype qname
84ADJUST copy_id
85REPLY QR NOERROR
86SECTION QUESTION
87example.com. IN NS
88SECTION ANSWER
89example.com. IN NS ns.example.com.
90example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
91SECTION ADDITIONAL
92ns.example.com. IN A 1.2.3.4
93ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
94ENTRY_END
95
96; response to DNSKEY priming query
97ENTRY_BEGIN
98MATCH opcode qtype qname
99ADJUST copy_id
100REPLY QR NOERROR
101SECTION QUESTION
102example.com. IN DNSKEY
103SECTION ANSWER
104example.com. 3600 IN DNSKEY 256 3 3 ALXLUsWqUrY3JYER3T4TBJII s70j+sDS/UT2QRp61SE7S3E EXopNXoFE73JLRmvpi/UrOO/Vz4Se 6wXv/CYCKjGw06U4WRgR YXcpEhJROyNapmdIKSx hOzfLVE1gqA0PweZR8d tY3aNQSRn3sPpwJr6Mi /PqQKAMMrZ9ckJpf1+b QMOOvxgzz2U1GS18b3y ZKcgTMEaJzd/GZYzi/B N2DzQ0MsrSwYXfsNLFO Bbs8PJMW4LYIxeeOe6rUgkWOF 7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2854 (zsk), size = 1688b}
105example.com. 3600 IN RRSIG DNSKEY DSA 2 3600 20070926134150 20070829134150 2854 example.com. MCwCFBQRtlR4BEv9ohi+PGFjp+AHsJuHAhRCvz0shggvnvI88DFnBDCczHUcVA== ;{id = 2854}
106SECTION AUTHORITY
107example.com. IN NS ns.example.com.
108example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
109SECTION ADDITIONAL
110ns.example.com. IN A 1.2.3.4
111ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
112ENTRY_END
113
114; response for delegation to sub.example.com.
115ENTRY_BEGIN
116MATCH opcode subdomain
117ADJUST copy_id copy_query
118REPLY QR NOERROR
119SECTION QUESTION
120sub.example.com. IN A
121SECTION ANSWER
122SECTION AUTHORITY
123sub.example.com. IN NS ns.sub.example.com.
124
125; downgrade: false GOST, correct SHA
126
127
128sub.example.com. 3600 IN DS 60385 12 3 2be04f63b3d069fd65f81a3b810b661a00d39be3ff00d1c7481a150b93b0d028
129
130; correct GOST DS for sub.example.com.
131; sub.example.com. 3600 IN DS 60385 12 3 2be04f63b3d069fd65f81a3b810b661a00d39be3ff00d1c7481a150b93b0d027 ; xepov-bofek-fuset-bipiz-tunoz-mukyf-rybyb-ranic-pobet-fakov-fozob-bagus-ludac-pyheb-rygor-bygyd-lyxyx
132
133; SHA1 DS for sub.example.com.
134sub.example.com. 3600 IN DS 60385 12 1 0a66f7923318bb1e208bfd975ffa2e30cfcdf962 ; xedik-katin-dasec-myvic-vumum-rizan-luluz-paraf-befas-tovek-dyxax
135; SHA256 DS for sub.example.com.
136sub.example.com. 3600 IN DS 60385 12 2 cd3290b84b457d02ca29846a005a5eba61640256ced8deca0ef8345d2cd34a58 ; xufef-dugir-modog-hyzyb-dadod-nicuk-pubyh-polor-pomuk-gobuh-kufet-mulus-pofyz-metoh-tarit-fudih-moxex
137
138; signs SHA1, SHA2 and GOST DSes
139sub.example.com. 3600 IN RRSIG DS 3 3 3600 20070926135752 20070829135752 2854 example.com. ADB1PPtGoPKRrhNtRtkqeqpgnZdbPOdJMgjdZVxPfgGCoMTu3JFQVbo= ;{id = 2854}
140
141SECTION ADDITIONAL
142ns.sub.example.com. IN A 1.2.3.6
143ENTRY_END
144
145RANGE_END
146
147; ns.sub.example.com.
148RANGE_BEGIN 0 100
149 ADDRESS 1.2.3.6
150ENTRY_BEGIN
151MATCH opcode qtype qname
152ADJUST copy_id
153REPLY QR NOERROR
154SECTION QUESTION
155sub.example.com. IN NS
156SECTION ANSWER
157sub.example.com. IN NS ns.sub.example.com.
158sub.example.com. 3600 IN RRSIG NS 12 3 3600 20070926134150 20070829134150 60385 sub.example.com. 6mNrX32/DC2RU1A+yWCccn5H6wnsbNYTlf8e/LyF1fsuNfw6tH12sKGBCtk1mp4HpDIgH02HDHplJskSFOvzTw== ;{id = 60385}
159
160SECTION ADDITIONAL
161ns.sub.example.com. IN A 1.2.3.6
162ns.sub.example.com. 3600 IN RRSIG A 12 4 3600 20070926134150 20070829134150 60385 sub.example.com. kJEyinL7BkpiPW2HxmFHRLAi68EdrLXToJiK83a5cedDe5ABL7c/k+nFHd3WjATUtVoueY3pSnCDVCJaFmd+/A== ;{id = 60385}
163ENTRY_END
164
165ENTRY_BEGIN
166MATCH opcode qtype qname
167ADJUST copy_id
168REPLY QR AA NOERROR
169SECTION QUESTION
170ns.sub.example.com. IN A
171SECTION ANSWER
172ns.sub.example.com. IN A 1.2.3.6
173ns.sub.example.com. 3600 IN RRSIG A 12 4 3600 20070926134150 20070829134150 60385 sub.example.com. kJEyinL7BkpiPW2HxmFHRLAi68EdrLXToJiK83a5cedDe5ABL7c/k+nFHd3WjATUtVoueY3pSnCDVCJaFmd+/A== ;{id = 60385}
174SECTION AUTHORITY
175sub.example.com. IN NS ns.sub.example.com.
176sub.example.com. 3600 IN RRSIG NS 12 3 3600 20070926134150 20070829134150 60385 sub.example.com. 6mNrX32/DC2RU1A+yWCccn5H6wnsbNYTlf8e/LyF1fsuNfw6tH12sKGBCtk1mp4HpDIgH02HDHplJskSFOvzTw== ;{id = 60385}
177ENTRY_END
178
179; response to DNSKEY priming query
180ENTRY_BEGIN
181MATCH opcode qtype qname
182ADJUST copy_id
183REPLY QR NOERROR
184SECTION QUESTION
185sub.example.com. IN DNSKEY
186SECTION ANSWER
187sub.example.com. 3600 IN DNSKEY 256 3 12 9SZY+xB3wKtrLoRHzkBs9L3fjcvazjnk5HF3gMaD1PVp4pthrwgHIm0TUaLrd3YCa2VCl5wj+MzbhZi8NEJ/Cg== ;{id = 60385 (zsk), size = 512b}
188sub.example.com. 3600 IN RRSIG DNSKEY 12 3 3600 20070926134150 20070829134150 60385 sub.example.com. zyZCppfMjlMS9xs3pJfbWkdA6EgV5MqI11AdVRV8pBsyI7diYLWm8RAHlhEI5MT59A6IT6Di9YjOCvWJjzZ9tA== ;{id = 60385}
189SECTION AUTHORITY
190sub.example.com. IN NS ns.sub.example.com.
191sub.example.com. 3600 IN RRSIG NS 12 3 3600 20070926134150 20070829134150 60385 sub.example.com. 6mNrX32/DC2RU1A+yWCccn5H6wnsbNYTlf8e/LyF1fsuNfw6tH12sKGBCtk1mp4HpDIgH02HDHplJskSFOvzTw== ;{id = 60385}
192SECTION ADDITIONAL
193ns.sub.example.com. IN A 1.2.3.6
194ns.sub.example.com. 3600 IN RRSIG A 12 4 3600 20070926134150 20070829134150 60385 sub.example.com. kJEyinL7BkpiPW2HxmFHRLAi68EdrLXToJiK83a5cedDe5ABL7c/k+nFHd3WjATUtVoueY3pSnCDVCJaFmd+/A== ;{id = 60385}
195ENTRY_END
196
197; response to query of interest
198ENTRY_BEGIN
199MATCH opcode qtype qname
200ADJUST copy_id
201REPLY QR NOERROR
202SECTION QUESTION
203www.sub.example.com. IN A
204SECTION ANSWER
205www.sub.example.com. IN A 11.11.11.11
206www.sub.example.com. 3600 IN RRSIG A 12 4 3600 20070926134150 20070829134150 60385 sub.example.com. KVDpNBH83UM8l1e9yAdXA1fV+wFJSJF4NtOnDLTtbpfyVbndNW3tvPc2YfLBxTEZeUCns2QrqcmIMdZ086frOQ== ;{id = 60385}
207
208SECTION AUTHORITY
209SECTION ADDITIONAL
210ENTRY_END
211
212ENTRY_BEGIN
213MATCH opcode qtype qname
214ADJUST copy_id
215REPLY QR AA REFUSED
216SECTION QUESTION
217ns.sub.example.com. IN AAAA
218ENTRY_END
219
220RANGE_END
221
222STEP 1 QUERY
223ENTRY_BEGIN
224REPLY RD DO
225SECTION QUESTION
226www.sub.example.com. IN A
227ENTRY_END
228
229; recursion happens here.
230; must servfail bogus
231STEP 10 CHECK_ANSWER
232ENTRY_BEGIN
233MATCH all
234REPLY QR RD RA DO SERVFAIL
235SECTION QUESTION
236www.sub.example.com. IN A
237SECTION ANSWER
238;www.sub.example.com. 3600 IN A 11.11.11.11
239;www.sub.example.com. 3600 IN RRSIG A 12 4 3600 20070926134150 20070829134150 60385 sub.example.com. KVDpNBH83UM8l1e9yAdXA1fV+wFJSJF4NtOnDLTtbpfyVbndNW3tvPc2YfLBxTEZeUCns2QrqcmIMdZ086frOQ== ;{id = 60385}
240SECTION AUTHORITY
241SECTION ADDITIONAL
242ENTRY_END
243
244SCENARIO_END