id: lighttpd-config-file

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

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'server.document-root ='
          - 'server.port ='
        condition: and
        case-insensitive: true

      - type: word
        part: content_type
        words:
          - 'application/octet-stream'
# digest: 4a0a00473045022016cfca9dee94c6f2d9efee556f1054cd156629bf24b915c7300b897023b1a9f40221009f357f9648824d98ee67bfe2b45dffa4e3fa3ca6439cbcb02c14ad915214deee:922c64590222798bb761d5b6d8e72950