2024-05-14 07:12:50 +00:00
|
|
|
id: imgproxy-unauth
|
|
|
|
|
2024-06-07 10:04:29 +00:00
|
|
|
info:
|
|
|
|
name: Imgproxy Unauthorized Access
|
|
|
|
author: userdehghani
|
|
|
|
severity: low
|
|
|
|
description: |
|
|
|
|
imgproxy is a fast and secure standalone server for resizing, processing, and converting images.
|
|
|
|
remediation: set IMGPROXY_SECRET environment variable.
|
|
|
|
reference:
|
|
|
|
- https://docs.imgproxy.net/configuration/options
|
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
|
|
|
|
cvss-score: 7.5
|
|
|
|
metadata:
|
|
|
|
verified: true
|
|
|
|
max-request: 1
|
|
|
|
shodan-query: html:"imgproxy"
|
|
|
|
tags: imgproxy,unauth,misconfig
|
2024-05-14 07:12:50 +00:00
|
|
|
variables:
|
|
|
|
img_url: 'https://upload.wikimedia.org/wikipedia/commons/thumb/2/2f/Google_2015_logo.svg/375px-Google_2015_logo.svg.png'
|
|
|
|
|
|
|
|
http:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/_/resize:fill:10:10:0/gravity:sm/plain/{{img_url}}"
|
|
|
|
|
|
|
|
matchers:
|
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- 'status_code==200'
|
2024-05-14 09:23:41 +00:00
|
|
|
- 'contains(content_type, "image/png")'
|
2024-05-14 07:12:50 +00:00
|
|
|
- '("386116288" == mmh3(base64_py(body)))'
|
2024-09-04 15:35:24 +00:00
|
|
|
condition: and
|
|
|
|
# digest: 4a0a004730450220704b225b4fa66229e20740798a9b41e07fe8dc7a66a7736b1e8a2c20ef5faae4022100fa98fdc074f11ca23a3cf61b816649a344000d34ee9e08490fca6f6969d1b0f0:922c64590222798bb761d5b6d8e72950
|