nuclei-templates/http/exposures/files/secrets-file.yaml

50 lines
1.2 KiB
YAML
Raw Normal View History

2022-07-04 19:11:27 +00:00
id: ruby-secrets-file
2022-07-04 19:09:01 +00:00
info:
2022-07-04 19:11:27 +00:00
name: Ruby on Rails secrets.yml File Exposure
2022-07-04 19:09:01 +00:00
author: DhiyaneshDK
severity: high
reference: https://www.exploit-db.com/ghdb/6283
metadata:
2022-07-05 04:24:33 +00:00
verified: true
2023-10-14 11:27:55 +00:00
max-request: 4
google-query: intitle:"index of" "secrets.yml"
tags: cloud,devops,files,exposure,misconfig
2022-07-04 19:09:01 +00:00
http:
2022-07-04 19:09:01 +00:00
- method: GET
path:
- "{{BaseURL}}/secrets.yml"
- "{{BaseURL}}/config/secrets.yml"
- "{{BaseURL}}/test/config/secrets.yml"
- "{{BaseURL}}/redmine/config/secrets.yml"
stop-at-first-match: true
2023-10-14 11:27:55 +00:00
2022-07-04 19:09:01 +00:00
matchers-condition: and
matchers:
2022-07-05 04:07:53 +00:00
- type: regex
regex:
- 'secret_key_base: ([a-z0-9]+)'
2022-07-04 19:09:01 +00:00
- type: word
2022-07-05 04:07:53 +00:00
part: header
2022-07-04 19:09:01 +00:00
words:
2022-07-05 04:07:53 +00:00
- "application/json"
- "text/html"
negative: true
condition: and
2022-07-04 19:09:01 +00:00
- type: status
status:
- 200
2022-07-05 04:07:53 +00:00
extractors:
- type: regex
part: body
group: 1
regex:
- 'secret_key_base: ([a-z0-9]+)'
# digest: 4a0a0047304502204ef290ed70b84eb8ddb34735722127ff9cc5bafa0d66ca69098b6a0ca795b26f022100f4303f5ff8dda7ed6d6e3f2a111770cf5c2197e08ac6cb713a0da4542fa6c33c:922c64590222798bb761d5b6d8e72950