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

lnd: skip network validation when migrations are skipped

Public commit record

What the developer wrote

Authored by ziggie

73/100 · Adequate
lnd: skip network validation when migrations are skipped

Skip the chain_params network check when startup is explicitly
configured to skip SQL migrations. In that mode the schema is assumed
to already be managed externally, and the chain_params table may not
exist yet. Avoid failing startup on a missing table in this path.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This change lets LND skip a safety check that prevents accidentally using a database from the wrong Bitcoin network (like mainnet vs testnet) when the user has explicitly told LND to skip SQL database migrations. The check is skipped because the table it reads may not exist in that special setup. This is a deliberate relaxation of a guardrail, not a fix for an attack, and it only affects users who opt into the 'skip migrations' mode.

Recommended action

Treat this as a configuration-aware behavior change rather than a vulnerability. Operators using SkipMigrations should ensure the active network is validated through external schema management or deployment controls. Reviewers may want to confirm that SkipMigrations cannot be enabled unintentionally and that the warning is surfaced in monitoring.

Security signals we found

01

Guardrail intentionally bypassed under operator-controlled configuration flag

02

Cross-network database reuse would no longer be detected in skipped-migration mode

03

Warning emitted to logs when validation is skipped

04

No input validation, authentication, or cryptographic change

Risk score

Why this scored 31/100

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