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

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: 490a004630440220170a05efdb7f9c6a4c4259e308d343b030d4e74df944b2d4f5a730d60375b6e4022042674d5195b1dcfd1a3a4a0115ccc583cf22c57374fe6d78aa25c8f493d81cd5:922c64590222798bb761d5b6d8e72950