Gains Network
Program Overview
Gains Network is building the decentralized finance ecosystem of the future. Their first product, gTrade is a capital-efficient decentralized leveraged trading platform on Polygon and Arbitrum.
For more information about Gains Network, please visit https://gains.trade/.
This bug bounty program is focused on their smart contracts, website and app and is focused on preventing:
- Direct theft of any user funds, whether at-rest or in-motion, other than unclaimed yield
- Permanent freezing of funds
- Insolvency
- Theft of unclaimed yield
- Permanent freezing of unclaimed yield
- Temporary freezing of funds for at least 1 day
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.
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.
Payouts are handled by the Gains Network team directly and are denominated in USD. However, payouts are done in GNS and DAI, with the choice of the ratio at the discretion of the team.
Smart Contract
- Critical
- Level
- Up to USD $400,000
- Payout
- High
- Level
- USD $50,000
- Payout
- Medium
- Level
- USD $25,000
- Payout
- Low
- Level
- USD $10,000
- Payout
Websites and Applications
- Critical
- Level
- USD $20,000
- Payout
- High
- Level
- USD $5,000
- Payout
- Medium
- Level
- USD $2,500
- Payout
- Low
- Level
- USD $1,000
- Payout
Assets in scope
- Smart Contract - GainsNetworkTokenType
- Smart Contract - GainsNetworkTokenType
- Smart Contract - GFarm2TokenType
- Smart Contract - GFarmTokenType
- Smart Contract - GFarmNft1Type
- Smart Contract - GainsNetworkNft1Type
- Smart Contract - GFarmNft2Type
- Smart Contract - GainsNetworkNft2Type
- Smart Contract - GFarmNft3Type
- Smart Contract - GainsNetworkNft3Type
- Smart Contract - GFarmNft4Type
- Smart Contract - GainsNetworkNft4Type
- Smart Contract - GFarmNft5Type
- Smart Contract - GainsNetworkNft5Type
- Smart Contract - GFarmNFTType
- Smart Contract - ERC20BridgeType
- Smart Contract - ERC20BridgeType
- Smart Contract - ERC721LockingBridgeType
- Smart Contract - ERC721MintingBridgeType
- Smart Contract - GTokenV6_3_2 (gDAI)Type
- Smart Contract - GTokenV6_3_2 (gDAI)Type
- Smart Contract - GToken (gETH)Type
- Smart Contract - GToken (gETH)Type
- Smart Contract - GTokenOpenPnlFeed (gDAI)Type
- Smart Contract - GTokenOpenPnlFeed (gDAI)Type
- Smart Contract - GTokenLockedDepositNft (gNFT-DAI)Type
- Smart Contract - GTokenLockedDepositNft (gNFT-DAI)Type
- Smart Contract - GNSTradingCallbacksType
- Smart Contract - GNSTradingCallbacksType
- Smart Contract - GNSBorrowingFeesType
- Smart Contract - GNSBorrowingFeesType
- Smart Contract - GNSMultiCollatDiamondType
- Smart Contract - GNSMultiCollatDiamondType
- Smart Contract - GNSPriceAggregatorType
- Smart Contract - GNSPriceAggregatorType
- Smart Contract - GNSTradingType
- Smart Contract - GNSTradingType
- Smart Contract - GNSStakingV6_4_1Type
- Smart Contract - GNSStakingV6_4_1Type
- Smart Contract - GNSCompensationHandlerV6_4_1Type
- Smart Contract - GNSCompensationHandlerV6_4_1Type
- Smart Contract - GNSOracleRewardsType
- Smart Contract - GNSOracleRewardsType
- Smart Contract - GNSReferralsV6_2Type
- Smart Contract - GNSReferralsV6_2Type
- Smart Contract - GNSPairInfosV6_1Type
- Smart Contract - GNSPairInfosV6_1Type
- Smart Contract - GNSPairsStorageV6Type
- Smart Contract - GNSPairsStorageV6Type
- Smart Contract - GFarmTradingStorageV5Type
- Smart Contract - GNSTradingStorageV5Type
- Smart Contract - GFarmTokenMigrationType
- Smart Contract - GFarmType
- Smart Contract - GFarmNftSwapType
- TargetWebsites and Applications - Trade WebType
- TargetWebsites and Applications - Main Web/AppType
All of the smart contracts of Gains Network can be found at https://github.com/GainsNetwork and https://github.com/GainsNetwork/GNS-ethereum. 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
- Direct theft of any user funds, whether at-rest or in-motion, other than unclaimed yieldCriticalImpact
- InsolvencyCriticalImpact
- Permanent freezing of fundsCriticalImpact
- Theft of unclaimed yieldHighImpact
- Permanent freezing of unclaimed yieldHighImpact
- Temporary freezing of funds for at least 1 dayHighImpact
- Miner-extractable value (MEV)MediumImpact
- Block stuffing for profitMediumImpact
- Griefing (e.g. no profit motive for an attacker, but damage to the users or the protocol)MediumImpact
- Unbounded gas consumptionMediumImpact
- Theft of gasMediumImpact
- Smart contract unable to operate due to lack of fundsLowImpact
- Smart contract fails to deliver promised returns, but doesn’t lose valueLowImpact
Websites and Applications
- Ability to execute system commandsCriticalImpact
- Extract Sensitive data/files from the server such as /etc/passwdCriticalImpact
- Taking Down the application/websiteCriticalImpact
- Stealing User CookiesCriticalImpact
- Signing transactions for other usersCriticalImpact
- Redirection of user deposits and withdrawalsCriticalImpact
- Wallet interaction modification resulting in financial lossCriticalImpact
- Subdomain takeover resulting in financial loss (applicable for subdomains with addresses published)CriticalImpact
- Direct theft of user fundsCriticalImpact
- Tampering with transactions submitted to the user’s walletCriticalImpact
- Submitting malicious transactions to an already-connected walletCriticalImpact
- Spoofing content on the target application (Persistent)HighImpact
- Users Confidential information disclosure such as EmailHighImpact
- Subdomain Takeover without financial loss (applicable for subdomains with no addresses published)HighImpact
- Privilege escalation to access unauthorized functionalitiesHighImpact
- Changing details of other users without direct financial impact (CSRF)MediumImpact
- Third-Party API keys leakage that demonstrates loss of funds or modification on the websiteMediumImpact
- Redirecting users to malicious websites (Open Redirect)MediumImpact
- Framing sensitive pages leading to financial loss (ClickJacking)LowImpact
- Any impact involving a publicly released CVE without a working PoCLowImpact
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
- Content spoofing / Text injection issues
- Self-XSS
- Captcha bypass using OCR
- CSRF with no security impact (logout CSRF, change language, etc.)
- Missing HTTP Security Headers (such as X-FRAME-OPTIONS) or cookie security flags (such as “httponly”)
- Server-side information disclosure such as IPs, server names, and most stack traces
- Vulnerabilities used to enumerate or confirm the existence of users or tenants
- Vulnerabilities requiring unlikely user actions
- URL Redirects (unless combined with another vulnerability to produce a more severe vulnerability)
- Lack of SSL/TLS best practices
- DDoS vulnerabilities
- Attacks requiring privileged access from within the organization
- Feature requests
- Best practices
- Vulnerabilities primarily caused by browser/plugin defects
- Any vulnerability exploit requiring CSP bypass resulting from a browser bug
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