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

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