id: dependency-track-api

info:
  name: Dependency Track API Key
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/dependency_track.yml
    - https://docs.dependencytrack.org/integrations/rest-api/
    - https://docs.dependencytrack.org/getting-started/configuration/
  classification:
    cwe-id: CWE-522,CWE-540
  metadata:
    verified: true
    max-request: 1
  tags: dependency,exposure,tokens,vuln

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

    extractors:
      - type: regex
        part: body
        regex:
          - \b(odt_[A-Za-z0-9]{32,255})\b
# digest: 4a0a00473045022100f9ad7a5ccd7469bfba923e31f6c0aef605d7a9e46cd53f8204039674bca61718022044fede9d353831727ab45c69cf8abe35c4fa54b0b9c8a3c4694d9485efd94d02:922c64590222798bb761d5b6d8e72950