Ocean Protocol
Submit a BugProgram Overview
Ocean Protocol unlocks the value of data.
Data owners and consumers use the Ocean Market app to publish, discover, and consume data in a secure, privacy-preserving fashion. OCEAN holders stake liquidity to data pools.
Developers use Ocean libraries to build their own data wallets, data marketplaces, and more.
Ocean datatokens wrap data services as industry-standard ERC721 NFTs and ERC20 tokens. This enables data wallets, data exchanges, and data co-ops by leveraging crypto wallets, exchanges, and other decentralized finance (DeFi) tools.
Special Case: For this specific bounty program, the Ocean Protocol Foundation is allowing testing on their public testnets.
For more information about Ocean Protocol, please visit https://oceanprotocol.com/.
This bug bounty program is focused on their smart contracts and is focused on preventing:
- Bugs that could result in funds being lost
- Permanent freezing of funds
- Unauthorized protocol changes (e.g. to fees)
Rewards by Threat Level
Rewards are distributed according to the impact of the vulnerability based on the Immunefi Vulnerability Severity Classification System V2. 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 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. For this specific bounty program, the Ocean Protocol Foundation is allowing testing on their public testnets.
All known issues highlighted in the github repo and audit report below are considered as out of scope:
- https://github.com/oceanprotocol/contracts/issues
- https://github.com/oceanprotocol/contracts/blob/v4main/docs/Ocean_Protocol_Smart_Contract_Security_Audit_Report_Halborn_Final%20(1).pdf
The Ocean Protocol Foundation does not require KYC to be done for this program. However, bug bounty hunters submitting a report and wanting a reward will have to provide an invoice submitted via the Request invoicing platform. The invoice needs to include the details below:
- Email address
- Invoice date
- Country
- Description of bug bounty
- Granted amount (OCEAN)
- Payment details - crypto-wallet address
Payouts are handled by the Ocean Protocol Foundation team directly and are denominated in USD. However, payouts are done in OCEAN.
Smart Contract
- Critical
- Level
- USD $100,000
- Payout
- High
- Level
- USD $30,000
- Payout
- Medium
- Level
- USD $5,000
- Payout
Websites and Applications
- Critical
- Level
- USD $100,000
- Payout
- High
- Level
- USD $30,000
- Payout
- Medium
- Level
- USD $5,000
- Payout
Assets in scope
- Smart Contract - ERC721FactoryType
- Smart Contract - OPFCommunityFeeCollectorType
- Smart Contract - IDispenserType
- Smart Contract - IERC1271Type
- Smart Contract - IERC20Type
- TargetSmart Contract - IERC20TemplateType
- TargetSmart Contract - IERC721TemplateType
- Smart Contract - IERC725XType
- Smart Contract - IERC725YType
- TargetSmart Contract - IFactoryRouterType
- TargetSmart Contract - IFixedRateExchangeType
- Smart Contract - IPoolType
- Smart Contract - ISideStakingType
- Smart Contract - IV3ERC20Type
- Smart Contract - IV3FactoryType
- Smart Contract - BConstType
- Smart Contract - BFactoryType
- Smart Contract - BMathType
- Smart Contract - BNumType
- Smart Contract - BPoolType
- Smart Contract - BTokenType
- TargetSmart Contract - DispenserType
- Smart Contract - FixedRateExchangeType
- TargetSmart Contract - SideStakingType
- Smart Contract - FactoryRouterType
- Smart Contract - ERC20TemplateType
- Smart Contract - ERC20TemplateEnterpriseType
- Smart Contract - ERC721TemplateType
- Smart Contract - DeployerType
- Smart Contract - ERC20RolesType
- Smart Contract - ERC721RolesAddressType
- Smart Contract - OwnableType
- Smart Contract - SafeERC20Type
- Smart Contract - UtilsLibType
- Smart Contract - AddressType
- Smart Contract - ContextType
- Smart Contract - ERC165Type
- Smart Contract - ERC721Type
- TargetSmart Contract - EnumerableMapType
- TargetSmart Contract - EnumerableSetType
- Smart Contract - IERC165Type
- Smart Contract - IERC721Type
- TargetSmart Contract - IERC721EnumerableType
- TargetSmart Contract - IERC721MetadataType
- TargetSmart Contract - IERC721ReceiverType
- Smart Contract - StringsType
- Smart Contract - ERC725OceanType
- Websites and Applications - Ocean.jsType
- Websites and Applications - Ocean.pyType
- Websites and Applications - AquariusType
- Websites and Applications - ProviderType
- Websites and Applications - Compute2Data backend: Operator-serviceType
- Websites and Applications - Compute2Data backend: Operator-engineType
- Websites and Applications - Compute2Data backend: Pod-configurationType
- Websites and Applications - Compute2Data backend: Pod-publishingType
- Websites and Applications - Ocean Market Live deploymentType
- Websites and Applications - Ocean MarketType
All smart contracts of Ocean Protocol can be found at https://github.com/oceanprotocol/contracts/tree/v4main. 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
- Bugs that could result in funds being lostCriticalImpact
- Permanent freezing of fundsCriticalImpact
- Unauthorized protocol changes (e.g. to fees)CriticalImpact
- Temporary freezing of fundsHighImpact
- Unauthorized access to Ocean-published datasetsHighImpact
- A bug that could cause incorrect payouts of fee amountsHighImpact
- A bug that could prevent or delay a fee collector’s ability to process or retrieve paymentsHighImpact
- An economic attack outside the bounds of natural network activity (e.g. adding liquidity, swapping datatokens) that could result in >USD 10 000 of being lost that isn’t a known MEV attack.HighImpact
- A bug that could result in private information being stolen. This includes private keys, and information in Ocean-created data assets that was meant to remain private.HighImpact
- Smart contract unable to operate due to lack of token fundsMediumImpact
- Theft of gas, or unbounded gas consumptionMediumImpact
- Griefing (e.g. no profit motive for an attacker, but damage to users or protocol)MediumImpact
- A role in data NFT or datatoken getting rights that was outside of its design intentMediumImpact
- A bug that could cause the service functionality / utility to be degraded but not disabledMediumImpact
Websites and Applications
- Ability to execute system commandsCriticalImpact
- Extract Sensitive data/files from the server such as /etc/passwdCriticalImpact
- Taking Down the application/websiteCriticalImpact
- Bypassing AuthenticationCriticalImpact
- Stealing User CookiesCriticalImpact
- Signing transactions for other usersCriticalImpact
- Subdomain takeover resulting in financial loss (applicable for subdomains with addresses published)CriticalImpact
- Redirection of user deposits and withdrawalsCriticalImpact
- Direct theft of user fundsCriticalImpact
- Wallet interaction modification resulting in financial lossCriticalImpact
- Tampering with transactions submitted to the user’s walletCriticalImpact
- Unauthorized access to datasetsCriticalImpact
- Submitting malicious transactions to an already-connected walletCriticalImpact
- Exposure of private information (keys, PII)CriticalImpact
- Confidential information disclosure of Ocean-published asset (dataset or algorithm)CriticalImpact
- Spoofing content on the target application (Persistent)HighImpact
- Users Confidential information disclosure such as EmailHighImpact
- Privilege escalation to access unauthorized functionalitiesHighImpact
- Subdomain Takeover without financial loss (applicable for subdomains with no addresses published)HighImpact
- 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
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)
- Bugs already identified in external third-party audits. (OPF will publish when available).
- Known Issues that are already caught on the repo issues/PRs
- Issues reported on other branch than main
- Public deployments of the above repos. Deployments can be used as helpers, but penetration tests or similar are out of scope. Purpose of the bounty is to test the code in the repo.
- Compute2Data in market is WIP, so currently out of scope. This paragraph will be updated when full C2D support is ready.
Smart Contracts and Blockchain
- Natural network activity (e.g. swapping datatokens or adding liquidity to datatoken pools) whose involved mechanisms could result in unprofitable actions for the particular stakeholder (e.g. slippage, impermanent loss)
- Attacks related to multisig governance of addresses that control protocol changes
- Frontrunning, backrunning, sandwich attacks, and related known MEV attacks
- 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:
- 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