security: verify netboot.xyz checksums, pin CI deps, harden manifest rendering - #5
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
…rendering Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the critical/high findings from a security scan of this repo:
1. Unverified bootloader downloads (critical) —
scripts/create-netbootxyz-alpine-lxc.shThe PXE rescue builder downloaded netboot.xyz boot binaries (
.efi/.kpxe/.iso/…) that machines will actually boot, with no integrity check — even though upstream publishesnetboot.xyz-sha256-checksums.txt. The installer now fetches the checksums file first and verifies each boot file after download:A mismatch deletes the file and aborts the install. Files without a published checksum (e.g.
menus.tar.gz) warn and continue. Verified against the live release with busyboxsha256sum(what Alpine uses): pass, mismatch-abort, and no-checksum paths all behave as intended.2. Supply-chain hardening of the asset-build workflow (high) —
.github/workflows/build-brand-assets.ymlThe workflow has
contents: writeand auto-pushes commits tomain, so a compromised action tag or PyPI release could push arbitrary commits. Actions are now pinned to full commit SHAs (checkoutv4.2.2,setup-pythonv5.6.0) andpillow/cairosvgare pinned to exact versions.3. Manifest-rendering hardening —
brand.jsesc()prevented attribute breakout but still allowed a tamperedmanifest.jsonto injectjavascript:URLs viacanonicalRawBase(used inhref/src) or extra CSS declarations viaaccent(style="--brand-accent:..."). AddedsafeUrl()(https-only, else#) aroundrawAsset()andsafeColor()(strict#hexmatch) for the accent.Findings not fixed (reported only)
Access-Control-Allow-Origin: *) in the netboot LXC's nginx config: left as-is; it serves public, read-only boot files on a LAN rescue server, which is the intended netboot.xyz setup.curl | bashinstall pattern documented inproxmox/README.md, and the branding script's aptPost-Invokehook re-runs itself as root after every apt operation: both fetch only from this repo over HTTPS, but consider pinning to a tag/commit instead ofmainif you want stronger guarantees.Link to Devin session: https://app.devin.ai/sessions/b45355e80b6a437886f52f01f6d92e94
Requested by: @puchadave