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

Delete MAX_POLICY_DEPTH; rather, align with MAX_PARSE_SCRIPT_RECURSION_DEPTH from the parsing stage

Public commit record

What the developer wrote

Authored by Salvatore Ingala

50/100 · Thin
Delete MAX_POLICY_DEPTH; rather, align with MAX_PARSE_SCRIPT_RECURSION_DEPTH from the parsing stage
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit changes how deeply nested Bitcoin wallet policies can be when processed by a Ledger hardware wallet app. It removes a separate, smaller limit (10 levels) and instead uses the same deeper limit already applied during an earlier parsing stage. The change is likely a hardening or consistency fix rather than an obvious exploit, but it could affect whether very deep policies are accepted or rejected.

Recommended action

Review what MAX_PARSE_SCRIPT_RECURSION_DEPTH is set to and confirm it provides an adequate safety margin for the device's stack/heap. Verify that the parsing stage and processing stage now reject the same maximum depth, and add regression tests for boundary-depth policies. Treat this as a defense-in-depth consistency improvement unless further review shows a reachable vulnerability.

Security signals we found

01

Depth-limit constant unified across parsing and processing stages

02

Removal of a stricter local limit that could create inconsistent policy acceptance

03

No new input validation or memory safety bug introduced by the diff itself

Risk score

Why this scored 31/100

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