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: 4b0a0048304602210090e0e159b5d78baff499421d7153fec05e654f1b1f99ac4cbec0c8853bec4ee6022100d7ac52434078749dfbf85af4bb16d2ddc04b3c2cf89c6074b64032a82d1dd376:922c64590222798bb761d5b6d8e72950