2021-09-21 11:46:53 +00:00
|
|
|
id: rails-secret-token-disclosure
|
2021-07-21 08:33:20 +00:00
|
|
|
|
|
|
|
info:
|
|
|
|
name: Ruby on Rails Secret Token Disclosure
|
|
|
|
author: dhiyaneshDk
|
|
|
|
severity: medium
|
2024-01-02 16:16:15 +00:00
|
|
|
description: Ruby on Rals Secret Token file is exposed.
|
2022-04-22 10:38:41 +00:00
|
|
|
reference:
|
|
|
|
- https://github.com/detectify/ugly-duckling/blob/master/modules/crowdsourced/ruby-on-rails-secret-token-disclosure.json
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: exposure,files,rails,ruby,token
|
2021-07-21 08:33:20 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-07-21 08:33:20 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/config/initializers/secret_token.rb"
|
2022-10-13 10:12:07 +00:00
|
|
|
|
2021-07-21 08:33:20 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "secret_key_base ="
|
|
|
|
- "config.secret_token ="
|
|
|
|
part: body
|
2021-07-23 18:54:45 +00:00
|
|
|
condition: and
|
|
|
|
|
2021-07-21 08:33:20 +00:00
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
2024-01-15 11:49:24 +00:00
|
|
|
# digest: 490a004630440220264164d6e9f3b094caaf8923a3477584f9bf389e1969fc97dc4d8b52716bec96022073e4c657a0900d2466875ad2dcfea439352e7301d270d53213b25436a2c7d27c:922c64590222798bb761d5b6d8e72950
|