Skip to content

Environment Ruby File Disclosure

ID: environment-rb

Severity: medium

Author: DhiyaneshDK

Tags: ruby,devops,exposure,files

Ruby environment file is exposed.

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: 4a0a0047304502210084d648fabc0bcffc8a80c73c5c6f7bc68edcc61e56775f0f029a07c4783afac402202b13ae72ae6a5e91fdb1fbde4db070e0e2b07eb0bdb51481622673c31291b11c:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/exposures/files/environment-rb.yaml"

View on Github