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

Merge pull request #10830 from accumulator/qml_trustedcoin_wallet_scope

Public commit record

What the developer wrote

Authored by ghost43

73/100 · Adequate
Merge pull request #10830 from accumulator/qml_trustedcoin_wallet_scope

qml: wallet, tx and callbacks were incorrectly scoped to class level for trustedcoin plugin.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This change fixes a programming mistake in Electrum's mobile/QML user interface where the trustedcoin two-factor authentication (2FA) plugin stored wallet, transaction, and callback information as shared class-level data instead of per-use data. In practice, this could mean that if multiple wallets or transactions requested an OTP at the same time, the wrong wallet or transaction could be signed, or a stale callback could run. The patch scopes those values to each individual OTP request so they cannot collide or leak across requests.

Recommended action

Treat as a bug-fix patch that improves state isolation for the QML 2FA signing flow. No immediate emergency response is indicated, but users relying on the QML/Android build with 2FA wallets should update to a release containing this fix. Review whether any similar class-level state exists in other GUI plugins.

Security signals we found

01

Class-level mutable state for security-critical objects (wallet, transaction, success/failure callbacks) replaced with per-request closure

02

Potential cross-request state collision in 2FA OTP signing flow

03

Removal of plugin-global self.wallet/self.tx/self.on_success/self.on_failure

04

Callback storage now instance-level on QEWallet with explicit type annotation

Risk score

Why this scored 42/100

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