Skip to content

Code4rena

Gro Protocol

Every publicly disclosed report for Gro Protocol and what kind of bugs they were.

disclosed reports
10
most reported class
Business logic
bug classes found
3
first disclosure
2021
Find Gro Protocol on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Gro Protocol chose to make public.

Business logic

sortVaultsByDelta doesn’t work as expected

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.

Gro Protocol

High
Business logic

Buoy3Pool.safetyCheck is not precise and has some assumptions

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.

Gro Protocol

High
Smart contracts

Use of deprecated Chainlink function latestAnswer

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.

Gro Protocol

Medium
Business logic

BaseVaultAdaptor assumes sharePrice is always in underlying decimals

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.

Gro Protocol

Medium
Audit finding

Usage of deprecated ChainLink API in Buoy3Pool

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.

Gro Protocol

Medium
Business logic

Safe addresses can only be added but not removed

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.

Gro Protocol

Medium
Business logic

Early user can break minting

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.

Gro Protocol

Medium
Access control

Incorrect use of operator leads to arbitrary minting of GVT tokens

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.

Gro Protocol

High
Smart contracts

implicit underflows

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.

Gro Protocol

High
Business logic

Flash loan risk mitigation is optional and not robust enough

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.

Gro Protocol

Medium