AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Informational 19 Bitcoin

Expose bootloader version in device info

Public commit record

What the developer wrote

Authored by Niklas Dusenlund

68/100 · Adequate
Expose bootloader version in device info

Read and validate the installed stage1 header, then expose its marketing version through the HAL and device info protobuf response.

Keep the field absent for legacy bootloaders and return None from the Python client when unavailable.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit adds a new read-only field to the BitBox02's device information response so the host app can learn which bootloader version is installed. It does not change how data is signed, encrypted, or authorized. The main security-relevant aspect is that the firmware now reads a small version string from the bootloader area and validates the bootloader header's magic value and length before exposing it. This is a defensive information-disclosure change rather than a vulnerability fix.

Recommended action

No immediate action required. Treat as a normal feature commit. Reviewers may want to confirm that the 37-byte version buffer is consistently sized across C, Rust, and Python, and that the header magic check cannot be bypassed by a malformed on-flash header.

Security signals we found

01

New read-only API field derived from bootloader flash region

02

Input validation on bootloader header magic and version length before copy

03

Static assertions bounding the readable region to FLASH_BOOT_START + FLASH_BOOT_LEN

04

Legacy fallback: field omitted when header is invalid/unavailable

05

No change to signing, password stretching, or authorization logic

Risk score

Why this scored 19/100

Our methodology →
Potential impact 2/30
Exploitability 1/25
Stealth signal 1/15
Affected reach 2/15
Confidence 9/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.