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

chore(core): disallow showing dangerous warning with no header

Public commit record

What the developer wrote

Authored by Roman Zeyde

77/100 · Adequate
chore(core): disallow showing dangerous warning with no header

Implemented for Bolt, Caesar and Eckhart.

It was done for Delizia in a6090dce50.

[no changelog]
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body
The short version

What changed, and why it matters

This commit adds a safety check to three Trezor device user-interface layouts (Bolt, Caesar, Eckhart). It prevents a 'dangerous' warning screen from being shown without a title/header. The change is defensive: previously the unused `_danger` flag was ignored, so a caller could accidentally or maliciously present a high-risk warning with no context. Now such calls fail with an error. The commit message frames this as a chore, not a security fix, and no changelog entry was added.

Recommended action

Treat as a minor hardening improvement. Review all call sites of `show_warning` to confirm none rely on passing `danger=true` with `title=None`; if any do, they will now error. Consider adding a changelog or release note describing the behavioral change, since it affects runtime error behavior of a UI API.

Security signals we found

01

Defensive input validation added to UI warning path

02

Previously ignored `_danger` parameter now enforced

03

Prevents dangerous warning from being rendered without context/header

04

Mirrors prior hardening in another layout (Delizia)

05

No changelog entry despite security-relevant behavior change

Risk score

Why this scored 38/100

Our methodology →
Potential impact 8/30
Exploitability 7/25
Stealth signal 6/15
Affected reach 8/15
Confidence 6/10
Evidence quality 3/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.