Hunt prep
Before you test Gondi Invitational
What 38 disclosed reports say about Gondi Invitational: 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 | 23 | 0 | – | – | $0 |
| Access control lesson | 6 | 0 | – | – | $0 |
| Race condition lesson | 4 | 0 | – | – | $0 |
| DoS lesson | 3 | 0 | – | – | $0 |
| Smart contracts 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.
-
Delegations cannot be removed in some cases due to vulnerable revokeDelegate() implementation
The revokeDelegate function should accept a bytes32 _rights parameter and pass it to delegateERC721 so that delegations with custom rights can be correctly revoked.
Disclosed
-
addNewTranche() no authorization from borrower
The function was fixed by adding a check that the caller is the borrower.
Disclosed
-
distribute() when can’t repay all lenders, may lack of notification to LoanManager for accounting
The loop should iterate over all tranches regardless of remaining proceeds, so the LoanManager is always notified; the project mitigated by always calling loanManager even with zero proceeds.
Disclosed
-
Collected fees are never transferred out of Pool contract
The issue was mitigated by adding a `collectFees` method to the FeeManager contract.
Disclosed
-
Pool.getMinTimeBetweenWithdrawalQueues current calculations may not be sufficient
The report recommends increasing the loan buffer time from seven days to ten days, though the project's mitigation of limiting auction extensions was later marked unmitigated.
Disclosed
-
loanLiquidation() calculation of interest is not accurate
The fee calculation should be corrected to treat any amount above the principal as interest, as suggested in the mitigation.
Disclosed
-
mergeTranches() / refinancePartial() lack of nonReentrant
The functions mergeTranches and refinancePartial were fixed by adding the nonReentrant modifier.
Disclosed
-
loan.hash() does not contain protocolFee
The hash function was updated to include the protocolFee field, and the mitigation was confirmed.
Disclosed
-
Anyone can remove existing term without queueing through setTerms()
The project mitigated the issue by requiring terms to be passed in the confirm step as well, and the mitigation was confirmed.
Disclosed
-
Attacker can front-run and pass in empty terms, making it impossible to confirmTerms()
The terms should be recorded during setTerms() and confirmed using that stored data, rather than accepting terms from the caller in confirmTerms().
Disclosed
-
Borrower signature could be reused in emitLoan()
The mitigation was to instruct borrowers to always set the expiration time to a small delta from the current block timestamp, limiting the window for replay.
Disclosed
-
Inconsistent accounting of undeployedAssets might result in undesired optimal range in the pool
The collected fees should be subtracted in the validateOffer and _reallocate calculations, and the project mitigated the issue.
Disclosed
-
confirmUnderwriter() need to recalculate getMinTimeBetweenWithdrawalQueues
The Pool contract should override confirmUnderwriter to recalculate getMinTimeBetweenWithdrawalQueues and ensure it is not smaller than the previous value; the mitigation added a check that maxDuration cannot be longer.
Disclosed
-
Any liquidators can pretend to be a loan contract to validate offers, due to insufficient validation
The fix was to add a check that the caller is a loan contract in Pool::validateOffer.
Disclosed
-
Incorrect accounting of _pendingWithdrawal in queueClaiming flow
The code was fixed by changing the assignment to an addition so pending withdrawal amounts accumulate.
Disclosed