BProtocol
Submit a BugProgram Overview
B.Protocol is DeFi’s Backstop Liquidity protocol, handling liquidations in scale for DeFi lending platforms. By creating a transparent, committed, smart contract-based liquidation system, B.Protocol enables better capital efficiency for DeFi users, while creating another layer of stability for the lending platforms themselves.
B.Protocol is integrated with existing lending platforms (MakerDAO, Compound, and soon others) via a dedicated smart contract interface where users give priority to the Backstop liquidators in the liquidation process. As this eliminates the gas wars between liquidators and gives them more certainty in the liquidations process, the Backstop liquidators share their proceeds with the Users in return, creating a win-win situation for all parties involved - User, Liquidators, and Platforms alike. The protocol API to end-users is identical to the lending platform API, and the only difference is that the users are interacting with different addresses. For more information about BProtocol, please visit https://www.bprotocol.org/.
The bug bounty program covers its smart contracts and is focused on the prevention of the negative impacts stated in the Impacts in Scope section.
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.
Critical smart contract vulnerabilities are capped at 10% of economic damage, primarily taking into account the funds at risk. Other considerations such as PR and branding concerns may also be considered by the team at its discretion.
Paid auditor(s) of this code is(are) not eligible for rewards in this table. Determinations of eligibility and final reward amount (for critical vulnerabilities) and all terms related to an award are at the sole and final discretion of the B.Protocol team.
Payouts are handled by the BProtocol team directly and are denominated in USD. Payouts are done in USDC or DAI for payouts up to USD 10 000 and BPRO/stablecoin mix (90%/10%) for all other critical payouts, capped by up to 50 000 BPRO.
Smart Contracts and Blockchain
- Critical
- Level
- Up to USD $100,000
- Payout
- high
- Level
- USD $10,000
- Payout
- medium
- Level
- USD $5,000
- Payout
- low
- Level
- USD $1,000
- Payout
Assets in Scope
The contracts in this table can be found on the following links:
https://github.com/backstop-protocol/BCompound/tree/master/contracts/bprotocol
https://github.com/backstop-protocol/dss-cdp-manager/tree/bprotocol/src
https://github.com/backstop-protocol/dev/tree/main/packages/contracts/contracts/B.Protocol
However, only the smart contracts within the assets in scope table itself are considered as in-scope for 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 Contracts
- Loss of user funds staked (principal) by freezing or theft
- Loss of governance funds
- Theft of unclaimed yield
- Freezing of unclaimed yield
- Temporary freezing of funds for 1 day.
- Unable to call smart contract
- Smart contract gas drainage
- Smart contract fails to deliver promised returns
- https://github.com/backstop-protocol/BCompound/blob/master/contracts/bprotocol/BComptroller.sol
- Target
- Smart Contract - BComptroller.sol
- Type
- Smart Contract - Import.sol
- Type
- Smart Contract - Pool.sol
- Type
- Smart Contract - Registry.sol
- Type
- Smart Contract - AbsAvatarBase.sol
- Type
- https://github.com/backstop-protocol/BCompound/blob/master/contracts/bprotocol/avatar/AbsCToken.sol
- Target
- Smart Contract - AbsCToken.sol
- Type
- Smart Contract - AbsComptroller.sol
- Type
- https://github.com/backstop-protocol/BCompound/blob/master/contracts/bprotocol/avatar/Avatar.sol
- Target
- Smart Contract - Avatar.sol
- Type
- https://github.com/backstop-protocol/BCompound/blob/master/contracts/bprotocol/btoken/AbsBToken.sol
- Target
- Smart Contract - AbsBToken.sol
- Type
- https://github.com/backstop-protocol/BCompound/blob/master/contracts/bprotocol/btoken/BErc20.sol
- Target
- Smart Contract - BErc20.sol
- Type
- https://github.com/backstop-protocol/BCompound/blob/master/contracts/bprotocol/btoken/BEther.sol
- Target
- Smart Contract - BEther.sol
- Type
- Smart Contract - JarConnector.sol
- Type
- Smart Contract - GovernanceExecutor.sol
- Type
- Smart Contract - Migrate.sol
- Type
- Smart Contract - LiquidatorInfo.sol
- Type
- https://github.com/backstop-protocol/BCompound/blob/master/contracts/bprotocol/info/UserInfo.sol
- Target
- Smart Contract - UserInfo.sol
- Type
- Smart Contract - CTokenInterfaces.sol
- Type
- Smart Contract - IAvatar.sol
- Type
- Smart Contract - IBComptroller.sol
- Type
- Smart Contract - IBToken.sol
- Type
- https://github.com/backstop-protocol/BCompound/blob/master/contracts/bprotocol/interfaces/IComp.sol
- Target
- Smart Contract - IComp.sol
- Type
- Smart Contract - IComptroller.sol
- Type
- Smart Contract - IRegistry.sol
- Type
- https://github.com/backstop-protocol/BCompound/blob/master/contracts/bprotocol/interfaces/IScore.sol
- Target
- Smart Contract - IScore.sol
- Type
- Smart Contract - IUniswapAnchoredView.sol
- Type
- https://github.com/backstop-protocol/BCompound/blob/master/contracts/bprotocol/lib/CarefulMath.sol
- Target
- Smart Contract - CarefulMath.sol
- Type
- https://github.com/backstop-protocol/BCompound/blob/master/contracts/bprotocol/lib/Exponential.sol
- Target
- Smart Contract - Exponential.sol
- Type
- Smart Contract - GnosisSafeProxy.sol
- Type
- https://github.com/backstop-protocol/BCompound/blob/master/contracts/bprotocol/scoring/BScore.sol
- Target
- Smart Contract - BScore.sol
- Type
- Smart Contract - IBTokenScore.sol
- Type
- Smart Contract - IScoreConfig.sol
- Type
- Smart Contract - BCdpManager.sol
- Type
- Smart Contract - BCdpScore.sol
- Type
- https://github.com/backstop-protocol/dss-cdp-manager/blob/bprotocol/src/BCdpScoreConnector.sol
- Target
- Smart Contract - BCdpScoreConnector.sol
- Type
- Smart Contract - ChainLogConnector.sol
- Type
- Smart Contract - DssCdpManager.sol
- Type
- Smart Contract - GetCdps.sol
- Type
- https://github.com/backstop-protocol/dss-cdp-manager/blob/bprotocol/src/LiquidationMachine.sol
- Target
- Smart Contract - LiquidationMachine.sol
- Type
- Smart Contract - Math.sol
- Type
- Smart Contract - BudConnector.sol
- Type
- Smart Contract - GovernanceExecutor.sol
- Type
- https://github.com/backstop-protocol/dss-cdp-manager/blob/bprotocol/src/info/LiquidatorInfo.sol
- Target
- Smart Contract - LiquidatorInfo.sol
- Type
- Smart Contract - UserInfo.sol
- Type
- Smart Contract - Pool.sol
- Type
- https://github.com/backstop-protocol/dev/blob/main/packages/contracts/contracts/B.Protocol/BAMM.sol
- Target
- Smart Contract - BAMM.sol
- Type
- Smart Contract - CropJoinAdapter.sol
- Type
- https://github.com/backstop-protocol/dev/blob/main/packages/contracts/contracts/B.Protocol/PBAMM.sol
- Target
- Smart Contract - PBAMM.sol
- Type
- Smart Contract - PriceFormula.sol
- Type
- https://github.com/backstop-protocol/dev/blob/main/packages/contracts/contracts/B.Protocol/crop.sol
- Target
- Smart Contract - crop.sol
- Type
Prioritized Vulnerabilities
We are especially interested in receiving and rewarding vulnerabilities of the following types:
Smart Contracts and Blockchain
- Re-entrancy
- Logic errors
- including user authentication errors
- Solidity/EVM details not considered
- including integer over-/under-flow
- including rounding errors
- including unhandled exceptions
- Trusting trust/dependency vulnerabilities
- including composability vulnerabilities
- Oracle failure/manipulation
- Novel governance attacks
- Economic/financial attacks
- including flash loan attacks
- Congestion and scalability
- including running out of gas
- including block stuffing
- including susceptibility to frontrunning
- Consensus failures
- Cryptography problems
- Signature malleability
- Susceptibility to replay attacks
- Weak randomness
- Weak encryption
- Susceptibility to block timestamp manipulation
- Missing access controls / unprotected internal or debugging interfaces
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
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