DatingDapp

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

The modifier `MultiSigWallet::onlyOwners` checks if `msg.sender` is both `owner1` and `owner2` which leads to failure of condition everytime

Description:

The modifier MultiSigWallet::onlyOwners is supposed to check msg.sender is either owner1 or owner2. Since it can't be owner1 and owner2 at the same time, this leads to failure of its intended functionality and users can't access functions which use this modifier.

Impact:

Users won't be able to submit , approve or execute transaction through their multisig wallet.

Recommended Mitigation:

Easy and effective change,

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

Appeal created

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

Support

FAQs

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