Reproduced Exploit
Remora: A single canTransfer from InvestorA inflates the allowance of EntityB and EntityD (entitie
Chain
Other
Category
untagged
Date
Jan 1970
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: 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).
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#
Marked-line walkthrough (Playground)#
The EVM Playground pins each step to the exact executed source line in 0x8ea53755a6…:
- L40 — Token symbol storage: Setup: token metadata field on the security-token contract that enforces the 5/50 ownership rule.
- L83 — Map individual to their entities: Setup:
findEntitylinks each individual to the entities they belong to, used to roll holdings up into entity allowances. - 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.
- L119 — Catalyst check on wrong individual: Root cause: keying the update on a co-group member's
numCatalystinflates allowances of entities (EntityB, EntityD) the transferring investor never belonged to. - 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.
- L146 — Read investor's catalyst count: Reads
numCatalystfor an investor in the group — the field that decides, incorrectly, which entities get their allowance adjusted. - 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):
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
- No executable Forge reproduction is claimed; the historical source/toolchain was unavailable for this finding.
- AuditVault finding: 63781-updating-the-entity-allowance-when-the-individual-belongs-to.
- Upstream DeFiHackLabs PoC directory: src/test.
Alerts & third-party analyses
- DeFiHackLabs incident explorer: [search "Remora: A single canTransfer from InvestorA inflates the allowance of EntityB and EntityD (entitie"](https://defihacklabs.io/explorer/index.html?q=Remora%3A%20A%20single%20canTransfer%20from%20InvestorA%20inflates%20the%20allowance%20of%20EntityB%20and%20EntityD%20(entitie).
- Web3Sec X hacked database: search.
- Rekt leaderboard: [search](https://rekt.news/?s=Remora%3A%20A%20single%20canTransfer%20from%20InvestorA%20inflates%20the%20allowance%20of%20EntityB%20and%20EntityD%20(entitie).
- Solodit incident search: [search](https://solodit.xyz/issues?search=Remora%3A%20A%20single%20canTransfer%20from%20InvestorA%20inflates%20the%20allowance%20of%20EntityB%20and%20EntityD%20(entitie).
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.