Descrizione
The Video & Photo Gallery for Ultimate Member plugin for WordPress is vulnerable to Arbitrary File Deletion in versions up to, and including, 1.1.4 This is due to the um_gallery_add_videos() AJAX handler persisting user-supplied videos[] values into the file_name column after only esc_url() — which preserves path-traversal sequences — and the companion um_gallery_delete_photo() helper passing that stored value to unlink() through get_user_image_path() with no canonicalization or allowed-directory check. This makes it possible for authenticated attackers, with Subscriber-level access and above, to delete arbitrary files on the server, which can be leveraged to achieve remote code execution when the right file (such as wp-config.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.1, EPSS 1.4% (percentile 73).
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:
- Filtrare le sequenze di path traversal sul reverse proxy/WAF ed eseguire il servizio con permessi minimi sul filesystem.
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/gallery-for-ultimate-member/tags/1.1.4/includes/um-gallery-ajax.php#L222
- Riferimentohttps://plugins.trac.wordpress.org/browser/gallery-for-ultimate-member/tags/1.1.4/includes/um-gallery-ajax.php#L589
- Riferimentohttps://plugins.trac.wordpress.org/browser/gallery-for-ultimate-member/tags/1.1.4/includes/um-gallery-functions.php#L528
- Riferimentohttps://plugins.trac.wordpress.org/changeset/3806302/gallery-for-ultimate-member
- Riferimentohttps://plugins.trac.wordpress.org/changeset/3806302/gallery-for-ultimate-member/trunk/includes/um-gallery-functions.php
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/0b9fbf80-f0c9-4c7c-9681-59c33d7898b2?source=cve