id: cloudflare-external-image-resize

info:
  name: Cloudflare External Image Resizing Misconfiguration
  author: vavkamil
  severity: info
  description: Cloudflare Image Resizing defaults to restricting resizing to the same domain. This prevents third parties from resizing any image at any origin. However, you can enable this option if you check Resize images from any origin.
  reference:
    - https://support.cloudflare.com/hc/en-us/articles/360028146432-Understanding-Cloudflare-Image-Resizing#12345684
  metadata:
    max-request: 1
  tags: cloudflare,misconfig,oast

http:
  - raw:
      - |
        GET /cdn-cgi/image/width/https://{{interactsh-url}} HTTP/1.1
        Host: {{Hostname}}
        Accept: */*

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