Hunt prep
Before you test Centrifuge Protocol V3.1
What 10 disclosed reports say about Centrifuge Protocol V3.1: 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 |
|---|---|---|---|---|---|
| DoS lesson | 5 | 0 | – | – | $0 |
| Business logic lesson | 3 | 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.
-
Prices computed in SimplePriceManager is off even after `BatchRequestManager#revokeShares()` is called
The protocol team fixed this issue in a pull request.
Disclosed
-
Incorrectly handled subtraction leads to underflow resulting in permanent user fund lock and DOS
The protocol team fixed this issue in a pull request.
Disclosed
-
Pool managers can steal all other pools' pending deposits from `globalEscrow` via malicious `requestManager` swapping
The protocol team fixed this issue in the following PRs/commits: https://github.com/centrifuge/protocol-internal/pull/36
Disclosed
-
Inadequate gas reservation in `Gateway.handle()` try-catch block enables permanent DOS via batch-level gas exhaustion
The protocol team fixed this issue by reserving gas for all remaining messages instead of just the current message.
Disclosed
-
`Gateway.withBatch()` lacks message count validation enabling permanent DOS via an excessive number of messages in a batch
The protocol team fixed this issue by implementing a configurable maximum message count limit on the sending side.
Disclosed
-
`MessageProcessor` fails to disable `unpaidMode` during `UntrustedContractUpdate` execution enabling permanent DOS via malicious unpayable batch creation
The protocol should disable unpaid mode before executing untrusted contract code, or otherwise prevent untrusted calls from queueing unpaid batches, and add a way to recover from stuck batches.
Disclosed
-
Malicious adapters can exploit message batching via adapter-side reentrancy to cause message loss for any other pool
The protocol team fixed this issue by adding an `isSending` reentrancy guard that prevents `withBatch()` from being called during the batch send loop.
Disclosed
-
Stranded ETH on batched `crosschainTransferShares` call
The protocol team fixed this issue by adding a guard that reverts if ETH is sent while batching.
Disclosed
-
`SimplePriceManager.onUpdate()` lack of forward execution fee leads dependent functions to revert
The protocol team fixed this issue by making onUpdate() payable and forwarding the exact fee to withBatch().
Disclosed
-
Gas engineering during `adapter` execution can be used to maliciously split critical message batches
The `AxelarAdapter` should be modified to include expected gas requirements in the message payload and validate that sufficient gas is provided before executing, or a keeper-based execution model should be used.
Disclosed