37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
id: rails-database-config
|
|
|
|
info:
|
|
name: Ruby on Rails Database Configuration File - Detect
|
|
author: pdteam,geeknik
|
|
severity: high
|
|
description: Ruby on Rails database configuration file was detected, which may contain database credentials.
|
|
reference: https://guides.rubyonrails.org/configuring.html#configuring-a-database
|
|
classification:
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
|
|
cvss-score: 7.5
|
|
cwe-id: CWE-200
|
|
metadata:
|
|
max-request: 1
|
|
tags: config,exposure,rails
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}/config/database.yml"
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- "adapter:"
|
|
- "database:"
|
|
- "production:"
|
|
condition: and
|
|
part: body
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
# digest: 4a0a004730450220142d0414e1baf9da84424fc46109f4dad05dfb4a7c4c64bab69574ef8d5b1f22022100a592cb92bf76c94906ec3c761fc108c59033f75c531da1d45ee681b9030fe804:922c64590222798bb761d5b6d8e72950
|