id: desktop-ini-exposure

info:
  name: desktop.ini exposure
  author: dhiyaneshDk
  severity: info
  metadata:
    max-request: 1
    shodan-query: 'html:"desktop.ini"'
  tags: exposure,config,files

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

    matchers-condition: and
    matchers:
      - type: word
        part: header
        negative: true
        words:
          - "application/json"
          - "application/html"
        condition: and

      - type: word
        part: body
        words:
          - "[.ShellClassInfo]"
          - "[LocalizedFileNames]"
          - "[ViewState]"
        condition: or

      - type: status
        status:
          - 200

# digest: 490a00463044022036a55deb54ef623fe6c4a515d2d69333527fc201529262bc908cb9931619e31702201ec4c4eba70bf92420cc573aab9891b85fde24a9ff8a2716c17bc8d06e8ea46c:922c64590222798bb761d5b6d8e72950
