Create ruby-on-rails-secret-token-disclosure.yaml

patch-1
Dhiyaneshwaran 2021-07-21 14:03:20 +05:30 committed by GitHub
parent 929250a6af
commit 733e98f1e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
id: ruby-on-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
tags: exposure,files
requests:
- method: GET
path:
- "{{BaseURL}}/config/initializers/secret_token.rb"
matchers-condition: and
matchers:
- type: word
words:
- "secret_key_base ="
- "config.secret_token ="
part: body
- type: status
status:
- 200