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

Description#

The Uniswap callback function in your contract is missing proper access control checks to ensure only authorized Uniswap pool contracts can call it. Without these validations, any external entity could trigger the callback and potentially manipulate your contract’s logic.

Impact#

If exploited, an attacker could call the callback function directly, bypassing expected Uniswap behavior and potentially draining funds, executing unauthorized transactions, or disrupting contract operations. This could lead to significant financial losses and compromise the integrity of your smart contract.