Skip to content

Code4rena

Rigor Protocol contest

Every publicly disclosed report for Rigor Protocol contest and what kind of bugs they were.

disclosed reports
26
most reported class
Business logic
bug classes found
5
first disclosure
2022
Find Rigor Protocol contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Rigor Protocol contest chose to make public.

Access control

Add members to the not yet created community

The addMember function allowed adding members to a community that did not yet exist because the community owner address was zero and the signature check could be bypassed. An attacker could add as many members as they wanted before the community was created.

Rigor Protocol contest

High
Business logic

Project.changeOrder() would work unexpectedly for non SCConfirmed tasks.

The changeOrder function reverts for tasks without a confirmed subcontractor because it always calls checkSignatureTask, which assumes a confirmed subcontractor. This prevents the project builder and contractor from changing a task's cost until a subcontractor is confirmed.

Rigor Protocol contest

Medium
Access control

Signature Checks could be passed when SignatureDecoder.recoverKey() returns 0

The signature validity check in a smart contract could be bypassed when the signature recovery function returned zero, allowing any user to call changeOrder or setComplete after an approved hash existed. An attacker could then modify orders or mark tasks complete without proper authorisation.

Rigor Protocol contest

Medium
Business logic

Hash approval not possible when contractor == subcontractor

The hash approval feature for checkSignatureTask fails when the same address is both contractor and subcontractor because the approval is deleted on the first check, causing the second check to fail. An attacker could not exploit this directly, but it prevents legitimate use of the feature in that scenario.

Rigor Protocol contest

Medium
Access control

Anyone can create disputes if contractor is not set

The dispute-raising function recovers a signer from a supplied signature but does not reject the zero address, so a malformed signature yields address(0). When the project has no contractor set, that zero address passes the authorization checks and anyone can create disputes.

Rigor Protocol contest

Medium
Business logic

New subcontractor can be set for a SCConfirmed task without current subcontractor consent

The inviteSC function allows a builder or contractor to change the subcontractor of a task that is already confirmed and active, without the current subcontractor's consent. An attacker could front-run a legitimate setComplete call to redirect the task budget to their own subcontractor, stealing funds from the original subcontractor.

Rigor Protocol contest

Medium
Access control

Incorrect initialization of smart contracts with Access Control issue

Smart contracts deployed via a proxy were left uninitialised because the proxy's initialisation data was empty, and the initialise functions lacked access control. An attacker could call initialise first to set themselves as the owner or treasury address, potentially stealing fees or disrupting the protocol.

Rigor Protocol contest

Medium
Business logic

Owner of project NFT has no purpose

The project NFT minted to a builder can be transferred, but the builder role remains with the original address, so the new NFT owner has no permissions. If the original builder becomes unable to act, funds could be locked because there is no way to change the builder.

Rigor Protocol contest

Medium
Access control

changeOrder requires subcontractor signature when the subcontractor address is 0

The changeOrder function requires a signature from the current subcontractor even when that address is zero, unlike the contractor case where a zero address skips the signature check. An attacker could bypass this by submitting an invalid signature that recovers to address zero, though the report notes this may not be intended.

Rigor Protocol contest

Medium
Smart contracts

Project funds can be drained by reusing signatures, in some cases

The smart contract functions changeOrder() and setComplete() did not prevent signature reuse, and the Tasks.unApprove() library function lacked a required modifier. An attacker could reuse signatures to repeatedly call setComplete() and drain project funds, or external users could change task costs or subcontractors.

Rigor Protocol contest

High
Business logic

Builders must pay more interest when the system is paused.

When the system is paused, builders cannot repay their loans through any of the three repayment functions, so they are forced to pay extra interest for the paused period. The admin, who is the main lender, could pause the community to earn more interest.

Rigor Protocol contest

Medium
Crypto

Untyped data signing

The smart contracts signed untyped data without including the contract address, chain ID, or function type, allowing signatures to be reused across different projects, chains, and functions. An attacker could replay a valid signature to perform unauthorised actions or trick users into signing data for a malicious DApp.

Rigor Protocol contest

High
Business logic

Wrong APR can be used when project is unpublished and published again

When a project is unpublished and later republished in a community, the APR can be overwritten, and the new APR is incorrectly used to calculate interest for the period when the project was unpublished. This can cause the project to owe more or less interest than it should.

Rigor Protocol contest

High
Business logic

Missing upper limit definition in replaceLenderFee() of HomeFi.sol

The admin of the HomeFi contract can set the lender fee to any arbitrary value, including one greater than 100%. This causes the fee calculation in lendToProject() to overflow, making all future lending calls revert.

Rigor Protocol contest

Medium
Smart contracts

Builder can halve the interest paid to a community owner due to arithmetic rounding

The interest calculation in returnToLender() rounds the number of days down to a whole number, so a builder who repays a tiny amount just before the two-day mark only accrues one day of interest. This lets a builder halve the APR paid to a community owner while still advertising the higher rate.

Rigor Protocol contest

High
Business logic

Task Functionality completely sidestepped via autoWithdraw

The autoWithdraw function sends funds to the builder whenever a task's cost is reduced, allowing a builder to repeatedly create, allocate, and reduce task costs to drain all project funds. This bypasses the task-based logic and trust assumptions of the system.

Rigor Protocol contest

Medium
DoS

Project.addTasks() wouldn’t work properly when it’s called from disputes contract.

The addTasks function requires the caller-supplied task count to match the current task count, but a dispute resolution can take time during which new tasks are added, causing the dispute resolution call to revert. An attacker could not exploit this directly, but it causes a denial of service for dispute resolution.

Rigor Protocol contest

Medium
Access control

updateProjectHash does not check project address

The updateProjectHash function does not verify that the signed data includes the project's address, unlike other functions. This allows reusing a signature from one project on another project with the same builder/contractor and nonce, enabling an attacker to change a task hash.

Rigor Protocol contest

Medium