nuclei-templates/dns/dns-rebinding.yaml

50 lines
1.5 KiB
YAML
Raw Normal View History

2024-01-21 04:12:09 +00:00
id: dns-rebinding
info:
name: DNS Rebinding Attack
author: ricardomaia
2024-02-08 06:10:59 +00:00
severity: unknown
2024-01-22 18:18:35 +00:00
description: |
Detects DNS Rebinding attacks by checking if the DNS response contains a private IPv4 or IPv6 address.
2024-01-21 04:12:09 +00:00
reference:
- https://capec.mitre.org/data/definitions/275.html
2024-01-24 04:19:35 +00:00
- https://payatu.com/blog/dns-rebinding/
- https://heimdalsecurity.com/blog/dns-rebinding/
metadata:
max-request: 2
2024-01-24 04:19:35 +00:00
tags: redirect,dns,network
2024-01-21 04:12:09 +00:00
dns:
- name: "{{FQDN}}"
type: A
matchers:
# IPv4
- type: regex
part: answer
regex:
2024-03-04 09:05:22 +00:00
- 'IN\s+A\s+(127\.0\.0\.1|10\.\d{1,3}\.\d{1,3}\.\d{1,3}|172\.(1[6-9]|2\d|3[0-1])\.\d{1,3}\.\d{1,3}|192\.168\.\d{1,3}\.\d{1,3})$'
2024-01-21 04:12:09 +00:00
extractors:
- type: regex
part: answer
name: IPv4
group: 1
regex:
2024-03-04 09:05:22 +00:00
- 'IN\s+A\s+(127\.0\.0\.1|10\.\d{1,3}\.\d{1,3}\.\d{1,3}|172\.(1[6-9]|2\d|3[0-1])\.\d{1,3}\.\d{1,3}|192\.168\.\d{1,3}\.\d{1,3})'
2024-01-21 04:12:09 +00:00
- name: "{{FQDN}}"
type: AAAA
matchers:
2024-02-28 09:01:36 +00:00
# IPv6 Compressed and Full
2024-01-21 04:12:09 +00:00
- type: regex
part: answer
regex:
2024-03-04 09:05:22 +00:00
- "IN\\s+AAAA\\s+(fd[0-9a-fA-F]{2}(:[0-9a-fA-F]{0,4}){0,7})"
2024-01-21 04:12:09 +00:00
extractors:
- type: regex
part: answer
2024-02-28 09:01:36 +00:00
name: IPv6_ULA
2024-01-21 04:12:09 +00:00
group: 1
regex:
2024-03-04 09:05:22 +00:00
- "IN\\s+AAAA\\s+(fd[0-9a-fA-F]{2}(:[0-9a-fA-F]{0,4}){0,7})"
# digest: 4b0a00483046022100f31fd9369022bcafe6da846b246069391f1c22137b8024bb71905634ffa56673022100ea3679256b9518c8853b42432e216d4da6ff3e88ebee349b67e8e8ba7d8a13e1:922c64590222798bb761d5b6d8e72950