id: tox-ini

info:
  name: Tox Configuration File - Detect
  author: geeknik
  severity: info
  description: Tox configuration file was detected.
  reference:
    - https://tox.wiki/en/latest/config.html
  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:"tox.ini"
  tags: exposure,config,tox,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/tox.ini"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "[tox]"
          - "[testenv]"
        condition: and

      - type: word
        part: header
        words:
          - "application/octet-stream"

      - type: status
        status:
          - 200
# digest: 4a0a0047304502201c2ef9337287ddbd8e00eadee636c178c8663de761414f8dd27dccec56f55736022100b3ee7de3561d22835f28951d50e0bbf056060856082971aa592886591d881b2e:922c64590222798bb761d5b6d8e72950