Target is hidden
This information is not publicly available.
This report demonstrates a concrete lock mechanism in in-scope code with runnable PoC tests. The bug itself is not hypothetical.
The selected severity remains Critical because HackenProof rewards only critical findings, but official payout-critical applicability under this program still depends on whether the affected inbound bridge path is part of the protocol as currently deployed. If the affected inbound path is not currently live and in-scope, this remains architecture-critical rather than a clean payout-critical submission under the "currently deployed" rule.
Verified now (PoC-backed):
_credit(...) can reach a destination-local totalBridgedOut decrement that underflows,Verified now (public deployment status):
2026-04-02, the official deployment page still says No mainnet deployments yet. Coming soon...These are testnet deployments. Do not use real funds.What remains deployment-gated under program rules:
_debit then destination _credit),totalBridgedOut < inbound amount._debit then destination _credit); no rogue privileged-user assumption.OverlayerWrapCore tracks bridged-out supply in a single local storage variable, totalBridgedOut. During _debit(...), the source chain increments that local counter when tokens are burned for an outbound bridge transfer. During _credit(...), the destination chain decrements its own local counter.
This is unsafe because each deployment has independent storage. A fresh destination starts with totalBridgedOut == 0, even though the source chain may have already incremented its own counter during the outbound burn. When the first inbound transfer arrives, _credit(...) reaches:
totalBridgedOut -= amountReceivedLD;
and underflows on the destination deployment.
The important detail is that the underflow happens after super._credit(...). Because it occurs in the same transaction, the entire receive reverts and the destination mint is rolled back too.
The effect is concrete: a user can burn on source, the LayerZero packet stays valid/staged, and destination receive still reverts before minting. The same failure can recur on destinations with net inbound volume over local bridged-out history.
This issue is distinct from the prior Hacken fix for outbound-supply accounting. That earlier issue addressed hub-side backing math after OFT burns. The current bug survives after the totalBridgedOut fix because it appears on the receive side: _credit(...) subtracts from a destination-local counter that was never incremented by the originating burn.
Impact is direct cross-chain availability failure. Inbound bridging can fail on fresh or net-inflow destinations, leaving source-side funds burned and destination credit unavailable until destination-local accounting state changes.
Under HackenProof's critical bar, the core security property is a protocol-managed lock state after source-side burn, with no user-controlled completion path on the affected destination leg. Official payout-critical classification still depends on current-deployment applicability for that path.
OverlayerWrapMock instances representing source and destination chains, each with its own endpoint harness and independent storage.4 OVA+ to alice on the source chain.testDebit(alice, 4 ether, 4 ether, DST_EID) on the source instance. This burns Alice's source-side balance and increments srcWrap.totalBridgedOut().dstEndpoint.lzReceive(...).dstWrap.totalBridgedOut() is still zero because the destination never had matching local outbound volume.Do not decrement a destination-local totalBridgedOut inside _credit(...). If this counter is needed for hub-side backing calculations, keep it scoped to the chain that actually burned supply, or track bridge accounting per remote path so a credit can only offset the same accounting bucket that the original debit incremented.
For any successful source burn of x intended for a destination peer, destination credit processing for that payload must be independent of unrelated destination-local bridge history. In particular, destination _credit must not require prior destination-local outbound volume to succeed.
cd workspace/poc/foundry
forge test --match-path test/POC_F10_DestinationCreditUnderflow.t.sol -vv
OverlayerWrapCore.sol line 543: totalBridgedOut -= amountReceivedLD underflows when destination has no prior local outbound volume.
Attachments are hidden
This information is not publicly available.
Comments are hidden
This information is not publicly available.