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

otp: wipe and don't log the otp secret

Public commit record

What the developer wrote

Authored by Jon Griffiths

60/100 · Adequate
otp: wipe and don't log the otp secret

Remove the sanity check which is already handled by base32_to_bin().
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
The short version

What changed, and why it matters

This commit fixes two security hygiene issues in the handling of one-time password (OTP) secrets in Blockstream Jade. First, it stops writing the raw OTP secret into device logs when decoding fails. Second, it marks the temporary memory buffer holding the decoded secret as sensitive so it is wiped after use rather than left behind. The change also removes a redundant size check because another function already performs it. There is no evidence in the commit of an active exploit or a reported incident.

Recommended action

Treat this as a defensive security hardening fix. Users running firmware before this commit should upgrade, especially if device logs may be collected or shared. Review whether any persisted logs from earlier firmware contain OTP secrets. No immediate incident response is indicated by the commit itself.

Security signals we found

01

Removal of secret material from error/log messages

02

Use of SENSITIVE_PUSH/SENSITIVE_POP to clear a stack buffer containing a cryptographic secret

03

Reduction of redundant length check, consolidating validation in base32_to_bin()

04

No functional change to OTP generation; only to secret handling and logging

Risk score

Why this scored 59/100

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