Skip to content
DoS Audit finding Intermediate

`ZappingProxy` cannot receive ETH refunds resulting in failed zaps

The ZappingProxy contract forwards ETH to routers but lacks a payable receive or fallback function, so any ETH refund from the router reverts. This causes the entire zap transaction to fail for ETH paths that expect refunds.

0xShoonya Follow with covey0x07, deadmanwalking and 4 others

Originally disclosed on Sherlock

Source: https://github.com/sherlock-audit/2025-08-usg-tangent-judging/issues/150

Found by

0xShoonya, covey0x07, deadmanwalking, holtzzx, jayjoshix, kimnoic, tobi0x18

Summary

ZappingProxy forwards msg.value to routers but has no payable receive/fallback, so router ETH refunds to the proxy will revert. This causes failed zaps for ETH paths that expect refunds.

Root Cause

When zapProxy is called with tokenIn == CHAIN_COIN and a positive msg.value, it forwards ETH to the router: ZappingProxy.sol#L39-L76

JavaScript
uint256 bal = tokenOut.balanceOf(receiver);

(bool isRouterCallSuccess, bytes memory data) = router.call{value: msg.value}(zap.routerCall);

require(isRouterCallSuccess, ZapCallError(data));

If there is unspent ETH, router refund unspent ETH to caller/msg.sender.

This is the logic present in zapProxy to sweep any ETH balance to the treasury:

JavaScript
} else {
    balanceTokenInLeft = address(this).balance;
    if (0 != balanceTokenInLeft) {
        payable(controlTower.feeTreasury()).transfer(balanceTokenInLeft);
    }
}

But there is no payable receive() or fallback() in ZappingProxy, so ETH refunds to the proxy will revert.

Internal pre-conditions

.

External pre-conditions

.

Attack Scenario

.

Impact

Because ZappingProxy lacks a payable receive()/fallback(), the refund reverts, causing the entire zap to revert.

Mitigation

Add a payable ETH acceptance path (receive/fallback) so router refunds don’t revert.

Discussion

sherlock-admin2

The protocol team fixed this issue in the following PRs/commits: https://github.com/Tangent-labs/tangent-contracts/pull/116

The original report as published on Sherlock, by 0xShoonya. Images and videos are our own copies; raw HTML is shown as text. View it on Sherlock.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The ZappingProxy contract lacks a payable receive or fallback function to accept ETH refunds from routers.

Impact

The missing payable receive/fallback causes the refund to revert, which makes the entire zap transaction fail.

What the attacker needed

Zap called with ETH and positive msg.value; router returns unspent ETH

The fix

Add a payable ETH acceptance path (receive or fallback) so router refunds do not revert.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A smart contract can only accept ETH if it has a special function to receive it. This contract sends ETH to another service but forgot to add that function, so when the service tries to return leftover ETH, the transfer fails and the whole operation is cancelled.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by 0xShoonya

View all

8 more disclosed reports, best first.

More from USG - Tangent

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.