Skip to content

Commit 1e3d521

Browse files
fix(AssetsController): prevent websocket metadata poisoning by stopping assetsInfo publication during balance updates; metadata is now sourced from the Token API. Bump dependencies for transaction-controller, core-backend, and config-registry-controller.
1 parent 60b5c76 commit 1e3d521

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/assets-controller/CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Changed
1111

12-
- Stop publishing asset metadata (`assetsInfo`) from the websocket/account-activity balance-update path (`AccountActivityDataSource`); only balances are published and metadata is resolved from the Token API (the metadata source of truth) by `TokenDataSource` in the same pipeline pass
13-
- The websocket payload's asset `unit` echoes on-chain contract symbols, which are attacker-controlled for airdropped tokens (e.g. scam-URL token names). Publishing them poisoned `state.assetsInfo`, which marked spam assets as "known" and permanently exempted them from spam filtering on subsequent updates. The payload's `decimals` is still used to convert raw amounts to human-readable balances.
12+
- Stop publishing `assetsInfo` from websocket balance updates; metadata is now resolved from the Token API by `TokenDataSource` to prevent WS poisoning (incorrect WS symbols and no detection metadata). Prevents bypassing token detection spam filtering ([#9790](https://github.com/MetaMask/core/pull/9790))
1413
- Bump `@metamask/transaction-controller` from `^69.4.0` to `^69.5.0` ([#9780](https://github.com/MetaMask/core/pull/9780))
1514
- Bump `@metamask/core-backend` from `^8.1.0` to `^8.1.1` ([#9779](https://github.com/MetaMask/core/pull/9779))
1615
- Bump `@metamask/config-registry-controller` from `^2.0.0` to `^2.0.1` ([#9779](https://github.com/MetaMask/core/pull/9779))

0 commit comments

Comments
 (0)