Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: medium
Invalid

Lack of `onlyChoosingRamContract` Modifier on `updateCharacteristics` Calls

Summary

Allowing unauthorized access to updateCharacteristics can lead to unintended changes in the NFT characteristics, which could undermine the integrity of the event and the contract’s logic. Ensuring only the ChoosingRam contract can call this function is important for security.

Vulnerability Details

+ event CharacteristicsUpdated(uint256 tokenId, address updatedBy);
+ event RamSelected(address selectedRam);
function increaseValuesOfParticipants(uint256 tokenIdOfChallenger, uint256 tokenIdOfAnyPerticipent)
public
RamIsNotSelected
{
...
+ emit CharacteristicsUpdated(tokenIdOfChallenger, msg.sender);
...
}
function selectRamIfNotSelected() public RamIsNotSelected OnlyOrganiser {
...
+ emit RamSelected(selectedRam);
}

Impact

This could lead to unauthorized calls to updateCharacteristics.

Tools Used

Manual review

Recommendations

Add the necessary checks or modifiers to ensure only ChoosingRam can call updateCharacteristics.

Updates

Lead Judging Commences

bube Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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