36 lines
967 B
YAML
36 lines
967 B
YAML
id: environment-rb
|
|
|
|
info:
|
|
name: Environment Ruby File Disclosure
|
|
author: DhiyaneshDK
|
|
severity: medium
|
|
description: Ruby environment file is exposed.
|
|
classification:
|
|
cpe: cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*
|
|
metadata:
|
|
verified: true
|
|
max-request: 3
|
|
vendor: ruby-lang
|
|
product: ruby
|
|
google-query: intitle:"index of" "environment.rb"
|
|
tags: ruby,devops,exposure,files
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}/environment.rb"
|
|
- "{{BaseURL}}/config/environment.rb"
|
|
- "{{BaseURL}}/redmine/config/environment.rb"
|
|
|
|
stop-at-first-match: true
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- '# Load the Rails application.'
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
# digest: 490a0046304402200cf7157eca33c19deaa821f92e5373456d04238aa8bd948575548186a499b917022014feef6ec9a635d0d3907ae39fcdb683e792ce524ed976e0a885f1e1739f3e2a:922c64590222798bb761d5b6d8e72950 |