DittoETH

Ditto
DeFiFoundryOracle
55,000 USDC
View results
Submission Details
Severity: low
Invalid

Burn functions must be protected with a modifier

Burn functions must be protected with a modifier

  • Severity: Low

  • Confidence: High

Description

If burn functions are not protected by a modifier, any address may be able to burn tokens, potentially leading to financial loss. A common modifier to use is onlyOwner.

There are 1 instances of this issue:

File: contracts/tokens/Ditto.sol
45 function _burn(address account, uint256 amount)
46 internal
47 override(ERC20, ERC20Votes)
48

Burn function without a protective modifier.
https://github.com/Cyfrin/2023-09-ditto/blob/main/contracts/tokens/Ditto.sol#L45-L50

Updates

Lead Judging Commences

0xnevi Lead Judge
over 1 year ago
0xnevi Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

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