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

40 lines
887 B
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
tags: exposure,config
requests:
- 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
# Enhanced by md on 2023/02/09