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.
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
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.
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-registrymirror.
Vulnerability classes: vuln/access-control/public-burn · vuln/defi/token-burn
Key info#
| Field | Value |
|---|---|
| Loss | Alice holds 10 SHToken. Another caller burns all 10 |
| Vulnerable contract | SHToken.burn |
| Attacker EOA | 0x1111111111111111111111111111111111111111 |
| Attack contract | Exploit at 0x15452ec016c4dc8c549e7fe6ff4b26324ea8b7a4 |
| Attack tx | Exploit.run() |
| Chain / block / date | Ethereum model · block 0 · 1970-01 |
| Compiler | solc 0.8.27, cancun, via IR |
| Bug class | burn(account, amount) does not check the caller |
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#
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#
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#
- AuditVault finding: https://github.com/Auditware/AuditVault/blob/main/findings/52313-hal-06-anyone-can-burn-shtoken-from-other-users-halborn-supe.md
- Halborn report: SuperHedge v1 Core
Sources & further analysis#
Reproductions & code
- Standalone PoC + full trace: 52313-hal-06-anyone-can-burn-shtoken-from-other-users-halborn-supe_exp (evm-hack-registry mirror).
- AuditVault finding: 52313-hal-06-anyone-can-burn-shtoken-from-other-users-halborn-supe.
Alerts & third-party analyses
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.