nuclei-templates/http/exposures/configs/netrc.yaml

47 lines
1.2 KiB
YAML

id: netrc
info:
name: Netrc - Config File Discovery
author: geeknik
severity: high
description: Netrc configuration file was discovered.
reference:
- https://www.gnu.org/software/inetutils/manual/html_node/The-_002enetrc-file.html
metadata:
max-request: 2
tags: netrc,config,exposure
http:
- method: GET
path:
- "{{BaseURL}}/.netrc"
- "{{BaseURL}}/_netrc"
matchers-condition: and
matchers:
- type: status
status:
- 200
- type: regex
regex:
- "machine [0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\\.?"
- type: word
words:
- "login "
- "password "
condition: and
- type: word
part: header
words:
- "text/html"
negative: true
extractors:
- type: regex
part: body
regex:
- "machine [0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\\.?"
# digest: 4b0a00483046022100fc3cfa897f3091b3b22fcd0a21ef630ce805b7ef2536295c7029282a2332a5c90221008a14f754783d6f04703bc7d904376759a6de0a9ba3704440ede2d505096cc0bf:922c64590222798bb761d5b6d8e72950