Reproduced Exploit

Remora: A single canTransfer from InvestorA inflates the allowance of EntityB and EntityD (entitie

Jan 1970Otheruntagged3 min read

Chain

Other

Category

untagged

Date

Jan 1970

Source

AuditVault

EVM Playground

Source-level debugger — step opcodes and Solidity in sync

evm-hack-analyzer

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.

Loading fork state…

Source & credit. Reproduction of a public audit finding curated by AuditVault — the original finding: 63781-updating-the-entity-allowance-when-the-individual-belongs-to. The historical source/toolchain is unavailable; this entry is documentation only and claims no executable Forge PoC.


Vulnerability classes: vuln/locked-funds · vuln/unfair-mint

Reproduction: a faithful minimal reproduction of the vulnerable finding — the vulnerable function is reproduced verbatim (marked @>) with faithful minimal doubles; local deploy, no fork.

Root cause#

A single canTransfer from InvestorA inflates the allowance of EntityB and EntityD (entities InvestorA is not part of) by 2000 units each because co-group member InvestorB is their catalyst, corrupting 5/50-rule accounting; on the receiver path an under-allowanced unrelated entity makes a legitimate transfer return false (DoS).

SOLIDITY
            uint256 len = groups[gId].individuals.length;
            for (uint256 i; i < len; ++i) {
                address ind = groups[gId].individuals[i];
                if (individualData[ind].numCatalyst != 0) // @> enters for ANY group member that is a catalyst, even when it is not `from`, so `from`'s transfer mutates unrelated entities
                    _updateEntityAllowance(true, ind, amount);
            }

Why it's exploitable here#

A single canTransfer from InvestorA inflates the allowance of EntityB and EntityD (entities InvestorA is not part of) by 2000 units each because co-group member InvestorB is their catalyst, corrupting 5/50-rule accounting; on the receiver path an under-allowanced unrelated entity makes a legitimate transfer return false (DoS).

Attack path#

flowchart TD S0["Token symbol storage"] S1["Map individual to their entities"] S2["Read an entity's allowance"] S3["Catalyst check on wrong individual"] S4["Load receiver's individual data"] H["A single canTransfer from InvestorA inflates the allowance of EntityB "] S0 --> S1 S1 --> S2 S2 --> S3 S3 --> S4 S4 --> H

Marked-line walkthrough (Playground)#

The EVM Playground pins each step to the exact executed source line in 0x8ea53755a6…:

  1. L40 — Token symbol storage: Setup: token metadata field on the security-token contract that enforces the 5/50 ownership rule.
  2. L83 — Map individual to their entities: Setup: findEntity links each individual to the entities they belong to, used to roll holdings up into entity allowances.
  3. L103 — Read an entity's allowance: Setup: returns an entity's current allowance under the 5/50 rule — the value the buggy update path corrupts.
  4. L119 — Catalyst check on wrong individual: Root cause: keying the update on a co-group member's numCatalyst inflates allowances of entities (EntityB, EntityD) the transferring investor never belonged to.
  5. L127 — Load receiver's individual data: On the receiver path, loads the recipient individual's data; the same catalyst mis-keying here under-allowances an unrelated entity.
  6. L146 — Read investor's catalyst count: Reads numCatalyst for an investor in the group — the field that decides, incorrectly, which entities get their allowance adjusted.
  7. L166 — canTransfer returns allowed: Returns true when checks pass, but the mis-keyed accounting can leave an unrelated entity under-allowanced so a legitimate transfer returns false (DoS).

PoC#

Registry (Foundry, local deploy — verbatim vulnerable source + harm-asserting test + negative control):

BASH
cd 63781-updating-the-entity-allowance-when-the-individual-belongs-to_exp
forge test -vvv

The browser Playground replays the same synthetic opcode-for-opcode and measures the harm: A single canTransfer from InvestorA inflates the allowance of EntityB and EntityD (entities InvestorA is not part of) by 2000 units each bec. Both gates are green (registry forge test PASS + Playground _verify-poc VERDICT: PASS).


Sources & further analysis#

Reproductions & code

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.