Merge pull request #9792 from userdehghani/patch-0019

Add imgproxy-unauth.yaml
patch-2
Ritik Chaddha 2024-05-21 14:38:45 +05:30 committed by GitHub
commit cc4c614bee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,35 @@
id: imgproxy-unauth
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
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'
- 'contains(content_type, "image/png")'
- '("386116288" == mmh3(base64_py(body)))'
condition: and