id: jetbrains-webservers

info:
  name: JetBrains WebServers File - Detect
  author: geeknik
  severity: info
  description: |
    JetBrains webservers file was detected. The file contains webserver credentials with encoded passwords.
  reference:
    - https://www.exploit-db.com/ghdb/6648
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 3
    google-query: intitle:"index of" "WebServers.xml"
  tags: jetbrains,config,edb,files,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/.idea/WebServers.xml"
      - "{{BaseURL}}/.idea/webServers.xml"
      - "{{BaseURL}}/.idea/webservers.xml"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<?xml"
          - "WebServers"
          - "</project>"
        condition: and

      - type: word
        part: header
        words:
          - "application/xml"
          - "text/xml"
        condition: or

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