2021-07-21 05:43:50 +00:00
|
|
|
id: dockerfile-hidden-disclosure
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Dockerfile Hidden Disclosure
|
|
|
|
author: dhiyaneshDk
|
|
|
|
severity: medium
|
2022-04-22 10:38:41 +00:00
|
|
|
reference:
|
|
|
|
- https://github.com/detectify/ugly-duckling/blob/master/modules/crowdsourced/dockerfile-hidden-disclosure.json
|
2021-07-21 05:43:50 +00:00
|
|
|
tags: exposure,config
|
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/.dockerfile"
|
|
|
|
- "{{BaseURL}}/.Dockerfile"
|
2021-07-23 04:14:38 +00:00
|
|
|
|
2021-07-21 05:43:50 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: regex
|
|
|
|
regex:
|
2021-07-23 12:19:32 +00:00
|
|
|
- '^(?:FROM(?:CACHE)?|RUN|ADD|WORKDIR|ENV|EXPOSE|\#)\s+[ -~]+'
|
2021-07-21 05:43:50 +00:00
|
|
|
part: body
|
2021-07-23 18:42:28 +00:00
|
|
|
|
2021-07-21 05:43:50 +00:00
|
|
|
- type: status
|
|
|
|
status:
|
2021-07-23 19:09:30 +00:00
|
|
|
- 200
|
|
|
|
|
|
|
|
- type: word
|
|
|
|
part: header
|
|
|
|
words:
|
|
|
|
- "text/html"
|
|
|
|
negative: true
|