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/
  metadata:
    verified: true
    max-request: 1
  tags: dependency,exposure,tokens

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

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