id: atlassian-token

info:
  name: Atlassian API Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/atlassian-api-token.yaml
    - https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/atlassian-api-token.go
  metadata:
    verified: true
    max-request: 1
  tags: atlassian,exposure,tokens

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)(?:atlassian|confluence|jira)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}([a-z0-9]{24})(?:['|\"|\n|\r|\s|\x60|;]|$)

# digest: 4a0a0047304502210095bc509a8fba58839bc992260f757066e1e62a882791ec5b92e9e57a7e55bca3022023252706e3018958e7ff842b713877c85e472a1f73d2e366a72924143ab70219:922c64590222798bb761d5b6d8e72950
