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

qeqrscanner: check requestCode on activity result

Public commit record

What the developer wrote

Authored by f321x

45/100 · Thin
qeqrscanner: check requestCode on activity result
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit fixes the Android QR scanner in Electrum so it checks which app-request ID is returned before processing a scanned result. Previously the scanner used a hardcoded request code of 0, which could let a malicious or confused app feed fake QR scan results into Electrum by returning an activity result with the same default code. The fix gives Electrum a unique, randomly chosen request code and ignores any result that does not match it.

Recommended action

Treat as a security hardening fix and include in release notes. Users on Android should update to a release containing this commit. No immediate emergency response is indicated because the commit does not disclose an active exploit, but app developers should audit other startActivityForResult callers for the same pattern.

Security signals we found

01

request-code validation added to Android activity result handler

02

hardcoded default request code 0 replaced with unique constant

03

potential cross-component intent/activity-result confusion mitigated

04

no explicit security advisory or CVE referenced in commit

Risk score

Why this scored 46/100

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