Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 540 Bytes

File metadata and controls

10 lines (7 loc) · 540 Bytes

Public Burn Function

Description:

Public Burn Function may allow anyone to call burn function and burn tokens in a contract. It can be dangerous. There has been many instance in past where contracts had public burn functions and they were exploited well.

Remediation:

It can be prevented by implementing correct access controls like onlyOwner or by making the function internal with correct access control logic.

References:

https://medium.com/quillhash/shadowfi-301k-burn-function-exploit-analysis-quillaudits-45a17ce04193