id: figma-personal-token

info:
  name: Figma Personal Access Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/rules/figma.yml
    - https://www.figma.com/developers/api
    - https://www.figma.com/developers/api#access-tokens
  metadata:
    verified: true
    max-request: 1
  tags: figma,exposure,token

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)figma.{0,20}\b([0-9a-f]{4}-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\b
# digest: 4b0a00483046022100faf2034b74e04bf56d854f811d97aad47eea264dff16a24d70b9daca5a10b912022100f4023c15c8e39655df9990ba237405ee5f86fde5a1fa29763911f408fb347646:922c64590222798bb761d5b6d8e72950