nuclei-templates/http/exposures/configs/rails-database-config.yaml

35 lines
833 B
YAML
Raw Normal View History

id: rails-database-config
info:
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
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
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
2021-06-06 08:44:01 +00:00
tags: config,exposure,rails
http:
- method: GET
path:
- "{{BaseURL}}/config/database.yml"
2021-06-06 12:14:27 +00:00
matchers-condition: and
matchers:
- type: word
words:
- "adapter:"
- "database:"
2021-06-06 08:44:01 +00:00
- "production:"
condition: and
part: body
2021-06-06 08:44:01 +00:00
- type: status
status:
- 200
# Enhanced by cs on 2023/03/02