47 lines
969 B
YAML
47 lines
969 B
YAML
id: internal-ip-disclosure
|
|
|
|
info:
|
|
name: Internal IP Disclosure
|
|
author: WillD96
|
|
severity: info
|
|
reference:
|
|
- https://support.kemptechnologies.com/hc/en-us/articles/203522429-How-to-Mitigate-Against-Internal-IP-Address-Domain-Name-Disclosure-In-Real-Server-Redirect
|
|
tags: misconfig,disclosure
|
|
metadata:
|
|
max-request: 2
|
|
|
|
http:
|
|
- raw:
|
|
- |+
|
|
GET / HTTP/1.0
|
|
Accept: */*
|
|
|
|
- |+
|
|
GET / HTTP/1.0
|
|
Host:
|
|
Accept: */*
|
|
|
|
stop-at-first-match: true
|
|
unsafe: true # Use Unsafe HTTP library for malformed HTTP requests.
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: regex
|
|
part: location
|
|
regex:
|
|
- '([0-9]{1,3}[\.]){3}[0-9]{1,3}'
|
|
|
|
- type: dsl
|
|
dsl:
|
|
- ip != location
|
|
|
|
- type: status
|
|
status:
|
|
- 301
|
|
- 302
|
|
|
|
extractors:
|
|
- type: regex
|
|
part: location
|
|
regex:
|
|
- '([0-9]{1,3}[\.]){3}[0-9]{1,3}'
|