First Flight #21: KittyFi

First Flight #21
Beginner FriendlyDeFiFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

permission management vulnerability

Summary

In KittyPool, function purrgeBadPawsition haven't check msg.sender

Vulnerability Details

function purrgeBadPawsition(address _user) external returns (uint256 _totalAmountReceived) {
require(!(_hasEnoughMeowllateral(_user)), KittyPool__UserIsPurrfect());
...
for (uint256 i; i < vaults_length; ) {
...
_vault.executeWhiskdrawal(msg.sender, toDistribute + extraReward);
unchecked {
++i;
}
}
}

anyone can call this fonction when they find someone doesn't have enough money to repay and the money will send to hacker.

Impact

the peopol who have not enough meowllateral can be burn by hcker and money will sende to hacker

Tools Used

vscode

Recommendations

add a modifire

function purrgeBadPawsition(address _user) external onlyMeowntainer returns (uint256 _totalAmountReceived)

Updates

Lead Judging Commences

shikhar229169 Lead Judge 11 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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