Pinned post
when @megaeth’s MOSS wallet dropped in june, i poked around for vulnerabilities. found a sneaky one on day one:
a dapp could brute-force a function signature like claim_bonus_2107693811(address,uint256) that shares the same 4-byte selector (0x095ea7b3) as approve(address,uint256).
MOSS would show claim_bonus_… to the user in the signing prompt, while onchain, the tx gave the attacker an unlimited USDm allowance (or any other ERC-20 token).
i’d rate this high severity. the attacker could drain the victim’s entire USDm balance via transferFrom until the victim revoked the approval.
I reported it to the megaeth team on day one. 2–3 months later, they shipped a fix that simulates the tx and shows the approval before you sign.
@bread_ offered me a bounty for the finding. no update on that yet.
on to the next one.
a dapp could brute-force a function signature like claim_bonus_2107693811(address,uint256) that shares the same 4-byte selector (0x095ea7b3) as approve(address,uint256).
MOSS would show claim_bonus_… to the user in the signing prompt, while onchain, the tx gave the attacker an unlimited USDm allowance (or any other ERC-20 token).
i’d rate this high severity. the attacker could drain the victim’s entire USDm balance via transferFrom until the victim revoked the approval.
I reported it to the megaeth team on day one. 2–3 months later, they shipped a fix that simulates the tx and shows the approval before you sign.
@bread_ offered me a bounty for the finding. no update on that yet.
on to the next one.
0:31
Every onchain app gives you a new wallet. New balances. More problems.View quoted post on X
MOSS is the unified onchain account experience.
One Wallet. Every App. Your Rules.