Cyfrin/audit-checklist

Create a new check item by hansfriese

Closed this issue · 0 comments

Attacker's Mindset->Donation Attack

{
    'question': 'Does the protocol rely on `balance` or `balanceOf` instead of internal accounting?',
    'description': 'Attackers can manipulate the accounting by donating tokens.',
    'remediation': 'Implement internal accounting instead of relying on `balanceOf` natively.',
    'references': [
        'https://solodit.xyz/issues/h-02-first-depositor-can-break-minting-of-shares-code4rena-prepo-prepo-contest-git'
    ]
}

Comment: No comment