Hunt prep
Before you test Union Finance Update
What 9 disclosed reports say about Union Finance Update: 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 |
| Race condition lesson | 1 | 0 | – | – | $0 |
| Smart contracts 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.
-
Staker can perform rewards withdrawal every overdueBlocks less 1 and have zero frozenCoinAge
The reward accounting should use lifetime accumulators for staked, locked, and frozen amounts that are not reset on each reward claim, so that the frozen penalty cannot be avoided by frequent withdrawals.
Disclosed
-
Users can lose their staking rewards
The reward calculation should be refactored to revert on zero total staked or inflation index, and to return the accrued balance when effective staked is zero, as shown in the recommendation; a pull request was later linked.
Disclosed
-
Index mismatch on vouchers and vouchees might lead to invalid borrower-voucher-staker association
The code should check the length of the borrower's voucher list before writing to the vouchees map, and a pull request addressing this and related issues was merged.
Disclosed
-
Staker can manipulate lockedCoinAge and earn rewards in excess of the allowed maximum
The fix is to update vouch.lastUpdated every time it participates in the lockedCoinAge accumulator, as shown in the recommendation.
Disclosed
-
Attackers can call UToken.redeem() and drain the funds in assetManager
The redeem function should be revised to revert when uTokenAmount is zero.
Disclosed
-
UserManager's cancelVouchInternal breaks up voucher accounting on voucher removal
The code should be fixed by updating both voucherIndexes and vouchees correctly for the last staker, as shown in the recommendation.
Disclosed
-
Market adapter removal corrupts withdraw sequence
The fix should find the correct index in withdrawSeq for the adapter being removed and use that index when updating the array.
Disclosed
-
The `exchangeRateStored()` function allows front-running on repayments
The project suggested an exit fee paid to the reserve factor to make short-term deposits and flashloan-enabled attacks unprofitable, and a pull request was opened to implement this.
Disclosed