Test-Only FormAutofill Handlers Exposed in Production Allowing Credit Card Exfiltration (Bug 2022419)
Categories
(Toolkit :: Form Autofill, defect)
Tracking
()
People
(Reporter: define.ctf, Unassigned)
References
()
Details
(Keywords: reporter-external, Whiteboard: [client-bounty-form])
Discovered through manual code review of FormAutofillParent.sys.mjs.
Five message handlers marked as "test-only" in comments are fully
accessible in production builds with no Cu.isInAutomation guard:
- FormAutofill:GetRecords → returns ALL saved credit cards & addresses
- FormAutofill:SaveAddress → injects arbitrary address data
- FormAutofill:SaveCreditCard → injects arbitrary credit card data
- FormAutofill:RemoveCreditCards → deletes credit cards by GUID
- FormAutofill:RemoveAddresses → deletes addresses by GUID
The FormAutofill actor is registered with allFrames: true and no
remoteTypes restriction, meaning any compromised content process
can send these messages directly.
Impact:
- Full exfiltration of saved credit cards and addresses
- Mass deletion of payment data
- Injection of malicious autofill entries
Affected versions: Firefox release, beta, ESR 128, ESR 140
Platforms: Windows, macOS, Linux
Existing bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=2022419
Already confirmed sec-high and patch submitted by assignee.
Comment 1•8 months ago
|
||
I guess you re-filed this so that it would be considered for the security bounty program? In the future, you can email security@mozilla.org and ask them to set the flag rather than file a new bug, which can be confusing.
Updated•8 months ago
|
Updated•2 months ago
|
Description
•