Descrizione
The Toocheke Companion plugin for WordPress is vulnerable to Missing Authorization leading to arbitrary post and attachment deletion in versions up to, and including, 2.38. This is due to a missing object-level capability check in the toocheke_tapas_ajax_cleanup_start() and toocheke_tapas_ajax_cleanup_step() AJAX handlers; the toocheke_tapas_cleanup_ajax_guard() method only verifies the primitive delete_posts capability (held by every Contributor) and never calls current_user_can('delete_post', $post_id) or delete_others_posts before passing the attacker-supplied series_post_id to wp_delete_post() and wp_delete_attachment() with force-delete enabled. The required nonce is emitted on the Import: Tapas admin page, which is gated only by edit_posts, so a Contributor can read it. This makes it possible for authenticated attackers, with Contributor-level access and above, to permanently delete any importer-created series post, every child 'comic' post attached to it, and every Media Library attachment belonging to those posts — regardless of which user originally created them.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.1, EPSS 0.6% (percentile 48).
Versioni da aggiornare
Il record non riporta ancora i prodotti e le versioni corrette (analisi NVD in corso). Consultare l'advisory del vendor nei riferimenti.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Restringere l'accesso al componente, applicare il principio del minimo privilegio e controllare i log per operazioni non autorizzate.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Riferimenti
- Riferimentohttps://plugins.trac.wordpress.org/browser/toocheke-companion/tags/2.37/inc/class-toocheke-companion-import-tapas.php#L558
- Riferimentohttps://plugins.trac.wordpress.org/browser/toocheke-companion/tags/2.37/inc/class-toocheke-companion-import-tapas.php#L604
- Riferimentohttps://plugins.trac.wordpress.org/browser/toocheke-companion/tags/2.37/inc/class-toocheke-companion-import-tapas.php#L674
- Riferimentohttps://plugins.trac.wordpress.org/browser/toocheke-companion/tags/2.37/inc/class-toocheke-companion-import-tapas.php#L679
- Riferimentohttps://plugins.trac.wordpress.org/browser/toocheke-companion/tags/2.37/inc/class-toocheke-companion-import-tapas.php#L693
- Riferimentohttps://plugins.trac.wordpress.org/changeset?reponame=&old=3811834%40toocheke-companion&new=3811834%40toocheke-companion
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/545eee3c-608a-4275-b533-c67e420baeb3?source=cve