THORChain
Submit a BugProgram Overview
THORChain is a decentralised cross-chain liquidity protocol based on Tendermint & Cosmos-SDK and utilising Threshold Signature Schemes (TSS). It does not peg or wrap assets, it simply determines how to move them in response to user-actions.
THORChain observes incoming user deposits to vaults, executes business logic (swap, add/remove liquidity), and processes outbound transactions. THORChain is primarily a leaderless vault manager, ensuring that every stage of the process is byzantine-fault-tolerant.
THORChain's key objective is to be resistant to centralisation and capture whilst facilitating cross-chain liquidity. THORChain only secures the assets in its vaults, and has economic guarantees that those assets are safe.
For more information about how THORChain works, please visit https://docs.thorchain.org/technology.
The bug bounty program covers its smart contracts and core THORChain functionality, and is focused on receiving critical bug reports covering impacts as stated in the Impacts in Scope section. Vulnerabilities below the Critical severity level are not accepted under the bug bounty program.
Nine Realms has joined the efforts to triage and verify vulnerabilities of this bug bounty program.
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.
THORChain core team members, auditing firms contracted by THORChain, as well as contributors on Treasury payroll are not permitted to participate in this bug bounty program. If an existing pull request or live issue on GitLab addresses the vulnerability reported, it will not be eligible for a reward. Keep in mind that there could be a known-issue that has not been made publicly available yet and is in the process of being patched.
The reward is dependent on the amount of funds that can be taken or permanently frozen per vulnerability exploited over the span of 30 minutes, capped at 10% of the funds that can be taken or permanently frozen, up to USD 1 000 000. For vulnerabilities that can be exploited and executed in a single non-ongoing attack over a single block, the cap is USD 1 000 000.
In order to qualify for the reward, a PoC must be included. Exploited vulnerabilities, as well as known issues, are not eligible for a reward.
Additional information on payouts:
Smart Contract Levels:
Critical: Loss or lockup of funds
- Payout: 10% of funds at risk, up to $1,000,000
High: Codepath that causes a Chain Halt via a consensus failure, panic, or otherwise
- Payout: Up to $100,000
Medium: Accounting issues, LP/Bond invariants, Incorrect disbursement of rewards, etc
- Payout: Up to $10,000
Payouts are handled by the THORChain treasury in coordination with the THORChain team and are denominated in USD. However, payouts are done completely in RUNE. Triaging and verification for this bug bounty program is provided by Nine Realms and THORSec. Note that the “High” and “Medium” Bounty Levels are capped at $100,000 and $10,000 respectively. The payout for a valid vulnerability in these levels may be less than the upper limit, and is determined based on likelihood, ease, and severity of exploit at Nine Realms and THORSec’s discretion.
Smart Contract
- Critical
- Level
- 10% of funds at risk, Up to USD $1,000,000
- Payout
- High
- Level
- Up to USD $100,000
- Payout
- Medium
- Level
- Up to USD $10,000
- Payout
Assets in scope
- Smart Contract - ETH Router (non-Bifrost)Type
- Smart Contract - Core THORChain functionalityType
- Smart Contract - Bifrost Core Functionality (not including pkg/chainclients)Type
- Smart Contract - Bifrost Chain Client (Binance)Type
- Smart Contract - Bifrost Chain Client (BitcoinCash)Type
- Smart Contract - Bifrost Chain Client (Litecoin)Type
- Smart Contract - Bifrost Chain Client (Bitcoin)Type
- Smart Contract - Bifrost Chain Client (Ethereum)Type
Bifrost-related vulnerabilities are only considered as in-scope if they affect one of the chains mentioned in the Assets in Scope table. Vulnerabilities that only affect other chains are not considered in-scope.
While the Tendermint application (https://gitlab.com/thorchain/thornode/-/tree/develop/app) is considered as in-scope, Cosmos SDK dependencies themselves are out-of-scope.
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
- Critical Smart Contract ImpactCriticalImpact
- High Smart Contract ImpactHighImpact
- Medium Smart Contract ImpactMediumImpact
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
- Logic errors
- Congestion and scalability
- Sybil attacks
The following activities are prohibited by the 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