Not compatible with Rebasing/Deflationary/Inflationary tokens
The DepositBoxERC20 contract does not account for tokens whose balances change during transfers or over time, such as rebasing, deflationary, or inflationary tokens. An attacker could exploit this by depositing such a token and causing the contract's accounting to become inconsistent, potentially leading to loss of funds or incorrect bridging.
Submitted by 0x1f8b, also found by cmichel, kirk-baird, gzeon, and IllIllI
The DepositBoxERC20 contract do not appear to support rebasing/deflationary/inflationary tokens whose balance changes during transfers or over time. The necessary checks include at least verifying the amount of tokens transferred to contracts before and after the actual transfer to infer any fees/interest.
Recommended Mitigation Steps
Add support in contracts for such tokens before accepting user-supplied tokens Consider to check before/after balance on the vault.
cstrangedk (SKALE) disputed and commented:
Issue is acknowledged and is contingent on SKALE Chain owner configuration and evaluation of compatibile tokens.
GalloDaSballo (judge) commented:
Because this is reliant on configuration, I believe the finding to be valid and of medium severity.
End users can verify if the DepositBoxes are properly handling rebasing tokens at the time they wish to bridge
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
Likely the contract assumes the transferred amount equals the received amount without verifying balances before and after the transfer.
Impact
Because the issue depends on configuration, the judge rated it medium severity; end users can check whether the deposit boxes handle rebasing tokens before bridging.
What the attacker needed
A rebasing, deflationary, or inflationary token; the token is accepted by the deposit box
The fix
The contract should be updated to check the vault balance before and after transfers to account for fees or interest, or such tokens should be rejected.
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.
Some tokens automatically change a user's balance over time or take a fee on each transfer. This report says the deposit contract does not check for that, so the amount it records may not match what actually arrives. That mismatch could let someone game the system or lose money when bridging.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.