Descrizione
The Booking for Appointments and Events Calendar – Amelia Pro plugin for WordPress is vulnerable to time-based SQL Injection via the 'tag[] (array KEYS)' parameter in all versions up to, and including, 9.9.1 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. WordPress's wp_magic_quotes escapes array values but not array keys, meaning attacker-controlled tag[] array keys reach EventRepository::getFilteredIds() completely unescaped and can be crafted to defeat the plugin's Statement::execute placeholder binder via overlapping strtr() substitution keys.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.5, EPSS 0.4% (percentile 37).
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:
- Attivare regole WAF anti SQL injection, ridurre i privilegi dell'utente del database e monitorare query anomale.
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/ameliabooking/trunk/ameliabooking.php#L1337
- Riferimentohttps://plugins.trac.wordpress.org/browser/ameliabooking/trunk/src/Application/Commands/Booking/Event/GetEventsCommandHandler.php#L72
- Riferimentohttps://plugins.trac.wordpress.org/browser/ameliabooking/trunk/src/Application/Controller/Booking/Event/GetEventsController.php#L29
- Riferimentohttps://plugins.trac.wordpress.org/browser/ameliabooking/trunk/src/Infrastructure/DB/WPDB/Statement.php#L101
- Riferimentohttps://plugins.trac.wordpress.org/browser/ameliabooking/trunk/src/Infrastructure/Repository/Booking/Event/EventRepository.php#L520
- Riferimentohttps://wpamelia.com/documentation/changelog/
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/31a12180-b51b-4d36-ac4f-f35243c5d770?source=cve