Demi <= 0.0.6 - Unauthenticated Arbitrary Directory Deletion via demi_restore_step AJAX action
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: yes
- Technical impact: partial
Summary
The Demi – One Click Demo Import, WP Backup & Site Migration plugin for WordPress is vulnerable to Arbitrary Directory Deletion in all versions up to, and including, 0.0.7. The vulnerability exists because the plugin stores its HMAC signing key and per-step restore token as dotfiles inside a publicly accessible subdirectory of the WordPress uploads folder — without any `.htaccess` or index file protection — and the `demi_restore_step` AJAX handler, registered for unauthenticated callers, explicitly accepts possession of the on-disk signing key as a standalone alternative to WordPress capability and nonce checks; an unauthenticated attacker who retrieves the exposed key can forge a valid signed state envelope to invoke `CleanDir::execute()` with a caller-supplied absolute path that is subject to no allow-list or path-canonicalization check. This makes it possible for unauthenticated attackers to recursively delete arbitrary directories on the server.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: partial
- Record last updated
Affected versions
- deveasel Demi – One Click Demo Import, Backup & Site Migration
through 0.0.7
References 10
plugins.trac.wordpress.org
- browser/demi-backup-migration/trunk/classes/Backup/Tasks/CleanDir.php#L61
- browser/demi-backup-migration/trunk/classes/Import/Manager.php#L767
- browser/demi-backup-migration/trunk/classes/Import/Manager.php#L50
- browser/demi-backup-migration/trunk/classes/Import/Manager.php#L287
- browser/demi-backup-migration/tags/0.0.6/classes/Backup/Tasks/CleanDir.php#L61
- browser/demi-backup-migration/tags/0.0.6/classes/Import/Manager.php#L767
- browser/demi-backup-migration/tags/0.0.6/classes/Import/Manager.php#L50
- browser/demi-backup-migration/tags/0.0.6/classes/Import/Manager.php#L287
- changeset?reponame=&old=3616690%40demi-backup-migration&new=3616690%40demi-backup-migration