Beatland Festival

First Flight #44
Beginner FriendlyFoundrySolidityNFT
100 EXP
View results
Submission Details
Impact: low
Likelihood: low
Invalid

Incorrect Comment for FestivalPass::withdraw , which states that organizers withdraw ETH, this could lead to improper misuse of the withdraw function

Root + Impact

Description

The function Festival::withdraw contains a natspec which is misleading, it states organizers withdraw ETH/ Proceeds but in actual sense only the owner withdraws these Proceeds.

// Root cause in the codebase with @> marks to highlight the relevant section

Risk

Likelihood:

  • This will occur when a new organizer calls this function and tries to withdraw ETH / Proceeds ,in the end it will fail because of the onlyOwner Modifier

Impact:

  • The New Organizer gets a failed transaction everytime they call the FestivalPass::Withdraw function

Proof of Concept

Recommended Mitigation

- // Organizer withdraws ETH
function withdraw(address target) external onlyOwner {
payable(target).transfer(address(this).balance);
}
Updates

Lead Judging Commences

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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