GHSA-W52C-HHM5-GH3H
ReDoS in Appium package/bundle identifier validation
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-W52C-HHM5-GH3H divulgada · CVSS 6.5 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
A catastrophic-backtracking regular expression is used to validate package/bundle identifiers in Appium. The value is supplied by the client through session capabilities. A crafted value of only 91 bytes blocks Node's event loop for approximately 26 seconds on a cold server (~3 seconds once V8 has tiered up the regexp); longer values can block it for even longer.
The vulnerable pattern is:
/^([a-zA-Z0-9\-_]+\.[a-zA-Z0-9\-_]+)+$/Impact
The vulnerability only affects Appium drivers that use the `isPackageOrBundle` helper function provided by `@appium/base-driver`, which uses the aforementioned regex. This includes the following official drivers:
* `appium-espresso-driver`
* `appium-xcuitest-driver` (uses local copy of the regex)
Other official drivers such as `appium-uiautomator2-driver` are not affected.
Exploiting this vulnerability requires session creation privileges (e.g. if the server has CORS enabled). In such cases, a new session request can consume one CPU core for tens of seconds (cold) or several seconds (warm) and block all other sessions on the same Appium instance. Repeated requests can keep the server unavailable indefinitely.
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npm@appium/base-driver |
Sin parche | — | — | 10.8.3 no afectada |
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/appium/appium/security/advisories/GHSA-w52c-hhm5-gh3hLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
