Skip to content

Sherlock

Union Finance Update

Every publicly disclosed report for Union Finance Update and what kind of bugs they were.

disclosed reports
9
most reported class
Business logic
bug classes found
3
first disclosure
2023
Find Union Finance Update on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Union Finance Update chose to make public.

Business logic

Users can lose their staking rewards

A user who unstakes all funds and then calls withdrawRewards when the contract lacks union tokens has their accrued rewards overwritten with zero on the next withdrawRewards call. This causes the user to lose all staking rewards.

Union Finance Update

Medium
Business logic

Staker can manipulate lockedCoinAge and earn rewards in excess of the allowed maximum

A staker's lockedCoinAge accumulator can be inflated by repeatedly triggering borrows when a voucher's trust is maxed, because the voucher's lastUpdated timestamp is not refreshed. This allows an attacker to obtain an arbitrarily large rewards multiplier and claim all UNION rewards from the contract.

Union Finance Update

High
Smart contracts

Attackers can call UToken.redeem() and drain the funds in assetManager

The redeem function in UToken does not check whether the calculated uTokenAmount is zero, allowing an attacker to redeem underlying tokens without burning any uTokens. An attacker could repeatedly call redeem with a small amountOut to drain funds from assetManager.

Union Finance Update

Medium
Business logic

UserManager's cancelVouchInternal breaks up voucher accounting on voucher removal

The _cancelVouchInternal function incorrectly updates the vouchees array using an index from voucherIndexes, and fails to update voucherIndexes when moving the last voucher. This can corrupt vouch accounting, potentially freezing a staker's funds or allowing a borrower to exploit unremovable trust.

Union Finance Update

High
Business logic

Market adapter removal corrupts withdraw sequence

The removeAdapter function deletes an entry from the withdrawSeq array using an index that was found for the moneyMarkets array, but the two arrays have independent orderings. This can corrupt the withdraw sequence and make withdrawals unavailable for the whole protocol.

Union Finance Update

Medium
Business logic

# [M-04] voucherIndexes is not updated when member cancel the voucher

When a member cancels a voucher, the voucherIndexes mapping for the last voucher is not updated, leaving an incorrect index that points to a voucher with a different staker. This could be exploited by malicious members to cause incorrect indexing.

Union Finance Update

Medium
Race condition

The `exchangeRateStored()` function allows front-running on repayments

The exchange rate used for minting and redeeming UTokens increases when a borrower repays, because the repayment adds to the total redeemable amount. An attacker can front-run a repayment by minting UTokens just before it and redeeming them just after, capturing a share of the interest that should belong to existing minters.

Union Finance Update

Medium