id: pyproject-disclosure

info:
  name: Pyproject Disclosure
  author: dhiyaneshDk
  severity: info
  reference:
    - https://github.com/detectify/ugly-duckling/blob/master/modules/crowdsourced/pyproject-disclosure.json
  metadata:
    max-request: 1
  tags: exposure,files

http:
  - method: GET
    path:
      - "{{BaseURL}}/pyproject.toml"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "[build-system]"
          - "[tool.poetry]"
        part: body
        condition: and

      - type: status
        status:
          - 200

# digest: 490a0046304402204ac4a0463d7d0cad29e7ad6b05a7c7e6972558fbb9231fd27c0f222068344afa02206666691cde6df84fc91f5d3434080aa28d09c923a96290299a0b60d7b9bf6da2:922c64590222798bb761d5b6d8e72950
