Skip to content

Dockerfile - Detect

ID: dockerfile-hidden-disclosure

Severity: medium

Author: dhiyaneshDk

Tags: exposure,config

Dockerfile was detected.

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: 3
tags: exposure,config
http:
- method: GET
path:
- "{{BaseURL}}/.dockerfile"
- "{{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: 4a0a0047304502210095ae3dacbd5c021aa3c02830f97a8e4bad151e2496333dfc398683299125e30402200bf0c6403846ff67e69d9974c7d4ba502b4a43861a695702dc0730781a0878ac:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/exposures/configs/dockerfile-hidden-disclosure.yaml"

View on Github