id: idea-logs-exposure

info:
  name: Public .idea Folder containing http logs
  author: martincodes-de
  severity: info
  description: Searches for .idea Folder for http-requests-log.http and http-client.cookies file
  metadata:
    max-request: 2
  tags: phpstorm,jetbrains,idea,exposure,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/.idea/httpRequests/http-requests-log.http"
      - "{{BaseURL}}/.idea/httpRequests/http-client.cookies"

    matchers-condition: or
    matchers:
      - type: regex
        regex:
          - '(?m)^(GET|POST) https?:\/\/'
        part: body

      - type: word
        words:
          - "# domain\tpath\tname\tvalue\tdate"
        part: body
# digest: 4a0a004730450220414cc8f6e3a43d946ad2f54acbe1b76849eca4d718895b1f70664955bd8b425c022100d825ea8cd6f31804f6e980cdf7c6ac03e6f4ddb34b2897da1e69a1114266f002:922c64590222798bb761d5b6d8e72950