Core Contracts

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

Unauthorized third party reward laim for users

Summary

The claimRewards function contains a vulnerability that allows any external actor to claim rewards on behalf of other users. This unrestricted access pattern undermines user autonomy over their reward claiming strategy and timing.

Vulnerability Details

The function's current implementation accepts any user address as a parameter:

function claimRewards(address user) external override nonReentrant whenNotPaused returns (uint256) {

Impact

  • Although there is no fund lost here, Forced claiming of rewards against user intentions can be done

  • Disruption of user-planned yield optimization strategies

Tools Used

  • Manual code review

Recommendations

  • Modify function to only allow self-claims:

    function claimRewards() external override nonReentrant whenNotPaused returns (uint256) {
    address user = msg.sender;
  • Consider implementing delegation system for authorized third-party claims

  • Add proper access control mechanisms to restrict claim capabilities

Updates

Lead Judging Commences

inallhonesty Lead Judge 3 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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