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

49 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
2024-01-02 16:16:15 +00:00
description: Ruby on Rails internal secret file is exposed.
2022-07-04 19:09:01 +00:00
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: 4a0a004730450221008f3c78e37d6034c88fc8a231da592e10d3f0dd3cffc406c8f8ce4b3bb86ccf7802201eb77dae641b3f6691653ae35bfe9c03af2cc9716703b1d9288c516869363fbb:922c64590222798bb761d5b6d8e72950