id: thingsboard-access-token

info:
  name: ThingsBoard Access Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/thingsboard.yml
    - https://thingsboard.io/docs/paas/reference/http-api/
    - https://thingsboard.io/docs/paas/reference/coap-api/
  metadata:
    verified: true
    max-request: 1
  tags: thingsboard,exposure,tokens

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    extractors:
      - type: regex
        part: body
        regex:
          - thingsboard\.cloud/api/v1/([a-z0-9]{20})
# digest: 490a0046304402206bfd05889fa99c0d65b327105b86ce75383da5f91e36681a86dfd56249205b74022004aae4f88d65b8d000c1ce04e2907e63942a7dacebd0b8f0203fa0d3e58463c0:922c64590222798bb761d5b6d8e72950