30 lines
1.1 KiB
YAML
30 lines
1.1 KiB
YAML
id: truenas-api-key
|
|
|
|
info:
|
|
name: TrueNAS API Key (WebSocket)
|
|
author: DhiyaneshDK
|
|
severity: info
|
|
reference:
|
|
- https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/truenas.yml
|
|
- https://www.truenas.com/docs/api/core_websocket_api.html
|
|
- https://www.truenas.com/docs/api/scale_rest_api.html
|
|
- https://www.truenas.com/docs/scale/scaletutorials/toptoolbar/managingapikeys/
|
|
- https://www.truenas.com/docs/scale/scaleclireference/auth/cliapikey/
|
|
- https://www.truenas.com/docs/scale/api/
|
|
- https://www.truenas.com/community/threads/api-examples-in-perl-python.108053/
|
|
metadata:
|
|
verified: true
|
|
max-request: 1
|
|
tags: truenas,exposure,tokens
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}"
|
|
|
|
extractors:
|
|
- type: regex
|
|
part: body
|
|
regex:
|
|
- '"params"\s*:\s*\[\s*"(\d+-[a-zA-Z0-9]{64})"\s*\]'
|
|
# digest: 4a0a00473045022100e1eaeca8edf2ccf53d0f92d393a93529048054f51bcf33bac18b801b56b61ca302201a8a744ad2f2092d6326b0823c0b950d4431d338cd0e9f4dd259b1d18fc6388c:922c64590222798bb761d5b6d8e72950 |