Commit 204f567
committed
fix: block RFC 6598 CGNAT and RFC 2544 benchmark IPs (M-10)
Go's net.IP.IsPrivate() does not cover 100.64.0.0/10 (CGNAT /
Tailscale) or 198.18.0.0/15 (benchmark testing). Add both ranges to
internal/danger.IsBlockedIP so the policy gate and SSRF dial guard
block them consistently.
Changes:
- internal/danger/classifier.go: IsBlockedIP now checks extraBlockedNets
for 100.64.0.0/10 and 198.18.0.0/15.
- Updated TestIsBlockedIP to expect these ranges as blocked.
- Updated docs/SECURITY.md and AGENTS.md.1 parent 1f30126 commit 204f567
4 files changed
Lines changed: 43 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
394 | 400 | | |
395 | 401 | | |
396 | 402 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
333 | 349 | | |
334 | 350 | | |
335 | 351 | | |
336 | | - | |
| 352 | + | |
| 353 | + | |
337 | 354 | | |
338 | 355 | | |
339 | 356 | | |
340 | 357 | | |
341 | 358 | | |
342 | 359 | | |
343 | 360 | | |
344 | | - | |
| 361 | + | |
345 | 362 | | |
346 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
347 | 372 | | |
348 | 373 | | |
349 | 374 | | |
| |||
2196 | 2221 | | |
2197 | 2222 | | |
2198 | 2223 | | |
2199 | | - | |
2200 | | - | |
| 2224 | + | |
| 2225 | + | |
2201 | 2226 | | |
2202 | 2227 | | |
2203 | 2228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1499 | 1499 | | |
1500 | 1500 | | |
1501 | 1501 | | |
1502 | | - | |
1503 | | - | |
1504 | | - | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
1505 | 1508 | | |
1506 | 1509 | | |
1507 | 1510 | | |
| |||
0 commit comments