The sortVaultsByDelta function initialises its maxDelta and minDelta trackers to zero, so when every delta is positive neither the maximum nor the minimum index is ever recorded and both stay at zero. This can make the contract withdraw from the wrong vaults and revert because one computed index falls outside the valid range.
The safetyCheck function in Buoy3Pool only compares the a/b and a/c ratios, which does not guarantee that the b/c ratio is within the allowed range. This imprecision could cause the contract to incorrectly halt deposits or withdrawals.
The smart contract used the deprecated Chainlink latestAnswer function, which returns 0 if no answer is available, potentially feeding an incorrect price to the Buoy3Pool. This could cause deposits and withdrawals to stop, halting the protocol.
The shared BaseVaultAdaptor contract calculates vault shares assuming the vault share price and the underlying token use the same number of decimals. If a token or price with a different precision is integrated, the calculation would produce too many shares and could cause losses.
The Buoy3Pool oracle wrappers use a deprecated Chainlink API that can return stale price data. An attacker could exploit stale prices to manipulate the pool or cause financial loss.
The smart contract allows adding addresses to a safe list but provides no function to remove them. If a safe-listed address later becomes malicious, the protocol cannot revoke its exemption from flash loan protections, potentially enabling a flash loan attack.
The first user can manipulate the exchange rate factor to zero by burning all but one wei of their minted tokens, causing subsequent deposits to mint zero tokens. This allows the attacker to steal deposits and accrue future value.
The access control check in the distributeStrategyGainLoss function used a logical OR instead of AND, allowing any address to bypass the vault-adaptor restriction. An attacker could then call the function with arbitrary gain values, leading to arbitrary minting of GVT tokens.
The smart contract code performs arithmetic on unsigned integers that can underflow, and then casts the result to a signed integer, producing an unexpected large positive value instead of a negative one. An attacker could potentially trigger this underflow in the safetyCheck function, which runs on every deposit, to bypass a safety check.
The protocol's protection against flash loan attacks is optional and can be disabled by the owner, allowing smart contracts to interact and potentially exploit vulnerabilities. The report recommends a more robust mitigation such as limiting transactions per block.
GP
Gro Protocol
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.