id: gunicorn-config-file

info:
  name: Gunicorn Config File - File Disclosure
  author: DhiyaneshDk
  severity: low
  description: |
    Gunicorn Config file is exposed.
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"gunicorn.conf.py"
  tags: exposure,files,gunicorn,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/gunicorn.conf.py'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'bind ='
          - 'workers ='
        condition: and
        case-insensitive: true

      - type: word
        part: content_type
        words:
          - 'text/x-python'
# digest: 490a0046304402204fc342f2e8a2626dc76575605a673eb23423b85b13eacfe143e9bfc701deb46202207136abd6fa2460c293ab08aec32730fa3b5f39f172baf956d9ef6a47edde531f:922c64590222798bb761d5b6d8e72950