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

Arbitrary Send ETH

Summary

Unprotected call to a function sending Ether to an arbitrary address.

Vulnerability Details

Location:

PuppyRaffle.withdrawFees() (src/PuppyRaffle.sol#157-163) sends eth to arbitrary user
Dangerous calls:

  • (success) = feeAddress.call{value: feesToWithdraw}() (src/PuppyRaffle.sol#161)

Impact

The withdrawFees function allows to withdraw all the balance of the contract. If there's any mistake in the contract's balance management, it could lead to loss of funds.

Tools Used

Audit Wizard (Slither)

Recommendations

Ensure that an arbitrary user cannot withdraw unauthorized funds.

Updates

Lead Judging Commences

Hamiltonite Lead Judge about 2 years ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

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

Give us feedback!