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

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: 490a004630440220648c840ad3e3655b529310cb55dec25f386ac1263ec1d4574ba3341c4e641d8602200e142f8f1584511ea04d49f523baee10241cd25067be7ffe8b90e8155f8ba379:922c64590222798bb761d5b6d8e72950