<!-- XE-16760 · [Low] downloadImage has no timeout and no checksum verification · testnet -->
*Markdown view of <https://bounty.xe.network/XE-16760>. The page is the record; this is the same page for reading.*

XE-16760 · Bounty

# \[Low\] downloadImage has no timeout and no checksum verification

Closed · duplicate
—
[xe#659](https://github.com/xeprotocol/xe/issues/659)
filed 2026-11-17 05:46 UTC
by kecedanzz77-bit

Verdict
:   Duplicate

Tier
:   —

Claimed
:   —

Area
:   Node / API

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-22 23:26 UTC

Told
:   2026-11-22 23:26 UTC

### Patches

None linked.

### History

- [770275](https://bounty.xe.network/log/770275) 2026-11-22 23:26 UTC reply.mirror\_failed
- [770056](https://bounty.xe.network/log/770056) 2026-11-22 23:26 UTC proposal.adopted
- [770055](https://bounty.xe.network/log/770055) 2026-11-22 23:26 UTC reply.sent
- [770054](https://bounty.xe.network/log/770054) 2026-11-22 23:26 UTC ticket.status new → closed
- [769241](https://bounty.xe.network/log/769241) 2026-11-22 23:26 UTC proposal.adopted
- [769240](https://bounty.xe.network/log/769240) 2026-11-22 23:26 UTC ticket.facts area
- [769239](https://bounty.xe.network/log/769239) 2026-11-22 23:26 UTC proposal.adopted
- [769238](https://bounty.xe.network/log/769238) 2026-11-22 23:26 UTC ticket.facts
- [769237](https://bounty.xe.network/log/769237) 2026-11-22 23:26 UTC proposal.adopted
- [769236](https://bounty.xe.network/log/769236) 2026-11-22 23:26 UTC ticket.facts
- [766215](https://bounty.xe.network/log/766215) 2026-11-22 23:17 UTC note.added
- [766195](https://bounty.xe.network/log/766195) 2026-11-22 23:17 UTC proposal.created

[Full history](https://bounty.xe.network/log?ref=XE-16760) · [JSON](https://bounty.xe.network/v1/tickets/XE-16760) · [markdown](https://bounty.xe.network/XE-16760.md)

### Report

## Summary

`downloadImage` (`vm/lima_manager.go:376-395`, shared by both Lima and QEMU managers) uses `http.Get` with the default client (no timeout) and writes the bytes straight to the image path with no hash verification. It is called from `NewLimaManager`/`NewQEMUManager` when the cloud image is missing.

## Root Cause

- No timeout: `http.Get(url)` uses `http.DefaultClient` (no timeout configured). A stalled or very slow image server hangs provider node startup indefinitely.
- No integrity check: the downloaded bytes are written to the image path (`os.Rename(tempPath, destPath)`) with no SHA-256 or other hash verification. HTTPS covers passive attackers; the gap is supply-chain (CDN compromise, DNS hijack with valid TLS).

## Impact

(a) A stalled download hangs provider node startup indefinitely. (b) A compromised or misdirected download is used as the guest OS base image without any integrity check.

## Verification

Source-level at HEAD `8cc209d` (testnet-0006).

## Suggested fix

Use an `http.Client` with a timeout, and pin \+ verify the SHA-256 of the Ubuntu cloud image before use.

### Thread

**Joseph Denne**team2026-11-22 23:26 UTCdesk

Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the
first verifiable submission, so this one closes as a duplicate. If you believe it is a different
bug, file a new report that links https://bounty.xe.network/XE-16760 and says what differs; it is read like any other.
