Ref Finance
Submit a BugProgram Overview
Ref Finance is a community-led, multi-purpose DeFi platform built on NEAR Protocol. Ref takes full advantage of NEAR’s low fees, one-to-two second finality, and WebAssembly-based runtime (hello, Rust smart contracts!).
In addition to the advantages of being built on top of NEAR, Ref Finance provides:
- Multiple pools in one contract
- Atomic transactions
- Customisable pool fee
- Liquidity Aggregation across networks
For more information about Ref Finance, please visit https://www.ref.finance/.
Rewards by Threat Level
Rewards are distributed according to the impact of the vulnerability based on the Immunefi Vulnerability Severity Classification System V2.2. This is a simplified 5-level scale, with separate scales for websites/apps, smart contracts, and blockchains/DLTs, focusing on the impact of the vulnerability reported.
All web/app bug reports must come with a PoC with an end-effect impacting an asset-in-scope in order to be considered for a reward. Explanations and statements are not accepted as PoC and code is required. In addition, all bug reports must come with a suggestion for a fix in order to be considered for a reward.
Rewards for critical smart contract vulnerabilities are further capped at 10% of economic damage, with the main consideration being the funds affected in addition to PR and brand considerations, at the discretion of the team. However, there is a minimum reward of USD 50 000 for Critical smart contract bug reports.
Issues previously highlighted in the following audit report are considered as out of scope:
Payouts are handled by the Ref Finance team directly and are denominated in USD. However, payouts are done in USDT, USDC, NEAR, wNEAR or REF, at the discretion of the team.
Smart Contract
- Critical
- Level
- Up to USD $250,000
- Payout
- High
- Level
- USD $30,000
- Payout
- Medium
- Level
- USD $5,000
- Payout
- Low
- Level
- USD $1,000
- Payout
Websites and Applications
- Critical
- Level
- USD $50,000
- Payout
- High
- Level
- USD $10,000
- Payout
Assets in scope
- Smart Contract - Exchange (Github)Type
- Smart Contract - Exchange (Github)Type
- Smart Contract - Exchange (Github)Type
- Smart Contract - Exchange (Github)Type
- Smart Contract - Exchange (Github)Type
- Smart Contract - Exchange (Github)Type
- TargetSmart Contract - Exchange (Github)Type
- Smart Contract - Exchange (Github)Type
- Smart Contract - Exchange (Github)Type
- Smart Contract - Exchange (Github)Type
- Smart Contract - Exchange (Github)Type
- Smart Contract - Exchange (Github)Type
- Smart Contract - Exchange (Github)Type
- Smart Contract - Exchange (Github)Type
- Smart Contract - Exchange (Github)Type
- Smart Contract - Exchange (Github)Type
- Smart Contract - Boosted Farming (Github)Type
- Smart Contract - Boosted Farming (Github)Type
- TargetSmart Contract - Boosted Farming (Github)Type
- TargetSmart Contract - Boosted Farming (Github)Type
- Smart Contract - Boosted Farming (Github)Type
- Smart Contract - Boosted Farming (Github)Type
- Smart Contract - Boosted Farming (Github)Type
- Smart Contract - Boosted Farming (Github)Type
- TargetSmart Contract - Boosted Farming (Github)Type
- Smart Contract - Boosted Farming (Github)Type
- Smart Contract - Boosted Farming (Github)Type
- Smart Contract - Boosted Farming (Github)Type
- Smart Contract - Boosted Farming (Github)Type
- Smart Contract - Boosted Farming (Github)Type
- Smart Contract - Boosted Farming (Github)Type
- TargetSmart Contract - Boosted Farming (Github)Type
- TargetSmart Contract - Boosted Farming (Github)Type
- Smart Contract - Boosted Farming (Github)Type
- Smart Contract - Boosted Farming (Github)Type
- Smart Contract - Boosted Farming (Github)Type
- Smart Contract - Boosted Farming (Github)Type
- Smart Contract - Boosted Farming (Github)Type
- Smart Contract - veToken (Github)Type
- Smart Contract - veToken (Github)Type
- Smart Contract - veToken (Github)Type
- Smart Contract - veToken (Github)Type
- Smart Contract - veToken (Github)Type
- Smart Contract - veToken (Github)Type
- Smart Contract - veToken (Github)Type
- Smart Contract - veToken (Github)Type
- Smart Contract - veToken (Github)Type
- Smart Contract - veToken (Github)Type
- Smart Contract - veToken (Github)Type
- Smart Contract - veToken (Github)Type
- Smart Contract - veToken (Github)Type
- Smart Contract - veToken (Github)Type
- Smart Contract - veToken (Github)Type
- Smart Contract - veToken (Github)Type
- Smart Contract - veToken (Github)Type
- Smart Contract - veToken (Github)Type
- Smart Contract - veToken (Github)Type
- Smart Contract - veToken (Github)Type
- Smart Contract - Staking (Github)Type
- Smart Contract - Staking (Github)Type
- Smart Contract - Staking (Github)Type
- Smart Contract - Staking (Github)Type
- Smart Contract - Staking (Github)Type
- Smart Contract - Staking (Github)Type
- TargetWebsites and Applications - Web/AppType
All smart contracts of Ref Finance can be found at https://github.com/ref-finance. 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
- Manipulation of governance voting result deviating from voted outcome and resulting in a direct change from intended effect of original resultsCriticalImpact
- 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 funds (including unclaimed yield) for any amount of timeHighImpact
- Smart contract unable to operate due to lack of token fundsMediumImpact
- Block stuffingMediumImpact
- Griefing (e.g. no profit motive for an attacker, but damage to the users or the protocol)MediumImpact
- Theft of gasMediumImpact
- Unbounded gas consumptionMediumImpact
- Smart contract fails to work correctly, but doesn’t lose valueLowImpact
Websites and Applications
- Execute arbitrary system commandsCriticalImpact
- Retrieve sensitive data/files from a running server such as /etc/shadow, database passwords, and blockchain keys(this does not include non-sensitive environment variables, open source code, or usernames)CriticalImpact
- Taking Down the application/websiteCriticalImpact
- Taking state-modifying authenticated actions (with or without blockchain state interaction) on behalf of other users without any interaction by that user, such as, changing registration information, commenting, voting, making trades, withdrawals, etc.CriticalImpact
- Subdomain takeover with already-connected wallet interactionCriticalImpact
- Direct theft of user fundsCriticalImpact
- Malicious interactions with an already-connected wallet such as modifying transaction arguments or parameters, substituting contract addresses, submitting malicious transactionsCriticalImpact
- Injecting/modifying the static content on the target application without Javascript (Persistent) such as HTML injection without Javascript, replacing existing text with arbitrary text, arbitrary file uploads, etc.HighImpact
- Changing sensitive details of other users (including modifying browser local storage) without already-connected wallet interaction and with up to one click of user interaction, such as email or password of the victim, etc.HighImpact
- Improperly disclosing confidential user information such as email address, phone number, physical address, etc.HighImpact
- Subdomain takeover without already-connected wallet interactionHighImpact
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
Websites and Apps
- Theoretical vulnerabilities without any proof or demonstration
- Attacks requiring physical access to the victim device
- Attacks requiring access to the local network of the victim
- Reflected plain text injection ex: url parameters, path, etc.
- This does not exclude reflected HTML injection with or without javascript
- This does not exclude persistent plain text injection
- Self-XSS
- Captcha bypass using OCR without impact demonstration
- CSRF with no state modifying security impact (ex: logout CSRF)
- Missing HTTP Security Headers (such as X-FRAME-OPTIONS) or cookie security flags (such as “httponly”) without demonstration of impact
- Server-side non-confidential information disclosure such as IPs, server names, and most stack traces
- Vulnerabilities used only to enumerate or confirm the existence of users or tenants
- Vulnerabilities requiring un-prompted, in-app user actions that are not part of the normal app workflows
- Lack of SSL/TLS best practices
- DDoS vulnerabilities
- Feature requests
- Issues related to the frontend without concrete impact and PoC
- Best practices issues without concrete impact and PoC
- Vulnerabilities primarily caused by browser/plugin defects
- Leakage of non sensitive api keys ex: etherscan, Infura, Alchemy, etc.
- Any vulnerability exploit requiring browser bugs for exploitation. ex: CSP bypass
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