Skip to content

Sherlock

Truflation

Every publicly disclosed report for Truflation and what kind of bugs they were.

disclosed reports
5
most reported class
Business logic
bug classes found
1
first disclosure
2024
Find Truflation on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Truflation chose to make public.

Business logic

Users can fully drain the `TrufVesting` contract

The claimable function returns the initial release amount repeatedly during the period between the initial release and the cliff, without subtracting what the user has already claimed. An attacker could call claim multiple times to receive the initial release each time, eventually draining the contract's funds.

Truflation

High
Business logic

TrufVesting.cancelVesting calculates end of vesting incorrectly

The cancelVesting function incorrectly calculates the end of vesting by using only the distribution period after the cliff, ignoring the initial release period and cliff. As a result, the owner cannot cancel an ongoing vesting because the function reverts as if vesting had already finished.

Truflation

Medium
Business logic

When migrating the owner users will lose their rewards

When a user migrates their vesting position to a new owner after losing their private key, the rewards belonging to the old owner are updated on the old account and cannot be claimed, resulting in a loss of rewards.

Truflation

Medium
Business logic

Ended locks can be extended

The extendLock function lacks a check for whether the lock has already ended, allowing a user to extend an expired lock with a new end time that is still in the past. This lets the user unstake immediately while potentially earning points for the extended period.

Truflation

Medium
Business logic

`cancelVesting` will potentially not give users unclaimed, vested funds, even if giveUnclaimed = true

In the cancelVesting function, the code sets the locked amount to zero on a memory copy of the user's vesting record rather than the stored record, so the later claimable calculation still treats the funds as locked. As a result, a user whose funds were all staked may receive nothing back even when the owner asks for unclaimed vested funds to be paid out.

Truflation

High