id: editor-exposure

info:
  name: Editor Configuration File - Detect
  author: DhiyaneshDk,daffainfo
  severity: low
  description: Editor configuration file was detected.
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"editorconfig"
  tags: config,exposure,vuln

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "= true"
          - "indent_style"
        condition: and

      - type: word
        part: header
        words:
          - "application/json"
          - "text/html"
        negative: true
        condition: or

      - type: status
        status:
          - 200
# digest: 4a0a00473045022004397cbe61dc089cba520a670afe7777ddcdc97ef2fa38dbfdfe5ff9cae6d012022100a0fc42274bd5df6ec4ba2283b56fcf0eea469f73ebd6aa6c9fc9a023ad62ae57:922c64590222798bb761d5b6d8e72950