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/
    - https://thingsboard.io/docs/paas/user-guide/device-provisioning/
  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: 4a0a00473045022100d6dd383e5cda25ff9234d4a2df6c91764d0859d24d309dce19a74de34633f94402203c66fc4dc640dd664bba45fe8c8695f41e4ba4f10602858eb25d687296339da0:922c64590222798bb761d5b6d8e72950