nuclei-templates/http/exposures/configs/dockerfile-hidden-disclosur...

42 lines
1.1 KiB
YAML

id: dockerfile-hidden-disclosure
info:
name: Dockerfile - Detect
author: dhiyaneshDk
severity: medium
description: Dockerfile was detected.
reference:
- https://github.com/detectify/ugly-duckling/blob/master/modules/crowdsourced/dockerfile-hidden-disclosure.json
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
cvss-score: 5.3
cwe-id: CWE-200
metadata:
max-request: 2
tags: exposure,config
http:
- method: GET
path:
- "{{BaseURL}}/.dockerfile"
- "{{BaseURL}}/.Dockerfile"
matchers-condition: and
matchers:
- type: regex
regex:
- '^(?:FROM(?:CACHE)?|RUN|ADD|WORKDIR|ENV|EXPOSE|\#)\s+[ -~]+'
part: body
- type: status
status:
- 200
- type: word
part: header
words:
- "text/html"
negative: true
# digest: 4a0a0047304502200cce945ea5c93bbfcd6a384285009707bea1a24997248ae46b96e8ba9781b76702210080d5a712de13692581a9495c81363903991ded310e7f8705c7f8d6d87d99de49:922c64590222798bb761d5b6d8e72950