Reproduced Exploit

Astrolab redemption queues the same shares once per operator and pays the other holder 0

requestRedeem checks that the caller owns the shares. It does not check that this owner already has a request, and the operator address is chosen by the caller. Each call adds shares to totalRedemption.

Undated•Ethereum•logic•2 min read

Loss

Bob is paid 0 instead of 50 assets. His 100 shares stay in the vault because totalRedemption is 300 and the v…

Chain

Ethereum

Category

logic

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: 58096-c-01-inflating-redemption-request-and-dos-in-the-vault-pasho. Standalone Foundry PoC and full write-up: 58096-c-01-inflating-redemption-request-and-dos-in-the-vault-pasho_exp in the evm-hack-registry mirror.


Vulnerability classes: vuln/logic/redemption-accounting · vuln/dos/share-price

Key info#

FieldValue
LossBob is paid 0 instead of 50 assets. His 100 shares stay in the vault because totalRedemption is 300 and the vault holds 200
Vulnerable contractVault.requestRedeem
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 classrequestRedeem adds the owner's shares again for each new operator
flowchart TD A["Alice and Bob each hold 100 shares and the vault holds 200 assets"] --> B["Alice calls requestRedeem three times with three operators"] B --> C["VULN totalRedemption becomes 300"] C --> D["Bob's withdraw sees 300 greater than 200 and pays 0"] B --> E["Control rejects the second request"] E --> F["One queue of 100 leaves 100 assets and Bob is paid 50"]

TL;DR#

requestRedeem checks that the caller owns the shares. It does not check that this owner already has a request, and the operator address is chosen by the caller. Each call adds shares to totalRedemption.

Alice holds 100 shares and Bob holds 100. The vault holds 200 assets. Alice queues 100 shares three times. totalRedemption is 300. Bob's withdraw compares 200 assets with 300 queued and pays 0. His 100 shares stay.

The fixed request stores one queue per owner. The second call reverts. totalRedemption stays 100, 100 assets remain accounted, and Bob's 100 shares are paid 50.

The vulnerable code#

SOLIDITY
if (owner != msg.sender || shares == 0 || balanceOf(owner) < shares) revert Unauthorized();
totalRedemption += shares; // @> VULN: the same shares are added again for a new operator
requested[operator] = shares;

The quoted requestRedeem uses that owner check and then the redemption total is increased. totalAccountedAssets subtracts the inflated total from totalAssets.

Impact#

Bob is paid 0 instead of 50 assets. His 100 shares remain because the accounted-asset subtraction does not fit in the vault balance.


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.