Medium · CVSS 4Business Logic Errors (CWE-840)
Authorization Bypass in Starknet Snap via enableAuthorize parameter leads to unauthorized transaction signing
Vulnerability Summary
HackerOne disclosed report --> https://hackerone.com/reports/3507241 by aszx87410
Summary:
The Starknet Snap by Consensys contains a critical security vulnerability that allows malicious websites to bypass user authorization when signing messages or transactions. The vulnerability exists in the enableAuthorize parameter which can be controlled by any website. When set to false, the confirmation dialog is not shown to the user, allowing a malicious website to sign arbitrary messages or transactions without user approval, potentially leading to asset theft.
Steps To Reproduce:
- Make sure MetaMask is installed
- Visit https://snaps.consensys.io/starknet
- Click "Connect with MetaMask" button to install the StarkNet Snap
- Download the html file: "exp-starknet.html" and host it on local port 5555
- Visit http://localhost:5555/exp-starknet.html
- Click "start PoC" button