Descrizione
The Masteriyo LMS – LMS Course Builder, Quizzes & Certificates plugin for WordPress is vulnerable to PHP Object Injection in versions up to, and including, 3.5.1 via deserialization of untrusted input in the course importer. The set_post_metas() method calls maybe_unserialize() on attacker-controlled postmeta string values parsed from the uploaded JSON import file. This makes it possible for unauthenticated attackers to inject arbitrary PHP Objects. Exploitation by unauthenticated attackers requires that the site has enable_instructor_registration=true AND enable_guest_checkout=true AND at least one purchasable course exists. Install.php sets enable_instructor_registration=false on fresh installs, so this is a non-default configuration. On a default installation, where that is not configured, the vulnerability requires attackers with author-level access and above.
Come correggere
Priorità: Alta — pianificare la correzione entro pochi giorni. Motivazione: CVSS 9.8, EPSS 0.6% (percentile 48).
Versioni da aggiornare
- masteriyo Masteriyo LMS – LMS Course Builder, Quizzes & Certificates: vulnerabili le versioni fino alla
3.5.1inclusa → aggiornare a una release successiva alla3.5.1.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Bloccare l'accesso esterno agli endpoint che ricevono oggetti serializzati e, se supportato, abilitare una allowlist delle classi deserializzabili.
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.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| masteriyo | Masteriyo LMS – LMS Course Builder, Quizzes & Certificates | ≤ 3.5.1 | — |
Riferimenti
- Riferimentohttps://plugins.trac.wordpress.org/browser/learning-management-system/tags/3.5.1/includes/Checkout.php#L396
- Riferimentohttps://plugins.trac.wordpress.org/browser/learning-management-system/tags/3.5.1/includes/Importer/CourseImporter.php#L288
- Riferimentohttps://plugins.trac.wordpress.org/browser/learning-management-system/tags/3.5.1/includes/RestApi/Controllers/Version1/CoursesImportExportController.php#L210
- Riferimentohttps://plugins.trac.wordpress.org/browser/learning-management-system/tags/3.5.1/includes/RestApi/Controllers/Version1/CoursesImportExportController.php#L568
- Riferimentohttps://plugins.trac.wordpress.org/browser/learning-management-system/tags/3.5.1/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php#L45
- Riferimentohttps://plugins.trac.wordpress.org/browser/learning-management-system/tags/3.5.2
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/d3aca4ff-b921-489d-9fc0-9bbecb19c8f5?source=cve