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