Mynt and Zero
Mynt and Zero bug bounty program includes in its scope actively used contracts as part of Sovryn’s Mynt and Zero smart contract systems and the accompanying frontend web application. Mynt is a BTC-backed stablecoin aggregator. Zero is a decentralized borrowing protocol.
PoC required
Rewards
Rewards by Threat Level
Mainnet assets:
Reward amount is % of the funds directly affected up to a maximum of:
$1,000,000Minimum reward to discourage security researchers from withholding a bug report:
$50,000Please review how rewards are distributed based on the Immunefi Vulnerability Severity Classification System V2.2. This is a simplified 5-level scale system with separate scales for Smart Contracts and Websites/Apps.
Rewards for critical smart contract bug reports will be further capped at 10% of direct funds at risk if the bug discovered is exploited. However, there is a minimum reward of USD 50 000.
In cases of repeatable attacks, only the first attack is considered unless the smart contract cannot be upgraded or paused. If the attack impacts a smart contract directly holding funds that cannot be upgraded or paused, the amount of funds at risk will be calculated with the first attack being at 100% of the funds that could be stolen and then a reduction of 25% from the amount of the first attack for every 300 blocks the attack needs for subsequent attacks from the first attack, rounded down. For avoidance of doubt, if a second attack would happen at 600 blocks and then a third at 900 blocks, the funds at risk would be counted at 50% and 25% from the first attack, respectively.
Payouts and Payout Requirements:
Payouts are handled by the Sovyrn team directly and are denominated in USD. However, payouts are done in RBTC and SOV. The payment is made up of 50% in RBTC and 50% in SOV in a 24 month vesting contract.
Sovyrn commits to honoring payouts according to the terms set out in this program at the time of report submission, and to treat this program as the agreement and source of truth concerning bug reports and responsible disclosures.
For the purposes of determining report validity, this is a Primacy of Impact program.
Learn more about report validity best practices here: Best Practice - Primacy of Impact vs Primacy of Rules.
KYC Requirements
Zero and Mynt does not have a Know Your Customer (KYC) requirement for bug bounty payouts.
Audit Discoveries and Known Issues
Bug reports covering previously-discovered bugs are not eligible for any reward through the bug bounty program. If a bug report covers a known issue, it may be rejected together with proof of the issue being known before escalation of the bug report via Immunefi.
Previous audits and known issues can be found at:
- https://github.com/DistributedCollective/sovryn-audits/blob/main/Smart%20Contract%20Audit_%20Zero.pdf
- https://github.com/trailofbits/publications/blob/master/reviews/LiquityProtocolandStabilityPoolFinalReport.pdf
- https://github.com/trailofbits/publications/blob/master/reviews/LiquityProxyContracts.pdf
- https://www.coinspect.com/liquity-audit/
- https://github.com/trailofbits/publications/blob/master/reviews/Liquity.pdf
- https://omniscia.io/sovryn-babelfish-protocol-v1/
- Issue with MocIntegration.sol when Fees are Introduced The function getDocFromDllrAndRedeemRBTC in MocIntegration.sol will always revert when fees are introduced for calling redeem (which is currently not the case) due to a require statement on line 86.
require( massetManager.redeemTo(address(doc), _dllrAmount, thisAddress) == _dllrAmount, "MocIntegration:: redeemed incorrect DoC amount" );
Once fees are introduced redeemTo would always return less than _dllrAmount.
-
Missing Bridge Check in tokensReceived The function tokensReceived in MassetManager.sol lacks a check to ensure that it is called from the bridge. If an external entity relies on this event, it could result in an error, unexpected behaviour, or token loss.
-
Two-Way Pointers Between Contracts Could Break Some contracts have two-way pointers that may break due to errors made by programmers or deployers. Ideally, modifying one contract should also modify the other. Examples of such contracts include MassetManager <-> DLLR, and MassetManager <-> BasketManagerV3.
-
mint Can be Called on MetaAssetToken While transfer, transferFrom, and transferWithPermit have recipient checks in place, mint does not. As a result, it can be called with the MetaAssetToken contract as a recipient.
-
Changing factor and bridge of a Basset Can Break Usage There is currently no check to ensure that there are no massets issued for a basset before changing its factor or bridge, which could potentially result in a bad ratio between masset and basset. I suggest a require statement be added to these functions.
-
Malicious Bridge Can Cause Griefing A malicious or compromised bridge for a specific basset could force a user to convert their massets into that basset using redeemByBridge in MassetManager, even if the user has no interest in the basset or does not trust the bridge or token. I recommend that a signature check be added to this function.
-
Lack of Owner Check in upgradeToV3 The call to upgradeToV3 is in a separate transaction from deployment or initialization, and could potentially be front-run. There is currently no owner check in place for this function.
Program Overview
This bug bounty program includes in its scope actively used contracts as part of Sovryn’s Mynt and Zero smart contract systems and the accompanying frontend web application.
Zero is a decentralized borrowing protocol that enables users to lock BTC collateral in a “line of credit” and borrow a BTC-backed stablecoin called ZUSD at 0% interest, up to a minimum collateral ratio. ZUSD can then be deposited into a stability pool to provide liquidity for liquidations, or redeem ZUSD at face value for the underlying BTC collateral if the ZUSD peg drops too far below its expected value of 1 ZUSD = 1 USD. More information about Zero can be found here.
Mynt is a BTC-backed stablecoin aggregator. Users can deposit BTC-backed stablecoins such as DOC and ZUSD and receive a new stablecoin called the Sovryn Dollar (DLLR). At any time, the DLLR can be burned and redeemed for one of the underlying stablecoins. The purpose of aggregating BTC-backed stablecoins this way is to aggregate previously fragmented liquidity markets for the underlying stablecoins, and to create a new stablecoin that is more resilient and scalable than either of the individual underlying stablecoins. For more information about Mynt and the Sovryn Dollar, please visit https://wiki.sovryn.com/en/sovryn-dapp/sovryn-dollar
For Whitehats: It is highly recommended that you review the details of this program in full. Although many Bug Bounty programs have standard terms and conditions, each also has their own unique details that are critical to your success.
Prior to submitting a report please review the Immunefi Bug Report Template and Best Practices.
KYC not required
No KYC information is required for payout processing.
Proof of Concept
Proof of concept is always required for all severities.
Prohibited Activities
- The following activities are prohibited by this bug bounty program. Violation of these rules can result in a temporary suspension or permanent ban from the Immunefi platform at the sole discretion of the Immunefi team, which may also result in: 1) the forfeiture and loss of access to all bug submissions, and 2) zero payout.
- Please note that Immunefi has no tolerance for spam/low-quality/incomplete bug reports, “beg bounty” behavior, and misrepresentation of assets and severity. Immunefi exists to protect the global crypto community, not facilitate grift.
- Any testing on mainnet or public testnet deployed code; all testing should be done on local-forks of either public testnet or mainnet
- 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 that are executed against project assets
- Automated testing of services that generates significant amounts of traffic
- Public disclosure of an unpatched vulnerability in an embargoed bounty
- Any other actions prohibited by the Immunefi Rules
Feasibility Limitations
The project may be receiving reports that are valid (the bug and attack vector are real) and cite assets and impacts that are in scope, but there may be obstacles or barriers to executing the attack in the real world. In other words, there is a question about how feasible the attack really is. Conversely, there may also be mitigation measures that projects can take to prevent the impact of the bug, which are not feasible or would require unconventional action and hence, should not be used as reasons for downgrading a bug's severity.
Therefore, Immunefi has developed a set of feasibility limitation standards which by default states what security researchers, as well as projects, can or cannot cite when reviewing a bug report.