2021-07-21 05:43:50 +00:00
|
|
|
id: dockerfile-hidden-disclosure
|
|
|
|
|
|
|
|
info:
|
2023-02-09 19:52:16 +00:00
|
|
|
name: Dockerfile - Detect
|
2021-07-21 05:43:50 +00:00
|
|
|
author: dhiyaneshDk
|
|
|
|
severity: medium
|
2023-02-09 19:52:16 +00:00
|
|
|
description: Dockerfile was detected.
|
2022-04-22 10:38:41 +00:00
|
|
|
reference:
|
|
|
|
- https://github.com/detectify/ugly-duckling/blob/master/modules/crowdsourced/dockerfile-hidden-disclosure.json
|
2023-02-09 19:52:16 +00:00
|
|
|
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
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
2024-01-29 11:58:34 +00:00
|
|
|
max-request: 3
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: exposure,config
|
2021-07-21 05:43:50 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-07-21 05:43:50 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/.dockerfile"
|
|
|
|
- "{{BaseURL}}/.Dockerfile"
|
2024-01-04 07:04:42 +00:00
|
|
|
- "{{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"
|
2023-02-09 19:52:16 +00:00
|
|
|
negative: true
|
2024-01-29 12:41:50 +00:00
|
|
|
# digest: 490a0046304402206a1fc8ae759cd609d554926537eb6e5e8e83ec76b36185891db13b77dd006201022055a7fddf729e17ce72f1d18b10dd3436dc615c152fa95c8ea8adf0b340226d1f:922c64590222798bb761d5b6d8e72950
|