2021-01-10 13:11:25 +00:00
|
|
|
id: rails-database-config
|
|
|
|
|
|
|
|
info:
|
2023-02-23 19:39:52 +00:00
|
|
|
name: Ruby on Rails Database Configuration File - Detect
|
2021-06-09 12:20:56 +00:00
|
|
|
author: pdteam,geeknik
|
2023-03-02 20:58:29 +00:00
|
|
|
severity: high
|
2023-10-14 11:27:55 +00:00
|
|
|
description: Ruby on Rails database configuration file was detected, which may contain database credentials.
|
|
|
|
reference: https://guides.rubyonrails.org/configuring.html#configuring-a-database
|
2023-03-02 19:47:05 +00:00
|
|
|
classification:
|
2023-03-02 20:58:29 +00:00
|
|
|
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
|
2023-03-02 19:47:05 +00:00
|
|
|
cwe-id: CWE-200
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: config,exposure,rails
|
2021-01-10 13:11:25 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-01-10 13:11:25 +00:00
|
|
|
- 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:
|
2023-02-23 19:39:52 +00:00
|
|
|
- 200
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 4a0a004730450220142d0414e1baf9da84424fc46109f4dad05dfb4a7c4c64bab69574ef8d5b1f22022100a592cb92bf76c94906ec3c761fc108c59033f75c531da1d45ee681b9030fe804:922c64590222798bb761d5b6d8e72950
|