Hunt prep
Before you test Livepeer Onchain Treasury Upgrade
What 14 disclosed reports say about Livepeer Onchain Treasury Upgrade: 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 | 8 | 0 | – | – | $0 |
| Access control lesson | 4 | 0 | – | – | $0 |
| DoS lesson | 2 | 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.
-
By delegating to a non-transcoder, a delegator can reduce the tally of someone else’s vote choice without first granting them any voting power
The code should check that the delegate is a transcoder before subtracting the tally, as was done in the mitigation.
Disclosed
-
Fully slashed transcoder can vote with 0 weight messing up the voting calculations
The issue was mitigated by a pull request, and the report recommends clearing the transcoder's delegate address upon full slashing or preventing zero-weight votes.
Disclosed
-
withdrawFees does not update checkpoint
The withdrawFees function should be fixed by adding the autoCheckpoint modifier.
Disclosed
-
The logic in _handleVoteOverride to determine if an account is the transcoder is not consistent with the logic in the BondManager.sol
The vote-counting logic should reuse isRegisteredTranscoder (and possibly isActiveTranscoder) to determine transcoder status; the project mitigated this in a pull request.
Disclosed
-
[WP-M0] MINTER_ROLE can be granted by the deployer of L2LivepeerToken and mint arbitrary amount of tokens
The recommendation was to remove the MINTER_ROLE and make the L2LivepeerToken mintable only by the owner, with the L2Minter contract as the sole owner and minter; however, the project acknowledged and planned to keep the role for the L2LPTGateway.
Disclosed
-
[WP-M4] Unable to use L2GatewayRouter to withdraw LPT from L2 to L1, as L2LPTGateway does not implement L2GatewayRouter expected method
The issue was fixed by implementing the missing outboundTransfer method in L2LPTGateway.
Disclosed
-
[WP-M2] DEFAULT_ADMIN_ROLE can approve arbitrary address to spend any amount from the L1Escrow contract
The recommendation is to remove the approve function and instead approve l1LPT to l1Gateway in the constructor, but the project acknowledged and likely won't change to preserve governance ability.
Disclosed
-
[WP-H3] L1Migrator.sol#migrateETH() Improper implementation of L1Migrator causing migrateETH() always reverts, can lead to ETH in BridgeMinter getting stuck in the contract
The issue was fixed by adding a receive function to L1Migrator.
Disclosed
-
[WP-H5] L1Migrator.sol#migrateETH() does not send bridgeMinter ’s ETH to L2 causing ETH get frozen in the contract
The fix was to add the withdrawn amount to msg.value when calling sendTxToL2, and it was fixed in a pull request.
Disclosed
-
Admin can rug L2 Escrow tokens leading to reputation risk
The approve function should be restricted so that it only allows approvals to trusted protocol contracts, preventing the admin from stealing funds.
Disclosed
-
[WP-M1] BURNER_ROLE can burn any amount of L2LivepeerToken from an arbitrary address
The BURNER_ROLE was removed and the burn function was changed to only burn the caller's own tokens, with the gateway updated to transfer then burn; the project confirmed it was fixed.
Disclosed
-
Fund loss when insufficient call value to cover fee
The issue was fixed by adding a check similar to the one used in L1GatewayRouter.
Disclosed