Dangerous burn public #108
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
Lines of code
https://github.com/code-423n4/2022-03-prepo/blob/f63584133a0329781609e3f14c3004c1ca293e71/contracts/core/LongShortToken.sol#L8-L16
Vulnerability details
Impact
Users can burn Long/Short token accidentally
Proof of Concept
As
LongShortToken.sol
inherits from ERC20Burneable the functionburn()
is public. So users can call it accidentally and burn their tokens. It is much better override with a no operation to avoid this.Tools Used
Manual code review
Recommended Mitigation Steps
Add this line to
LongShortToken.sol
(or something similar)The text was updated successfully, but these errors were encountered: