DatingDapp

First Flight #33
Beginner FriendlyFoundrySolidityNFT
100 EXP
View results
Submission Details
Severity: high
Invalid

Incorrect modifider logic

Summary

The "MultiSigWallet::onlyOwners" modifier incorrectly uses && instead of "OR , ||" and as such the functions that use it are not usable. It checks [msg.sender be equal to owner1] and [msg.sender be equal to owner2] at same time instead of "OR".

modifier onlyOwners() {
if (msg.sender != owner1 && msg.sender != owner2) revert NotAnOwner();
_;
}

Vulnerability Details

Impact

Below methods aren't usable since they're tagged with the above modifier(MultiSigWallet contract).

function executeTransaction(), function submitTransaction() and function approveTransaction()

Tools Used

Manual review

Recommendations

Use "OR, || " instead of "AND, &&"

Updates

Appeal created

n0kto Lead Judge 5 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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