Hunt prep
Before you test Term Structure Institutional
What 13 disclosed reports say about Term Structure Institutional: 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 | 10 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| Crypto 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.
-
Cross-Chain Signature Replay Attack in Settlement Contract
The signature hash should include the chain ID and the contract address to bind signatures to a specific chain and contract.
Disclosed
-
Minimum Debt Value Updates Trigger Instant Liquidation Condition Changes
The parameter change should be protected by a timelock, as is already done for operator updates.
Disclosed
-
Array Length Mismatch Enables Partial Settlement Processing
The function should require that the two arrays have equal length before processing.
Disclosed
-
Incorrect Allowance Validation in addCollateralBeforeSettle
The function should validate the borrower's (taker's) token allowance instead of msg.sender's allowance.
Disclosed
-
Missing Settlement Status Validation in Loan Operations
The affected functions should check that the loan is settled before proceeding, reverting if it is not, as addCollateralBeforeSettle() already does for the opposite condition.
Disclosed
-
Some checks should be added even if the operator checks each input parameters
The function should validate that fee and taker amounts are non-zero, that maturity exceeds expiry, that timestamps are non-zero, and that loan ID and loan array lengths match.
Disclosed
-
Any position can be closed (by repaying the debt) even after the maturity date has passed
The repay function should be fixed to reject repayment once the position has passed its maturity date.
Disclosed
-
Any users with expired loan(not settled) can take theft of lenders collateral when the collateral price increase
The removeCollateral function should be modified to require that the position is settled (settled == true) and has not expired before allowing collateral removal.
Disclosed
-
Settlement functionality can be break forever and blocking settlement actions.
The addCollateralBeforeSettle function should be restricted to be callable only by the loan maker address.
Disclosed
-
Direct theft of users funds when expired loan get liquidated
The report recommends deleting expired loans instead of reverting on settle, and restricting liquidation to a bot address.
Disclosed
-
Any call to the repay function can potentially be front-run by a malicious actor, lead to prevent users from repaying on time.
The repay logic should cap the repayment amount at the remaining debt rather than reverting, and return any excess to the caller.
Disclosed