IMPORTANT: If you find a security issue, you can report it to our bug bounty program on HackerOne. DO NOT open a public issue on the repository.
As part of our Coordinated Vulnerability Disclosure Policy, we operate a bug bounty program with Hacker One.
See the policy linked above for more details on submissions and rewards and read this blog post for the program scope.
The following is a list of examples of the kinds of bugs we're most interested in for the Cosmos SDK. See here for vulnerabilities we are interested in for Tendermint and other lower-level libraries (eg. IAVL).
x/auth
x/bank
x/capability
x/staking
x/slashing
x/evidence
x/distribution
x/ibc
x/ibc-transfer
x/mint
We are interested in bugs in other modules, however the above are most likely to have significant vulnerabilities, due to the complexity / nuance involved. We also recommend you to read the specification of each module before digging into the code.
- Integer operations on tx parameters, especially
sdk.Int
/sdk.Dec
- Gas calculation & parameter choices
- Tx signature verification (see
x/auth/ante
) - Possible Node DoS vectors (perhaps due to gas weighting / non constant timing)
- HD key derivation, local and Ledger, and all key-management functionality
- Side-channel attack vectors with our implementations
- e.g. key exfiltration based on time or memory-access patterns when decrypting privkey
The Cosmos SDK team uses the following disclosure process:
- After a security report is received, the Cosmos SDK team works to verify the issue and confirm its severity level using Common Vulnerability Scoring System (CVSS).
- The Cosmos SDK team collaborates with the Tendermint and Gaia teams to determine the vulnerability’s potential impact on the Cosmos Hub and partners.
- Patches are prepared in private repositories for eligible releases of Cosmos SDK. See Stable Release Policy for a list of eligible releases.
- If it is determined that a CVE-ID is required, we request a CVE through a CVE Numbering Authority.
- We notify the community that a security release is coming to give users time to prepare their systems for the update. Notifications can include forum posts, tweets, and emails to partners and validators.
- 24 hours after the notification, fixes are applied publicly and new releases are issued.
- The Gaia team updates their Tendermint Core and Cosmos SDK dependencies to use these releases and then issues new Gaia releases.
- After releases are available for Tendermint Core, Cosmos SDK, and Gaia, we notify the community again through the same channels. We also publish a Security Advisory on Github and publish the CVE, as long as the Security Advisory and the CVE do not include information on how to exploit these vulnerabilities beyond the information that is available in the patch.
- After the community is notified, Tendermint pays out any relevant bug bounties to submitters.
- One week after the releases go out, we publish a post with details and our response to the vulnerability.
This process can take some time. Every effort is made to handle the bug in as timely a manner as possible. However, it's important that we follow this security process to ensure that disclosures are handled consistently and to keep Cosmos SDK and its downstream dependent projects--including but not limited to Gaia and the Cosmos Hub--as secure as possible.
Communications to partners usually include the following details:
- Affected version or versions
- New release version
- Impact on user funds
- For timed releases, a date and time that the new release will be made available
- Impact on the partners if upgrades are not completed in a timely manner
- Potential required actions if an adverse condition arises during the security release process
An example notice looks like:
Dear Cosmos SDK partners,
A critical security vulnerability has been identified in Cosmos SDK vX.X.X.
User funds are NOT at risk; however, the vulnerability can result in a chain halt.
This notice is to inform you that on [[**March 1 at 1pm EST/6pm UTC**]], we will be releasing Cosmos SDK vX.X.Y to fix the security issue.
We ask all validators to upgrade their nodes ASAP.
If the chain halts, validators with sufficient voting power must upgrade and come online for the chain to resume.
The following timeline is an example of triage and response. Each task identifies the required roles and team members; however, multiple people can play each role and each person may play multiple roles.
- Request CVE number (ADMIN)
- Gather emails and other contact info for validators (COMMS LEAD)
- Test fixes on a testnet (COSMOS SDK ENG)
- Write “Security Advisory” for forum (COSMOS SDK LEAD)
- Post “Security Advisory” pre-notification on forum (COSMOS SDK LEAD)
- Post Tweet linking to forum post (COMMS LEAD)
- Announce security advisory/link to post in various other social channels (Telegram, Discord) (COMMS LEAD)
- Send emails to partners or other users (PARTNERSHIPS LEAD)
- Cut Cosmos SDK releases for eligible versions (COSMOS SDK ENG)
- Cut Gaia release for eligible versions (GAIA ENG)
- Post “Security releases” on forum (COSMOS SDK LEAD)
- Post new Tweet linking to forum post (COMMS LEAD)
- Remind everyone using social channels (Telegram, Discord) that the release is out (COMMS LEAD)
- Send emails to validators and other users (COMMS LEAD)
- Publish Security Advisory and CVE if the CVE has no sensitive information (ADMIN)
- Write forum post with exploit details (COSMOS SDK LEAD)
- Approve payout on HackerOne for submitter (ADMIN)
- Publish CVE if it has not yet been published (ADMIN)
- Publish forum post with exploit details (COSMOS SDK ENG, COSMOS SDK LEAD)