Core Contracts

Regnum Aurum Acquisition Corp
HardhatReal World AssetsNFT
77,280 USDC
Submission Details
Severity: high
Invalid

Reentrancy in StabilityPool Withdrawals

Author Revealed upon completion

Summary

Reentrancy in StabilityPool Withdrawals Attacler could re enter the function withdraw

Vulnerability Details

StabilityPool.withdraw() lacks reentrancy guards, risking fund drains if deToken implements ERC777 callbacks.

Impact

Attackers could re-enter the function to withdraw more funds than allowed.

Tools Used

Slither, MythX

Recommendations

  • Before: No reentrancy protection.

function withdraw(uint amount) external {
// Transfers deToken before updating state
}
  • After: Use ReentrancyGuard.

function withdraw(uint amount) external nonReentrant {
// Update state before transfers
}
Updates

Lead Judging Commences

inallhonesty Lead Judge 8 days ago
Submission Judgement Published
Invalidated
Reason: Too generic

Support

FAQs

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