Core Contracts

Regnum Aurum Acquisition Corp
HardhatReal World AssetsNFT
77,280 USDC
View results
Submission Details
Severity: low
Valid

`LendingPool` borrowing is vulnerable to price update front-running issue

Summary

Users can front-run the price update of a house to deposit the NFT before the update and borrow up to maximum capacity. Then when the price update happens, the loan is already undercollateralized, allowing the user to leave with an instant profit and not be impacted by the decreased value of the NFT.

Vulnerability details

A user hold a HouseNFT and detect that its price will drop.
The attacker front-run the price update to deposit this houseNFT and borrow up to maximum capacity in a same transaction, to finally let the price update be executed.
If the house price drop is bigger than the collateralization ratio protection[1], the attacker would have borrowed more than what the house NFT is worth after the update, allowing him to leave with the profit and never repay its loan.

[1] The collateralization ratio protection is represented by the variable liquidationThreshold, which can be updated to any value between 0% and 100%, making that attack

Impact

Attackers can create undercollateralized positions that he has detected at risk, and leave with a profit.

Recommended Mitigation Steps

Do not allow to call depositNFT and borrow in a same block.

Updates

Lead Judging Commences

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Validated
Assigned finding tags:

LendingPool vulnerable to oracle front-running where users can deposit NFT and borrow max amount before price drops, creating instant undercollateralized positions for profit

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Validated
Assigned finding tags:

LendingPool vulnerable to oracle front-running where users can deposit NFT and borrow max amount before price drops, creating instant undercollateralized positions for profit

Appeal created

anonymousjoe Auditor
7 months ago
inallhonesty Lead Judge
7 months ago
dimah7 Auditor
7 months ago
inallhonesty Lead Judge
6 months ago
inallhonesty Lead Judge 6 months ago
Submission Judgement Published
Validated
Assigned finding tags:

LendingPool vulnerable to oracle front-running where users can deposit NFT and borrow max amount before price drops, creating instant undercollateralized positions for profit

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.

Give us feedback!