The GMXCompound.sol
contract lacks access control in the compound
function. Without proper access control, anyone can call this function, which may lead to unauthorized users triggering compound operations.
In the GMXCompound.sol
contract, the compound
function lacks access control modifiers, allowing unrestricted access to this function. Here's the relevant code block with the vulnerability:
An unauthorized users can invoke the compound
function without any restrictions. This may lead to unauthorized compound operations and potentially cause unexpected interactions or disruptions in the system.
Unauthorized users can freely invoke the compound function, which is intended for controlled and authorized access. The consequences of this lack of access control include:
Unauthorized users can initiate compound operations, potentially interfering with the intended operation of the contract.
Financial losses or exploitation can occur due to unauthorized compound transactions.
The overall security and integrity of the smart contract and the associated system are compromised.
Manual
Mitigating this vulnerability, proper access control should be implemented by using modifiers like onlyController
to ensure that only authorized users can call the compound
function.
By adding the onlyController
modifier, only authorized controllers can call the compound
function, enhancing the security of the smart contract.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.