GHSA-6MWX-CH8X-496Q
Slicing operations with hard-coded indexes and without explicit length validation
Texto original en inglés · Ver en español
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-6MWX-CH8X-496Q divulgada | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
### Impact
In the buildDownloadPieceHTTPRequest and DownloadTinyFile methods (figures 6.1 and 6.2), there are array slicing operations with hard-coded indexes. If the arrays are smaller than the indexes, the code panics.
This finding’s severity is informational, as we were not able to trigger the panic with a request from an external actor.
func (p *pieceDownloader) buildDownloadPieceHTTPRequest(ctx context.Context, d
*DownloadPieceRequest) *http.Request {
// FIXME switch to https when tls enabled
targetURL := url.URL{
Scheme:
Host:
Path:
RawQuery: fmt.Sprintf("peerId=%s", d.DstPid),
p.scheme,
d.DstAddr,
fmt.Sprintf("download/%s/%s", d.TaskID[:3], d.TaskID),
}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).
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-6mwx-ch8x-496qLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
