Skip to content

Security: OpenOCD quoting in flash; flash-self requires a signed download over https - #55

Open
wardviaene wants to merge 2 commits into
mainfrom
security-review-fixes
Open

wardviaene wants to merge 2 commits into
mainfrom
security-review-fixes

Conversation

@wardviaene

Copy link
Copy Markdown
Member

From the 2026-11-14 security review (findings 5 and 7):

  • flash: the firmware path goes in braces in OpenOCD's program command and --load-address must be a number, so [exec ...] in a name or address cannot run a command. Windows paths are passed with forward slashes.
  • flash-self (USB and --network): a downloaded image must have a signature this CLI knows, else it is refused (--allow-unsigned flashes it anyway). A local file is only reported on, so your own builds still flash. Downloads must be https (localhost excepted).
  • README updated; tests for both.

🤖 Generated with Claude Code

wardviaene and others added 2 commits November 14, 2026 14:43
The firmware path goes in braces and --load-address must be a number, so [exec ...] in a file name or address cannot run a command through OpenOCD's Tcl.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd plain-http downloads

A download (default release, URL or --firmware-url) must carry a signature this CLI knows; --allow-unsigned flashes it anyway. A local file is only reported on. http:// is refused except for localhost. README updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant