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