BarnBridge

Submit a Bug
05 August 2021
Live since
No
KYC required
$500,000
Maximum bounty

Program Overview

BarnBridge is a risk tokenization protocol. It aims to reduce the risks associated with DeFi, such as interest rate fluctuations and asset price volatility. By letting users select a risk profile, BarnBridge can redistribute risk via tokenized, liquid tranches. BarnBridge does this with its SMART Yield, SMART Exposure, and upcoming SMART Alpha products, all of which address a specific DeFi risk category.

The continued development of the dApps is governed by the community through the BarnBridge DAO.

For more information about BarnBridge, please visit https://barnbridge.com/.

The bug bounty program covers its smart contracts and is focused on preventing the following impacts:

  • Thefts and freezing of SMART Yield capital
  • Thefts and freezing of SMART Exposure capital
  • Thefts and freezing of SMART Alpha (to be launched in September 2021) capital
  • Thefts and freezing of future applications’ capital
  • Theft and freezing of DAO treasury funds
  • Theft and freezing of Governance Staking vault (e.g. “Barn” smart contract)

This bug bounty program is further covered by the Armor Alliance Bug Bounty Challenge.

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 vulnerabilities are required to have a PoC for the consideration of a reward.

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.

Payouts up to USD 250 000 are handled by the BarnBridge team directly and are denominated in USD. Payouts under USD 1 000 are paid in a stablecoin at the discretion of the team. For larger payouts up to USD 250 000, the reward is split in a 80:20 BOND:stablecoin mix, where the team also decides on the stablecoin to be used. For payments above USD 250 000, the remainder is paid in $ARMOR by the ArmorFi team under the Armor Alliance Bug Bounty Challenge with a vesting period of up to 24 months.

Smart Contracts and Blockchain

Critical
Level
Up to USD $500,000
Payout

Assets in Scope

For additional reference, the following links have been provided. However, only the smart contracts within the assets in scope table are in-scope of the bug bounty program.

Yield Farming - Staking contract

https://github.com/BarnBridge/BarnBridge-YieldFarming/blob/master/contracts/Staking.sol

Yield Farming - Community Vault

https://github.com/BarnBridge/BarnBridge-YieldFarming/blob/master/contracts/CommunityVault.sol

Yield Farming - Pool2 (BOND/USDC LP Pool)

https://github.com/BarnBridge/BarnBridge-YieldFarming/blob/master/contracts/YieldFarmLP.sol

DAO & Governance - Barn

https://github.com/BarnBridge/BarnBridge-Barn/blob/master/contracts/Barn.sol

DAO Governance & Treasury

https://github.com/BarnBridge/BarnBridge-DAO/blob/master/contracts/Governance.sol

DAO & Governance - DAO Rewards

https://github.com/BarnBridge/BarnBridge-Barn/blob/master/contracts/Rewards.sol

SMART Yield

https://github.com/BarnBridge/BarnBridge-SmartYieldBonds/tree/master/contracts

SMART Exposure

