47 lines
1009 B
YAML
47 lines
1009 B
YAML
id: ruby-secrets-file
|
|
|
|
info:
|
|
name: Ruby on Rails secrets.yml File Exposure
|
|
author: DhiyaneshDK
|
|
severity: high
|
|
reference: https://www.exploit-db.com/ghdb/6283
|
|
metadata:
|
|
max-request: 4
|
|
verified: true
|
|
google-query: intitle:"index of" "secrets.yml"
|
|
tags: cloud,devops,files,exposure,misconfig
|
|
|
|
http:
|
|
- 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
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: regex
|
|
regex:
|
|
- 'secret_key_base: ([a-z0-9]+)'
|
|
|
|
- type: word
|
|
part: header
|
|
words:
|
|
- "application/json"
|
|
- "text/html"
|
|
negative: true
|
|
condition: and
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
extractors:
|
|
- type: regex
|
|
part: body
|
|
group: 1
|
|
regex:
|
|
- 'secret_key_base: ([a-z0-9]+)'
|