llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Packagist · redaxo/source

GHSA-M8R3-22V6-G877

REDAXO: Missing CSRF Protection on Package Update Action Allows Forced Addon Updates

Parche disponible
Descargar PNG JSON
CVSS
—
medium
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versión5.21.2
Exposición57 dDesde la divulgación, 23 sept 2026, 9:09 a. m.
Detección54 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +1
Explotación
Remediación
Monitoreo
Detectada
23 sept 26
17 nov 26
19 nov 26
23 sept 26
7 oct 26
22 oct 26
5 nov 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-M8R3-22V6-G877 divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

### Summary
The `rex_api_install_package_update` API function (`install` addon) does not override `requiresCsrfProtection()`, which defaults to `false` in the base class `rex_api_function`. Any authenticated admin can therefore be tricked via a CSRF attack into silently triggering a package update from the REDAXO package server.

### Details
File: `redaxo/src/core/lib/api_function.php:277-280`

protected function requiresCsrfProtection()
{
    return false;  // DEFAULT — subclasses must opt in
}

File: `redaxo/src/addons/install/lib/api/api_package_update.php:8-39`

class rex_api_install_package_update extends rex_api_function
{
    public function execute()
    {
        if (!rex::getUser()?->isAdmin()) {
            throw new rex_api_exception('You do not have the permission!');
        }
        $addonkey = rex_request('addonkey', 'string');
        $fileId = rex_request('file', 'int');
        $installer = new rex_install_package_update();
        // ... downloads and installs $addonkey version $fileId from redaxo.org
    }
    // requiresCsrfProtection() NOT overridden — defaults to false
}

For comparison, `rex_api_install_package_add` and `rex_api_install_package_delete` both correctly return `true`. Only `rex_api_install_package_update` is missing this.

PoC
<!-- Attacker-controlled page -->
<img src="https://victim-redaxo.example.com/index.php?page=install/packages&rex-api-call=install_package_update&addonkey=some_addon&file=42" />

When an authenticated admin visits this page, the request is automatically made with their session cookie, causing `some_addon` to be updated to version `file_id=42`.

### Impact
An attacker who can lure an admin to a malicious page can force-install specific addon versions. If combined with a supply-chain compromise of a package on redaxo.org, or by targeting a downgrade to a known-vulnerable version, this becomes a remote code execution vector. Even without supply-chain compromise, it can be used to disrupt the site by forcing unwanted updates.

### Fix
Add `requiresCsrfProtection()` to `rex_api_install_package_update`:

protected function requiresCsrfProtection()
{
    return true;
}

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Versiones

Rangos afectados

Afectada Corregida
redaxo/source< 5.21.2
5.21.2
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Packagistredaxo/source
Corregida 5.21.2 — —
Versiones corregidas5.21.2
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Otrahttps://github.com/redaxo/core/security/advisories/GHSA-m8r3-22v6-g877
Otrahttps://github.com/redaxo/core/pull/6579
Otrahttps://github.com/redaxo/core/commit/a13abbffbad4fdea46a4edc86cdba3335ca9e8f3
Otrahttps://github.com/redaxo/core
Otrahttps://github.com/redaxo/core/releases/tag/5.21.2

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.