Gearbox
Submit a BugProgram Overview
Gearbox is a generalized leverage protocol: it allows you to take leverage in one place and then use it across various DeFi protocols and platforms in a composable way. The protocol has two sides to it: passive liquidity providers who earn higher APY by providing liquidity; and active traders, farmers, or even other protocols who can borrow those assets to trade or farm with x4+ leverage.
The core vision is to become a backend composable leverage protocol that all kinds of users have but don’t even need to interact directly with any interface.
For more information about Gearbox, please visit: https://docs.gearbox.finance/
To see the dApp, please visit: https://app.gearbox.fi/accounts/. This bug bounty program is focused on their smart contracts and is focused on preventing:
- Thefts and freezing of principal of any amount
- Thefts and freezing of unclaimed yield of any amount
- Unexpected sandwiching or manipulation of user trades
- Incorrect use of oracles or their malfunction
- Any Cream-style mathematic attack on the protocol work
- Theft of governance funds
Rewards by Threat Level
Rewards are distributed according to the impact of the vulnerability based on the Immunefi Vulnerability Severity Classification System. This is a simplified 5-level scale, with separate scales for websites/apps and smart contracts/blockchains, encompassing everything from consequence of exploitation to privilege required to likelihood of a successful exploit.
All Smart Contract bug reports require a PoC to be eligible for a reward. A suggestion for a fix is preferred but not compulsory for Low and Medium Smart Contract bug reports. Explanations and statements are not accepted as PoC and code is required.
Critical smart contract vulnerabilities are capped at 10% of economic damage, primarily taking into consideration funds at risk, but also PR and branding aspects, at the discretion of the team. However, there is a minimum reward of USD 50 000.
All vulnerabilities marked in the https://github.com/Gearbox-protocol/gearbox-contracts/issues are not eligible for a reward.
Payouts are handled by the Gearbox team directly and are denominated in USD. However, payouts are done in USDC.
Smart Contract
- Critical
- Level
- Up to USD $150,000
- Payout
- High
- Level
- USD $50,000
- Payout
- Medium
- Level
- USD $10,000
- Payout
- Low
- Level
- USD $5,000
- Payout
Assets in scope
- Smart Contract - AddressProviderType
- Smart Contract - ContractsRegisterType
- Smart Contract - AccountFactoryType
- Smart Contract - CreditAccountType
- Smart Contract - ACLType
- Smart Contract - DataCompressorType
- Smart Contract - LeveragedActionsType
- Smart Contract - PriceOracleType
- Smart Contract - WETHGatewayType
- Smart Contract - GEAR tokenType
- Smart Contract - Protocol MultisigType
- Smart Contract - GnosisSafe ProxyType
- Smart Contract - GnosisSafeType
- Smart Contract - Treasury MultisigType
- Smart Contract - TokenDistributorType
- Smart Contract - DAI Pool contractType
- Smart Contract - Diesel Token (dDAI)Type
- Smart Contract - DAI Interest Rate ModelType
- Smart Contract - DAI Credit ManagerType
- Smart Contract - DAI Credit FilterType
- Smart Contract - DAI UniV3AdapterType
- Smart Contract - DAI UniV2Adapter ProxyType
- Smart Contract - DAI UniV2AdapterType
- Smart Contract - DAI CurveV1AdapterType
- Smart Contract - DAI YearnAdapter ProxyType
- Smart Contract - DAI YearnAdapterType
- Smart Contract - USDC Pool contractType
- Smart Contract - Diesel Token (dUSDC)Type
- Smart Contract - USDC Interest Rate ModelType
- Smart Contract - USDC Credit ManagerType
- Smart Contract - USDC Credit FilterType
- Smart Contract - USDC UniV3AdapterType
- Smart Contract - USDC UniV2AdapterType
- Smart Contract - USDC UniV2AdapterType
- Smart Contract - USDC CurveV1AdapterType
- Smart Contract - USDC YearnAdapterType
- Smart Contract - USDC YearnAdapterType
- Smart Contract - WETH Pool contractType
- Smart Contract - Diesel Token (dWETH)Type
- Smart Contract - WETH Interest Rate ModelType
- Smart Contract - WETH Credit ManagerType
- Smart Contract - WETH Credit FilterType
- Smart Contract - WETH UniV3AdapterType
- Smart Contract - WETH UniV2AdapterType
- Smart Contract - WETH UniV2AdapterType
- Smart Contract - WETH CurveV1AdapterType
- Smart Contract - WETH YearnAdapterType
- Smart Contract - WETH YearnAdapterType
- Smart Contract - WBTC Pool contractType
- Smart Contract - Diesel Token (dWBTC)Type
- Smart Contract - WBTC Interest Rate Model ProxyType
- Smart Contract - WBTC Credit ManagerType
- Smart Contract - WBTC Credit FilterType
- Smart Contract - WBTC UniV3AdapterType
- Smart Contract - WBTC UniV2AdapterType
- Smart Contract - WBTC UniV2AdapterType
- Smart Contract - WBTC CurveV1AdapterType
- Smart Contract - WBTC YearnAdapterType
- Smart Contract - WBTC YearnAdapterType
All smart contracts of Gearbox can be found at https://github.com/Gearbox-protocol/gearbox-contracts. However, only those in the Assets in Scope table are considered as in-scope of the bug bounty program.
Impacts in scope
Only the following impacts are accepted within this bug bounty program. All other impacts are not considered as in-scope, even if they affect something in the assets in scope table.
Smart Contract
- Any governance voting result manipulationCriticalImpact
- Direct theft of any user funds, whether at-rest or in-motion, other than unclaimed yieldCriticalImpact
- Permanent freezing of fundsCriticalImpact
- Miner-extractable value (MEV)CriticalImpact
- Protocol InsolvencyCriticalImpact
- Theft of unclaimed yieldHighImpact
- Permanent freezing of unclaimed yieldHighImpact
- Temporary freezing of fundsHighImpact
- Smart contract unable to operate due to lack of token fundsMediumImpact
- Block stuffing for profitMediumImpact
- Griefing (e.g. no profit motive for an attacker, but damage to the users or the protocol)MediumImpact
- Theft of gasMediumImpact
- Unbounded gas consumptionMediumImpact
- Contract fails to deliver promised returns, but doesn't lose valueLowImpact
Out of Scope & Rules
The following vulnerabilities are excluded from the rewards for this bug bounty program:
- Attacks that the reporter has already exploited themselves, leading to damage
- Attacks requiring access to leaked keys/credentials
- Attacks requiring access to privileged addresses (governance, strategist)
Smart Contracts and Blockchain
- Incorrect data supplied by third party oracles
- Not to exclude oracle manipulation/flash loan attacks
- Basic economic governance attacks (e.g. 51% attack)
- Lack of liquidity
- Best practice critiques
- Sybil attacks
- Centralization risks
The following activities are prohibited by this bug bounty program:
- Any testing with mainnet or public testnet contracts; all testing should be done on private testnets
- Any testing with pricing oracles or third party smart contracts
- Attempting phishing or other social engineering attacks against our employees and/or customers
- Any testing with third party systems and applications (e.g. browser extensions) as well as websites (e.g. SSO providers, advertising networks)
- Any denial of service attacks
- Automated testing of services that generates significant amounts of traffic
- Public disclosure of an unpatched vulnerability in an embargoed bounty