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

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