id: pypi-upload-token

info:
  name: PyPI Upload Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/data/default/rules/pypi.yml
    - https://github.com/pypa/warehouse/issues/6051
    - https://pypi.org/project/pypitoken/
  metadata:
    verified: true
    max-request: 1
  tags: pypi,token,exposure

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

    extractors:
      - type: regex
        part: body
        regex:
          - "(pypi-AgEIcHlwaS5vcmc[a-zA-Z0-9_-]{50,})"
# digest: 490a0046304402204832bceff4d25084aa5538e9010ec8c8af61b02225e133a76aa05c18d7a6466202200e079086621a8a92a4e6b0bf98fcb8c2f3945f3026fdc38dbf9ddf8414501561:922c64590222798bb761d5b6d8e72950