Hunt prep
Before you test Basin Invitational
What 19 disclosed reports say about Basin Invitational: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 7 | 0 | – | – | $0 |
| Smart contracts lesson | 4 | 0 | – | – | $0 |
| DoS lesson | 3 | 0 | – | – | $0 |
| Leaked secrets lesson | 1 | 0 | – | – | $0 |
| Memory corruption lesson | 1 | 0 | – | – | $0 |
| Access control lesson | 1 | 0 | – | – | $0 |
| Race condition lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Stable2::calcLpTokenSupply() function cannot convert under certain circumstances, DoSing calcReserveAtRatioLiquidity
The function should be modified to not revert on non-convergence, or the PriceData values for the specific case should be tweaked to narrow the range.
Disclosed
-
For extreme ratios, getRatiosFromPriceSwap will return data for which is impossible to converge into a reserve
The issue was fixed by improving the step size to ensure that the maxStep size can never exceed the j reserve.
Disclosed
-
WellUpgradeable can be upgraded by anyone
Add the onlyOwner modifier to the _authorizeUpgrade function to restrict upgrade permissions.
Disclosed
-
Incorrectly assigned decimal1 parameter upon decoding
The check should be changed to test if decimal1 is 0 before setting it to 18.
Disclosed
-
In Stable2LUT1::getRatiosFromPriceLiquidity , in extreme cases, updateReserve will start breaking
The step size was improved so the maximum step can never exceed the j reserve, which the sponsor says resolved both issues.
Disclosed
-
Pumps are not updated in the shift() and sync() functions, allowing oracle manipulation
The issue was fixed by updating the Pumps in shift() and sync().
Disclosed
-
Useless Modifier and Bad Assumptions in Constructor
The report suggests not assuming a constant block rate or implementing a function to update BLOCK_TIME periodically, but the project acknowledged the issues as duplicates and did not state a fix.
Disclosed
-
Single hardcoded cap used for multiple tokens in a pump causing some assets to be more stale, while having no effects on other stable assets
The pump should allow token-specific caps for maximum increase and decrease, passed in as data during updates, instead of using a single hardcoded cap.
Disclosed
-
addLiquidity Sandwich Attack for unbalanced token deposits
The project stated that the attack can be mitigated by using the `minLpAmountOut` parameter to enforce slippage controls, and the judge agreed that user-defined slippage controls are an adequate mitigation.
Disclosed
-
Due to slot confusion, reserve amounts in the pump will be corrupted, resulting in wrong oracle values
The sload operation in both affected functions should be changed to use the correct slot offset by multiplying maxI by 32.
Disclosed
-
Aquifer is vulnerable to Metamorphic Contract Attack
The project documented that Well implementations should not be able to self-destruct, and the report recommends removing the cloneDeterministic feature.
Disclosed
-
Long term denial of service due to lack of fees in Well
Introduce swap fees to make denial of service too costly, and note that private mempools or higher priority fees also mitigate it.
Disclosed
-
Treating of BLOCK_TIME as permanent will cause serious economic flaws in the oracle when block times change
The block time parameter should be made changeable, with a freeze period allowing liquidity providers to withdraw if they disagree.
Disclosed
-
Memory corruption in getBytes32FromBytes() can likely lead to loss of funds
The function has been removed from the codebase.
Disclosed
-
The constant product invariant can be broken.
The sync function was modified to mint LP tokens to a recipient, preventing the invariant from breaking.
Disclosed