Skip to content

Secret Token Ruby - File Disclosure

ID: secret-token-rb

Severity: medium

Author: DhiyaneshDK

Tags: redmine,devops,exposure,ruby,files

Ruby Secret token is exposed.

id: secret-token-rb
info:
name: Secret Token Ruby - File Disclosure
author: DhiyaneshDK
severity: medium
description: Ruby Secret token is exposed.
classification:
cpe: cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 3
vendor: rubyonrails
product: rails
google-query: intitle:"index of" "secret_token.rb"
tags: redmine,devops,exposure,ruby,files
http:
- method: GET
path:
- "{{BaseURL}}/secret_token.rb"
- "{{BaseURL}}/config/initializers/secret_token.rb"
- "{{BaseURL}}/redmine/config/initializers/secret_token.rb"
stop-at-first-match: true
matchers-condition: and
matchers:
- type: word
words:
- '::Application.config.secret'
- type: status
status:
- 200
# digest: 4a0a00473045022100a22b6b2c89d4a58580af0feafd996e91ebcc5b57feddd77cd11e715c636b718402201583ca1e862c451c918bbd42c62ce3fdbc253c5de23270a1b86687205d3f0132: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/secret-token-rb.yaml"

View on Github