GHSA-HW7H-WQF5-6CRX
verify-usb silently skips content under a planted directory symlink, allowing a forged PASSED
Texto original en inglés · Ver en español
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-HW7H-WQF5-6CRX divulgada | |
| Remediación | Parche 1.4.9 | openssl-encrypt · 1 d desde divulgación | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
The verify-usb v2 added-file allowlist scan enumerated the drive with rglob('*'), which in CPython never descends into a symlinked directory and treats the symlink itself as an ordinary directory; O_NOFOLLOW on the hash side binds only the final path component. An evil-maid attacker could replace a tool-tree directory with a symlink to a copy holding byte-identical files plus a planted __pycache__/*.pyc (which CPython loads in preference to recompiling the clean .py). The listed files hashed clean through the symlink, the planted file was never enumerated, added_files stayed 0, and verify-usb reported PASSED -- code execution when the victim runs the portable install.
Fix (1.4.9): the scan now enumerates with os.walk(followlinks=False) and flags ANY symlinked path component (directory or file) as tampering, so a symlink-shrouded planted tree fails verification (a legitimate portable install contains no symlinks). Affects both the 1.4.x and 1.5.x lines. Tracked as gitlab#242.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
pypiopenssl-encrypt |
Corregida | 1.4.9 | 1 d | 1.4.9 no afectada |
1.4.9Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-hw7h-wqf5-6crxLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
