The escrow function lacks a nonce, allowing a builder to reuse the same signed data and signature multiple times to repeatedly reduce their debt. An attacker could call escrow repeatedly with the same signature, reducing their debt to zero without making further payments.
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.
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.
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.
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.
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.
The raiseDispute function does not check the approvedHashes mechanism that the sponsors added to support users interacting through contracts such as multisig wallets. As a result, those users cannot raise a dispute at all.
The publishProject function in Community.sol did not enforce the documented rule that a project must have at least one task with a budget above zero. An attacker could publish a project with no tasks or a zero total budget, contrary to the stated requirement.
The projectCost() function loops over all tasks without a bound, so if many tasks are added, calling lendToProject() or toggleLendingNeeded() may run out of gas and revert. This could prevent the project from being funded.
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.
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.
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.
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.
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.
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.
If an attacker gains control of the admin wallet, they can replace the trusted forwarder with a malicious one and then drain all project funds within minutes. The forwarder can impersonate any user and bypass signature checks using the approveHash function.
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.
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.
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.
The smart contracts Project.sol and Community.sol allow users to approve hashes but provide no function to revoke an approval. An attacker could exploit a mistakenly approved hash to cause loss of funds or access.
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.
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.
A delegated contractor can add many tasks or one with a huge cost, preventing funding in allocateFunds(), and can complete tasks to transfer funds to subcontractors. The builder cannot replace the contractor, only remove delegation.
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.
The approveHash function only allows setting an approval to true, with no way to cancel it. A signature approved for setComplete can be reused later after a dispute changes the task cost, letting the service contractor complete the task without additional work.
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.
RP
Rigor Protocol contest
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.