GHSA-QHHF-FCV2-WMP4
TrimLeft is used instead of TrimPrefix
Texto original en inglés · Ver en español
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-QHHF-FCV2-WMP4 divulgada | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
### Impact
The strings.TrimLeft function is used at multiple points in the Dragonfly codebase to remove a prefix from a string. This function has unexpected behavior; its second argument is an unordered set of characters to remove, rather than a prefix to remove. The strings.TrimPrefix function should be used instead.
urlMeta.Range = strings.TrimLeft(r, http.RangePrefix)The finding is informational because we were unable to determine an exploitable attack
scenario based on the vulnerability.
Patches
- Dragonfy v2.1.0 and above.
Workarounds
There are no effective workarounds, beyond upgrading.
References
A third party security audit was performed by Trail of Bits, you can see the full report https://github.com/dragonflyoss/dragonfly/blob/main/docs/security/dragonfly-comprehensive-report-2023.pdf.
If you have any questions or comments about this advisory, please email us at [dragonfly-maintainers@googlegroups.com](mailto:dragonfly-maintainers@googlegroups.com).
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
gogithub.com/dragonflyoss/dragonfly |
Sin parche | — | — | v0.4.1 afectada |
2.1.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/dragonflyoss/dragonfly/security/advisories/GHSA-qhhf-fcv2-wmp4Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
