Descrizione
The User Frontend – Membership, User Registration, User Profile, User Directory & Content Restriction with Frontend Post Submission plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 4.3.14 via the `draft_post()` function. This is due to the function storing the `post_content` parameter via `wp_insert_post()` without the protected-shortcode allow-list check that was introduced in 4.3.14 for the sibling `submit_post()` handler — a gap that `wp_kses` filtering does not close, as it strips only HTML tags while leaving shortcode text such as `[wpuf-registration role="editor"]` intact. This makes it possible for authenticated attackers, with Author-level access and above, to embed a registration shortcode in a post and cause any site visitor who subsequently registers through the rendered form to receive Editor-level access. The render-time `wpuf_modify_shortcodes` filter that is designed to neutralize protected shortcodes provides no protection here because posts created via the `wpuf_draft_post` AJAX endpoint carry no `_edit_last` post meta, causing the filter to return the content unchanged and allowing the shortcode to render and execute fully.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 6.3, EPSS 0.3% (percentile 26).
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/wp-user-frontend/tags/4.3.14/includes/Frontend/Frontend_Form.php#L247
- Riferimentohttps://plugins.trac.wordpress.org/browser/wp-user-frontend/tags/4.3.14/includes/Frontend/Frontend_Form.php#L318
- Riferimentohttps://plugins.trac.wordpress.org/browser/wp-user-frontend/tags/4.3.14/includes/Frontend/Registration.php#L170
- Riferimentohttps://plugins.trac.wordpress.org/browser/wp-user-frontend/tags/4.3.14/wpuf-functions.php#L5634
- Riferimentohttps://plugins.trac.wordpress.org/changeset/3804840/wp-user-frontend/trunk/includes/Frontend/Frontend_Form.php
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/c747246a-8d3b-4b9f-866a-dece3628cd99?source=cve