GHSA-F6GF-R952-RXG6
Control panel only blind SQL injection through "getNext"/"getPrev" criteria
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-F6GF-R952-RXG6 divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Craft lets any authenticated control panel user execute SQL expressions, with the Twig sandbox enabled.
The relational-condition request path deliberately renders the attacker’s elementIds value as a sandboxed object template. The reference element exposes `getNext()` and `getPrev()` to that sandbox through `AllowedInSandbox`. Those methods accept an arbitrary criteria array and pass it to `Craft::configure()` after only `ComponentHelper::cleanseConfig()`. That helper removes event/behavior keys, but does not remove SQL-bearing element-query properties such as `orderBy`, `where`, `having`, `join`, or `select`. A value containing an opening parenthesis is preserved as a raw order expression by Yii, then executed when the relative-element query calls `ids()`.
Impact
The primitive gives any control panel user a reliable conditional SQL oracle under the Craft database account.
Report ID: 1898
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistcraftcms/cms |
Corregida | 4.18.9, 5.11.2 | — | — |
4.18.95.11.2Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/craftcms/cms/security/advisories/GHSA-f6gf-r952-rxg6Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
