32 lines
862 B
YAML
32 lines
862 B
YAML
id: rails-secret-token-disclosure
|
|
|
|
info:
|
|
name: Ruby on Rails Secret Token Disclosure
|
|
author: dhiyaneshDk
|
|
severity: medium
|
|
reference:
|
|
- https://github.com/detectify/ugly-duckling/blob/master/modules/crowdsourced/ruby-on-rails-secret-token-disclosure.json
|
|
metadata:
|
|
max-request: 1
|
|
tags: exposure,files,rails,ruby,token
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}/config/initializers/secret_token.rb"
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- "secret_key_base ="
|
|
- "config.secret_token ="
|
|
part: body
|
|
condition: and
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
# digest: 490a00463044022019fad1219afb790a7e75f74b0d440b376112ee237e1dfb5d86eb5b75f03a87c0022020a0873d7ee5e4bf7aaf83a949dfb750cebc464dc2dc158622d8f2255ef9495a:922c64590222798bb761d5b6d8e72950
|