id: pyproject-toml

info:
  name: pyproject.toml Configuration - Detect
  author: DhiyaneshDK
  severity: info
  description: pyproject.toml configuration was detected.
  reference: https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"pyproject.toml"
  tags: exposure,pyproject,pip,devops,cicd

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

    matchers-condition: or
    matchers:
      - type: word
        part: body
        words:
          - "[tool.black]"
          - "exclude ="
        condition: and

      - type: word
        part: body
        words:
          - "[tool.poetry]"
          - "name ="
        condition: and
# digest: 4a0a00473045022100c79e557be0f1ed863c6cd123ae0b3ce2c98824631fe48d7878f8c9b4dec371d0022008a76974a4a8e89c62d0ecc54cbae7ae4ba0e3fb21fc9bbda0d4eebd2e314842:922c64590222798bb761d5b6d8e72950