Hunt prep
Before you test Rigor Protocol contest
What 26 disclosed reports say about Rigor Protocol contest: 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 | 12 | 0 | – | – | $0 |
| Access control lesson | 9 | 0 | – | – | $0 |
| DoS lesson | 2 | 0 | – | – | $0 |
| Smart contracts 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.
-
Add members to the not yet created community
The signature check should revert when the expected address is zero, and addMember should require that the community ID is not greater than the community count.
Disclosed
-
Project.changeOrder() would work unexpectedly for non SCConfirmed tasks.
The function should check whether the subcontractor is confirmed and call checkSignatureTask only if confirmed, otherwise call checkSignature.
Disclosed
-
Anyone can create disputes if contractor is not set
The report recommends rejecting a recovered signer equal to the zero address in raiseDispute; the project confirmed the finding.
Disclosed
-
It should not submit a project with no total budget. Requires at least one task with cost > 0
A require statement should be added to publishProject to check that the first task's cost is greater than zero.
Disclosed
-
Possible DOS in lendToProject() and toggleLendingNeeded() function because unbounded loop can run out of gas
The projectCost() value should be stored in a variable and updated whenever a task is added or changed, avoiding the loop.
Disclosed
-
New subcontractor can be set for a SCConfirmed task without current subcontractor consent
The inviteSC function should check if the task is SCConfirmed and require signatures from all parties before changing the subcontractor, similar to changeOrder.
Disclosed
-
Incorrect initialization of smart contracts with Access Control issue
The report recommends adding checks during initialisation or redesigning deployment to initialise contracts during deployment; the text does not state that a fix was applied.
Disclosed
-
Owner of project NFT has no purpose
The report recommends preventing transfers of the project NFT until there is a use case, or using the actual NFT owner as the builder.
Disclosed
-
changeOrder requires subcontractor signature when the subcontractor address is 0
The code should check if the subcontractor address is zero and not require a valid signature in that case.
Disclosed
-
Builders must pay more interest when the system is paused.
The report recommends either making the three repayment functions work while paused or changing the interest formula so that no interest is added for the paused period.
Disclosed
-
Attacker can drain all the projects within minutes, if admin account has been exposed
The report recommends limiting approveHash to contracts only, making admin and forwarder replacement a two-step process with a delay, and removing meta-transactions for admin-only functions.
Disclosed
-
Project.sol and Community.sol have no way to revoke a hash in approvedHashes
Add a revokeHash function that sets approvedHashes[_msgSender()][_hash] to false.
Disclosed
-
Builder can halve the interest paid to a community owner due to arithmetic rounding
The interest should be calculated from the exact elapsed seconds rather than a rounded-down day count, or a scaling factor should be added so rounding is negligible.
Disclosed
-
Task Functionality completely sidestepped via autoWithdraw
The autoWithdraw function should be removed or modified to return funds according to their source (builder or community), and a separate multi-signature withdrawal mechanism should be considered.
Disclosed
-
Malicious delegated contractor can block funding tasks or mark tasks as complete
The report suggests adding a function to update lastAllocatedTask (restricted to Disputes or builder) and allowing the Disputes contract to remove or replace the contractor.
Disclosed