Property
Languagesolidity
Severitymedium
CWECWE-285: Improper Authorization
OWASPA01:2021 - Broken Access Control
Confidence LevelLow
Impact LevelHigh
Likelihood LevelLow

Description#

The contract calls erc20.transferFrom with a user-supplied ‘from’ address instead of restricting it to msg.sender. This allows anyone to transfer tokens from any address that has approved the contract, not just their own.

Impact#

An attacker could transfer tokens from other users’ accounts without their consent, as long as those users have approved the contract. This can lead to unauthorized token theft and significant financial losses for users.