35 lines
839 B
YAML
35 lines
839 B
YAML
id: rails-database-config
|
|
|
|
info:
|
|
name: Ruby on Rails Database Configuration File - Detect
|
|
author: pdteam,geeknik
|
|
severity: medium
|
|
classification:
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
|
|
cvss-score: 5.3
|
|
cwe-id: CWE-200
|
|
description: Ruby on Rails database configuration file was detected, which may contain database credentials.
|
|
reference: https://guides.rubyonrails.org/configuring.html#configuring-a-database
|
|
tags: config,exposure,rails
|
|
|
|
requests:
|
|
- 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
|
|
|
|
# Enhanced by cs on 2023/03/02
|