2021-01-10 13:11:25 +00:00
|
|
|
id: rails-database-config
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Ruby-on-Rails Database Configuration Exposure
|
2021-06-09 12:20:56 +00:00
|
|
|
author: pdteam,geeknik
|
2021-01-10 13:11:25 +00:00
|
|
|
severity: low
|
2021-06-06 08:44:01 +00:00
|
|
|
tags: config,exposure,rails
|
2021-01-10 13:11:25 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/config/database.yml"
|
2021-06-05 12:50:49 +00:00
|
|
|
|
2021-06-06 12:14:27 +00:00
|
|
|
matchers-condition: and
|
2021-01-10 13:11:25 +00:00
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "adapter:"
|
|
|
|
- "database:"
|
2021-06-06 08:44:01 +00:00
|
|
|
- "production:"
|
2021-01-10 13:11:25 +00:00
|
|
|
condition: and
|
2021-06-05 12:50:49 +00:00
|
|
|
part: body
|
2021-06-06 08:44:01 +00:00
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|