Reproduced Exploit
KittenSwap — `RebaseReward` fails because of incorrect token handling
1. notifyRewardAmount only accepts Kitten, but incentivize accepts any token. 2. On claim, every reward token's share is deposited as Kitten via deposit_for. 3. Equal-weight user1 claims 50% Kitten + 50% Other-as-Kitten = 100% of Kitten. 4. User2's claim reverts (no Kitten left); Other tokens stay…
Chain
Other
Category
untagged
Date
Jun 2025
Source
AuditVault
EVM Playground
Source-level debugger — step opcodes and Solidity in sync
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. No backend, no live RPC.
Source & credit. Reproduction of a public audit finding curated by AuditVault — the original finding: 58065-c-01-rebasereward-fails-because-of-incorrect-token-handling. Standalone Foundry PoC and full write-up: 58065-c-01-rebasereward-fails-because-of-incorrect-token-handling_exp in the
evm-hack-registrymirror.
Vulnerability classes: fot-slippage · specific-token-type · reward-theft
Reproduction: self-contained Foundry PoC with only
forge-std— no fork. output.txt · test/58065-…sol.
AuditVault taxonomy: lang/solidity · sector/governance · sector/options · sector/token · severity/high · genome: fot-slippage · specific-token-type
Key info#
| Impact | HIGH — early claimer drains all Kitten rewards; non-Kitten incentives locked forever |
| Protocol | KittenSwap — RebaseReward.getRewardForTokenId / incentivize |
| Vulnerable code | veKitten.deposit_for(_tokenId, reward) for every reward token, not only Kitten |
| Bug class | Wrong token handling / reward accounting |
| Finding | Pashov Audit Group — KittenSwap 2025-06-12 · #58065 |
| Report | KittenSwap-security-review_2025-06-12.md |
| Source | AuditVault |
| Fix | Override incentivize to Kitten-only, or transfer non-Kitten rewards as the actual token |
| Compiler | ^0.8.24 (PoC) |
TL;DR#
notifyRewardAmountonly accepts Kitten, butincentivizeaccepts any token.- On claim, every reward token's share is deposited as Kitten via
deposit_for. - Equal-weight user1 claims 50% Kitten + 50% Other-as-Kitten = 100% of Kitten.
- User2's claim reverts (no Kitten left); Other tokens stay stuck in RebaseReward.
Vulnerable code#
if (reward > 0) {
veKitten.deposit_for(tokenId, reward); // @> VULN: always Kitten
}
Root cause#
Reward accounting is multi-token, but the payout path is single-token (Kitten lock into ve). Non-Kitten incentives inflate the Kitten claim amount.
Preconditions#
- At least two ve token IDs with positive RebaseReward weight.
- Someone calls
incentivizewith a non-Kitten token. - Kitten is notified as the official reward.
Attack walkthrough#
- Deposit equal weight for tokenId1 and tokenId2.
- Incentivize 1e18 OTHER; notify 1e18 Kitten.
- Claim for tokenId1 → locks 1e18 Kitten (all of it).
- Claim for tokenId2 reverts; OTHER remains locked in the contract.
Diagrams#
Impact#
Honest voters lose their Kitten rebase; non-Kitten incentives are permanently stuck; ve balances are unfairly inflated for early claimers.
Sources#
- AuditVault #58065
- Pashov KittenSwap 2025-06-12
- Reduced from Kittenswap/contracts review commit
65c8bdd(report-quoted_getReward/deposit_forpath)
Sources & further analysis#
Reproductions & code
- Standalone PoC + full trace: 58065-c-01-rebasereward-fails-because-of-incorrect-token-handling_exp (evm-hack-registry mirror).
- AuditVault finding: 58065-c-01-rebasereward-fails-because-of-incorrect-token-handling.
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.