2022-07-10 00:34:21 +00:00
|
|
|
id: secret-token-rb
|
|
|
|
|
|
|
|
info:
|
2022-07-12 14:36:38 +00:00
|
|
|
name: Secret Token Ruby - File Disclosure
|
2022-07-10 00:34:21 +00:00
|
|
|
author: DhiyaneshDK
|
|
|
|
severity: medium
|
2024-01-02 16:16:15 +00:00
|
|
|
description: Ruby Secret token is exposed.
|
2022-07-10 00:34:21 +00:00
|
|
|
metadata:
|
|
|
|
verified: true
|
2023-10-14 11:27:55 +00:00
|
|
|
max-request: 3
|
2022-07-10 00:34:21 +00:00
|
|
|
google-query: intitle:"index of" "secret_token.rb"
|
2022-10-13 10:12:07 +00:00
|
|
|
tags: redmine,devops,exposure,ruby,files
|
2022-07-10 00:34:21 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2022-07-10 00:34:21 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/secret_token.rb"
|
|
|
|
- "{{BaseURL}}/config/initializers/secret_token.rb"
|
2023-02-06 13:27:28 +00:00
|
|
|
- "{{BaseURL}}/redmine/config/initializers/secret_token.rb"
|
2022-07-10 00:34:21 +00:00
|
|
|
|
|
|
|
stop-at-first-match: true
|
2023-10-14 11:27:55 +00:00
|
|
|
|
2022-07-10 00:34:21 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
2022-07-12 14:36:38 +00:00
|
|
|
- '::Application.config.secret'
|
2022-07-10 00:34:21 +00:00
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
2024-01-15 11:49:24 +00:00
|
|
|
# digest: 4a0a00473045022025f5b925939cc1d42f8dc9b01ec2186c4e34e8e972e35116f3b9070227a351f6022100bf75273944ae4353ebd22e9fe8bfc3fa3182d098162dc13e02c7ade088516ec3:922c64590222798bb761d5b6d8e72950
|