Property
Languagesolidity
Severityhigh
CWECWE-284: Improper Access Control
Confidence LevelLow
Impact LevelHigh
Likelihood LevelHigh

Description#

The transferOwnership function is publicly accessible without proper access control, allowing anyone to change the contract’s owner. This means unauthorized users can take ownership of the contract.

Impact#

If exploited, an attacker could seize control of the smart contract, potentially transferring funds, modifying critical settings, or locking out legitimate owners. This could lead to total loss of assets and trust in the contract.