Severity: Low
Confidence: High
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
.
Burn function without a protective modifier.
https://github.com/Cyfrin/2023-09-ditto/blob/main/contracts/tokens/Ditto.sol#L45-L50
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.