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.
Originally disclosed on Code4rena
Submitted by hansfriese, also found by 0x52, 0xNazgul, and rbserver
Community.sol#L455 Community.sol#L484 Community.sol#L509
Builders can’t repay when the system is paused so they must pay more interest for the paused period.
Proof of Concept
Builders can repay to lenders using 3 functions, repayLender(), reduceDebt(), and escrow().
But they all don’t work when the system is paused and builders have no way to avoid it.
Furthermore, the HomeFi admin is the main lender of builders and there is no assurance that the admin would pause the community for a while to get more interest.
Tools Used
Solidity Visual Developer of VSCode
Recommended Mitigation Steps
Recommend thinking of an approach to make 3 repay functions work for paused or modify the interest calculation formula not to add interest for the paused period.
zgorizzo69 (Rigor) acknowledged
The pause period is to fix severe bugs, and we don’t want extra logic to handle extra interest. Hopefully, during that downtime, no builders will need to make repayment right away. Also, moving forward, HomeFi admin will be a decentralized DAO.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the repayment functions are blocked by a pause modifier, while the interest calculation continues to accrue during the pause.
Impact
Builders may have to pay more interest than expected, and the admin could pause the system to increase their own interest earnings.
What the attacker needed
System is paused; builder has an outstanding loan
The fix
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.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
In this lending system, borrowers (builders) pay interest over time. If the system is paused, they cannot make a repayment, but interest keeps adding up. So they end up paying more than they should, and the lender (the admin) could pause on purpose to earn extra.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.