← volver
CVE-2024-38475

Apache HTTP Server weakness in mod_rewrite when first segment of substitution matches filesystem path.

CVSS 9.1 CRITICALEPSS 100.0%● KEVCWE-116
En resumen

El módulo mod_rewrite del Apache HTTP Server no escapa correctamente las URLs reescritas cuando la primera parte de una regla utiliza variables o referencias anteriores, permitiendo a atacantes acceder a archivos que no deberían estar disponibles públicamente. Esto puede resultar en ejecución de código malicioso o exposición del código fuente.

Detalle técnico

Una falla en el escape de salida (CWE-116) del mod_rewrite en Apache 2.4.59 y anteriores permite eludir restricciones de acceso cuando las reglas de sustitución comienzan con variables o backreferences en contexto de servidor. Un atacante puede enviar solicitudes que coincidan con el patrón de reescrita para acceder a ubicaciones arbitrarias del sistema de archivos, resultando en ejecución remota de código o divulgación de información.

Resumen generado y traducido por IA a partir de la descripción oficial.
Improper escaping of output in mod_rewrite in Apache HTTP Server 2.4.59 and earlier allows an attacker to map URLs to filesystem locations that are permitted to be served by the server but are not intentionally/directly reachable by any URL, resulting in code execution or source code disclosure. Substitutions in server context that use a backreferences or variables as the first segment of the substitution are affected.  Some unsafe RewiteRules will be broken by this change and the rewrite flag "UnsafePrefixStat" can be used to opt back in once ensuring the substitution is appropriately constrained.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
⚠ Recursos públicos, para evaluar la exposición de sistemas que controlas o estás autorizado a probar. Prueba solo con autorización.

¿Quieres saber si tu infraestructura está expuesta a esto?

Hablar con TrueHacking →