GHSA-HM39-RVCC-QPH6
Symlink chain based Zip Slip in @appium/support ZIP extraction
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-HM39-RVCC-QPH6 divulgada · CVSS 6.5 (GitHub) | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
The fix for GHSA-rfx7-4xw3-gh4m added per-segment lexical and realpath containment checks to `ZipExtractor`. Those checks run before each path segment exists, so a short symlink chain still writes outside the destination:
- `d/up -> ..` resolves to the extraction root, so it passes.
- `f -> d/up/../escaped-bypass.txt` resolves lexically to `<root>/d/escaped-bypass.txt`, so it passes. On disk the kernel follows `d/up` to the root and then applies `..`, so `f` is a dangling link to `<root>/../escaped-bypass.txt`.
- A regular file entry named `f` is then written, follows the dangling symlink, and creates the file outside the root.
Impact
Arbitrary file write outside the destination when extracting an attacker-supplied zip (for example app bundles and driver or plugin archives). Depending on the target path this can lead to code execution.
Suggested fix
Do not create symlinks whose target is outside the root after resolving existing symlink components. Check each symlink target with realpath of the existing prefix plus the remaining components, and refuse to write a regular file over an existing symlink (lstat the destination and open with O_NOFOLLOW / `wx`).
Found with AploSec.
Reported by Zachariah Mithani (zachariah@aplosai.com).
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npm@appium/support |
Sin parche | — | — | 7.2.9 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-hm39-rvcc-qph6Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