https://github.com/BarnBridge/BarnBridge-SmartExposure

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
Smart Contract - Yield Farming Staking contract
Type
Smart Contract - Yield Farming Community Vault
Type
Smart Contract - Yield Farming Pool2 (BOND/USDC LP Pool)
Type
Smart Contract - DAO & Governance - Barn
Type
Smart Contract - DAO Governance & Treasury
Type
Smart Contract - DAO & Governance - DAO Rewards
Type
Smart Contract - SMART Yield cDAI bondModel
Type
Smart Contract - SMART Yield cDAI compoundProvider
Type
Smart Contract - SMART Yield cDAI smartYield (bb_cDAI)
Type
Smart Contract - SMART Yield cDAI seniorBond
Type
Smart Contract - SMART Yield cDAI juniorBond
Type
Smart Contract - SMART Yield cDAI controller
Type
Smart Contract - SMART Yield cDAI oracle
Type
Smart Contract - SMART Yield cUSDC bondModel
Type
Smart Contract - SMART Yield cUSDC compoundProvider
Type
Smart Contract - SMART Yield cUSDC smartYield (bb_cUSDC)
Type
Smart Contract - SMART Yield cUSDC seniorBond
Type
Smart Contract - SMART Yield cUSDC juniorBond
Type
Smart Contract - SMART Yield cUSDC controller
Type
Smart Contract - SMART Yield cUSDC oracle
Type
Smart Contract - SMART Yield crDAI bondModel
Type
Smart Contract - SMART Yield crDAI provider
Type
Smart Contract - SMART Yield crDAI smartYield
Type
Smart Contract - SMART Yield crDAI seniorBond
Type
Smart Contract - SMART Yield crDAI juniorBond
Type
Smart Contract - SMART Yield crDAI controller
Type
Smart Contract - SMART Yield crDAI oracle
Type
Smart Contract - SMART Yield crUSDC bondModel
Type
Smart Contract - SMART Yield crUSDC provider
Type
Smart Contract - SMART Yield crUSDC smartYield
Type
Smart Contract - SMART Yield crUSDC seniorBond
Type
Smart Contract - SMART Yield crUSDC juniorBond
Type
Smart Contract - SMART Yield crUSDC controller
Type
Smart Contract - SMART Yield crUSDC oracle
Type
Smart Contract - SMART Yield crUSDT bondModel
Type
Smart Contract - SMART Yield crUSDT provider
Type
Smart Contract - SMART Yield crUSDT smartYield
Type
Smart Contract - SMART Yield crUSDT seniorBond
Type
Smart Contract - SMART Yield crUSDT juniorBond
Type
Smart Contract - SMART Yield crUSDT controller
Type
Smart Contract - SMART Yield crUSDT oracle
Type
Smart Contract - SMART Yield aDAI bondModel
Type
Smart Contract - SMART Yield aDAI provider
Type
Smart Contract - SMART Yield aDAI smartYield
Type
Smart Contract - SMART Yield aDAI seniorBond
Type
Smart Contract - SMART Yield aDAI juniorBond
Type
Smart Contract - SMART Yield aDAI controller
Type
Smart Contract - SMART Yield aDAI oracle
Type
Smart Contract - SMART Yield aGUSD bondModel
Type
Smart Contract - SMART Yield aGUSD provider
Type
Smart Contract - SMART Yield aGUSD smartYield
Type
Smart Contract - SMART Yield aGUSD seniorBond
Type
Smart Contract - SMART Yield aGUSD juniorBond
Type
Smart Contract - SMART Yield aGUSD controller
Type
Smart Contract - SMART Yield aGUSD oracle
Type
Smart Contract - SMART Yield aUSDC bondModel
Type
Smart Contract - SMART Yield aUSDC provider
Type
Smart Contract - SMART Yield aUSDC smartYield
Type
Smart Contract - SMART Yield aUSDC seniorBond
Type
Smart Contract - SMART Yield aUSDC juniorBond
Type
Smart Contract - SMART Yield aUSDC controller
Type
Smart Contract - SMART Yield aUSDC oracle
Type
Smart Contract - SMART Yield aUSDT bondModel
Type
Smart Contract - SMART Yield aUSDT provider
Type
Smart Contract - SMART Yield aUSDT smartYield
Type
Smart Contract - SMART Yield aUSDT seniorBond
Type
Smart Contract - SMART Yield aUSDT juniorBond
Type
Smart Contract - SMART Yield aUSDT controller
Type
Smart Contract - SMART Yield aUSDT oracle
Type
Smart Contract - SMART Yield Reward Pools Single Factory
Type
Smart Contract - SMART Yield Reward Pools cUSDC
Type
Smart Contract - SMART Yield Reward Pools crDAI
Type
Smart Contract - SMART Yield Reward Pools crUSDC
Type
Smart Contract - SMART Yield Reward Pools crUSDT
Type
Smart Contract - SMART Yield Reward Pools Multi Factory
Type
Smart Contract - SMART Yield Reward Pools aDAI
Type
Smart Contract - SMART Yield Reward Pools aUSDC
Type
Smart Contract - SMART Yield Reward Pools aUSDT
Type
Smart Contract - SMART Yield Reward Pools aGUSD
Type
Smart Contract - SMART Exposure Controller
Type
Smart Contract - SMART Exposure EPool Helper
Type
Smart Contract - SMART Exposure EPool Periphery
Type
Smart Contract - SMART Exposure EToken Factory
Type
Smart Contract - SMART Exposure EPool WETH/USDC
Type
Smart Contract - SMART Exposure EPool WETH/WBTC
Type
Smart Contract - SMART Exposure EToken WETH/USDC 25/75
Type
Smart Contract - SMART Exposure EToken WETH/USDC 50/50
Type
Smart Contract - SMART Exposure EToken WETH/USDC 75/25
Type
Smart Contract - SMART Exposure EToken WETH/WBTC 25/75
Type
Smart Contract - SMART Exposure EToken WETH/WBTC 50/50
Type
Smart Contract - SMART Exposure WToken WETH/WBTC 75/25
Type
Smart Contract - SMART Exposure Keeper Subsidy Pool
Type
Smart Contract - SMART Yield amDAI bondModel
Type
Smart Contract - SMART Yield amDAI aaveProvider
Type
Smart Contract - SMART Yield amDAI smartYield (bb_amDAI)
Type
Smart Contract - SMART Yield amDAI seniorBond
Type
Smart Contract - SMART Yield amDAI juniorBond
Type
Smart Contract - SMART Yield amDAI controller
Type
Smart Contract - SMART Yield amDAI oracle
Type
Smart Contract - SMART Yield amUSDC bondModel
Type
Smart Contract - SMART Yield amUSDCaaveProvider
Type
Smart Contract - SMART Yield amUSDC smartYield (bb_amUSDC)
Type
Smart Contract - SMART Yield amUSDC seniorBond
Type
Smart Contract - SMART Yield amUSDC juniorBond
Type
Smart Contract - SMART Yield amUSDC controller
Type
Smart Contract - SMART Yield amUSDC oracle
Type
Smart Contract - SMART Yield amUSDT bondModel
Type
Smart Contract - SMART Yield amUSDT aaveProvider
Type
Smart Contract - SMART Yield amUSDT smartYield (bb_amUSDT)
Type
Smart Contract - SMART Yield amUSDT seniorBond
Type
Smart Contract - SMART Yield amUSDT juniorBond
Type
Smart Contract - SMART Yield amUSDT controller
Type
Smart Contract - SMART Yield amUSDT oracle
Type
Smart Contract - SMART Yield Reward Pools bb_amDAI
Type
Smart Contract - SMART Yield Reward Pools bb_amUSDC
Type
Smart Contract - SMART Yield Reward Pools bb_amUSDT
Type
Smart Contract - SMART Exposure Controller
Type
Smart Contract - SMART Exposure EToken Factory
Type
Smart Contract - SMART Exposure EPool Periphery
Type
Smart Contract - SMART Exposure EPool Helper
Type
Smart Contract - SMART Exposure Epool WETH/USDC
Type
Smart Contract - SMART Exposure Epool WETH/WBTC
Type
Smart Contract - SMART Exposure Etoken WETH/USDC 75/25
Type
Smart Contract - SMART Exposure Etoken WETH/USDC 25/75
Type
Smart Contract - SMART Exposure Etoken WETH/USDC 50/50
Type
Smart Contract - SMART Exposure Etoken WETH/WBTC 75/25
Type
Smart Contract - SMART Exposure Etoken WETH/WBTC 25/75
Type
Smart Contract - SMART Exposure Etoken WETH/WBTC 5050
Type
Smart Contract - PolygonCommunityVault
Type
Smart Contract - PolygonTokenHarvester
Type
Smart Contract - PolygonDAORoot
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