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