Reproduced Exploit

Anyone can burn another account's SHToken

burn checks that the amount is non-zero and that account holds it. It does not check msg.sender. Alice is minted 10. The caller burns that 10. Her balance is 0.

Undated•Ethereum•access-control•2 min read

Loss

Alice holds 10 SHToken. Another caller burns all 10

Chain

Ethereum

Category

access-control

Date

Undated

Source

AuditVault

EVM Playground

Source-level debugger — step opcodes and Solidity in sync

evm-hack-analyzer

The attack replays in your browser. Step through it by Solidity line or by opcode.

The attack is replayed in an in-browser EVM preloaded with the exact dumped fork state. The execution tree shows every call; step by Solidity line or by opcode across all depths — source, Stack, Memory, Storage, Balances (native / ERC-20 / NFT), Transient storage and Return value stay in sync. Click a tree node, opcode, or source line to jump. Query opens a search over the trace: previous and next writes, balance changes and calls, breakpoints, and a diff of everything that changed between two steps. No backend, no live RPC.

Loading fork state…

Source & credit. Reproduction of a public audit finding curated by AuditVault — the original finding: 52313-hal-06-anyone-can-burn-shtoken-from-other-users-halborn-supe. Standalone Foundry PoC and full write-up: 52313-hal-06-anyone-can-burn-shtoken-from-other-users-halborn-supe_exp in the evm-hack-registry mirror.


Vulnerability classes: vuln/access-control/public-burn · vuln/defi/token-burn

Key info#

FieldValue
LossAlice holds 10 SHToken. Another caller burns all 10
Vulnerable contractSHToken.burn
Attacker EOA0x1111111111111111111111111111111111111111
Attack contractExploit at 0x15452ec016c4dc8c549e7fe6ff4b26324ea8b7a4
Attack txExploit.run()
Chain / block / dateEthereum model · block 0 · 1970-01
Compilersolc 0.8.27, cancun, via IR
Bug classburn(account, amount) does not check the caller
flowchart TD A["Alice holds 10 SHToken"] --> B["Another caller calls burn with Alice and 10"] B --> C["VULN the balance check is the only gate"] C --> D["Alice's balance is 0"] B --> E["Control requires the token owner"] E --> F["The same call reverts and Alice keeps 10"]

TL;DR#

burn checks that the amount is non-zero and that account holds it. It does not check msg.sender. Alice is minted 10. The caller burns that 10. Her balance is 0.

The owner-only burn reverts for a third party. Alice still holds 10.

The finding has no month, so the date marker is 1970-01.

The vulnerable code#

SOLIDITY
function burn(address account, uint256 amount) external {
    require(amount > 0, "Amount must be greater than zero");
    require(balanceOf(account) >= amount, "Insufficient balance");
    _balance[account] -= amount;
    burned += amount; // @> VULN: any caller can burn another account's balance
}

Impact#

Any account can destroy another holder's tokens. Here that is Alice's entire balance of 10.

How to reproduce#

BASH
cd 52313-hal-06-anyone-can-burn-shtoken-from-other-users-halborn-supe_exp
forge test -vv

test_exploit_bob_burns_alice asserts Alice's balance is 0. test_control_only_owner_burns asserts the third-party burn reverts and she keeps 10.

Sources#


Sources & further analysis#

Reproductions & code

Alerts & third-party analyses

  • Web3Sec X hacked database: search.
  • Rekt leaderboard: search.
  • Solodit incident search: search.

These dashboards index community alerts tweets, post-mortems, and independent write-ups. Reach them through the protocol name above to cross-check this reproduction against other analyses.