SQTokenStaking's owner-only `stakeOwner` function let whoever held the contract's owner key fabricate matured stake positions with no real principal, and zeroing the protocol's lock-period array made `unstake` pay them out one-to-one. DeFiHackLabs and DeFiLlama's hacks tracker both report the loss at about 346,137 USDT (about $346.1K), and independent researcher DefiNerd_sec calls the root cause a hardcoded owner backdoor.
Security ·
Logged as “2026-05-12: Access Control on SQTokenStaking”.
SQ runs a BNB Chain staking contract, Staking, that locks a token called SQI and pays USDT-denominated rewards for it. Alongside the public stake and unstake functions it carries an admin path meant for bookkeeping: stakeOwner can credit any address with a stake record directly, without that address ever depositing anything, and withdrawalTokens can move any ERC-20 balance the contract holds to any recipient. Both are restricted with onlyOwner, which is the only thing standing between them and a full drain. The contract's source, verified on Sourcify, confirms both functions exist exactly as the proof of concept uses them, at the deployed address 0x404404A845FFF0201f3a4D419B4839fC419c99F7.
By the time of the attack, the owner role already belonged to the address DeFiHackLabs and the independent researcher who first reported it both call the attacker, 0xE746c9043Aa0106853c5e4380A9A307Fe385378e (shortened below as 0xE746…378e). No source, including the proof of concept's own notes, which mark the post-mortem field "N/A," explains when or how that address came to hold it. What is established is how it was used: on 12 May 2026 at 10:11:11 UTC, that account sent a single type-0x4 transaction, 0x1bae633eda9b3d98999ea116bc403712eaa07093ec32bd6d559085cc4607f5b8, carrying an EIP-7702 authorization that attached custom code directly to itself, confirmed independently by querying the transaction on a public BNB Chain node. bind and unstake both carry an onlyEOA modifier, if (Common.isContract(msg.sender) || tx.origin != msg.sender) revert EOA();, meant to keep the staking flow restricted to wallets rather than bots or helper contracts. A conventional attack contract would have failed that check. Delegating code to the owner's own externally owned account let every call in the sequence, including the ones gated only by onlyOwner, run from an address that was still, as far as the contract could tell, a plain wallet.
The sequence itself, reconstructed from DeFiHackLabs's proof of concept:
transferOwnership to the same address, a no-op given it already held the role, but the first line of the delegated code regardless.bind, registering a referral, a prerequisite the public stake function also enforces.setUintArray(1, [0]), zeroing the protocol's only lock period, stakeDays[0], from thirty days down to zero.stakeOwner, each crediting the caller with a fabricated stake record of between 100 and 90,000 units of USDT-denominated principal, backdated to a stake time more than seven months before the transaction, without any of that principal ever arriving.unstake calls redeeming ten of those twelve records for real USDT drawn from the contract's own SQI and USDT holdings.withdrawalTokens, sweeping whatever SQI balance remained in the contract to the caller directly.Step 3 is what the rest depends on. unstake's settlement function, burn, first requires block.timestamp-stakeTime >= stakeDays[stakeIndex] before it will touch a position, then calculates the payout by compounding the staked amount over the elapsed time, capped at stakeDays[stakeIndex]. With that array zeroed, the first check passes for any stake time at or before the current block, and the elapsed-time cap collapses to zero, which the payout function's own branch reads as an instruction to return the staked amount unchanged rather than compound anything. Zeroing one admin-only array variable turned every redemption into a one-to-one cash-out of whatever figure the owner had typed into stakeOwner. The ten redeemed records (indices 1 to 10, skipping the first and last of the twelve) totalled 296,500 USDT in fabricated principal. The 346,137 USDT profit is higher than that because it also includes the USDT from the final PancakeSwap sale of the SQI swept out with withdrawalTokens.
The loss figure is unusually well corroborated for a protocol of this size. DeFiHackLabs's proof of concept asserts a realised profit of 346,137.034345 USDT. The researcher DefiNerd_sec, writing independently of DeFiHackLabs, calls the root cause a "hardcoded owner backdoor." DeFiLlama's hacks tracker lists the incident separately, under the name SQ Protocol, classified as Access Control, with a loss of $346,137. None of the three states where the funds went afterward. A direct balance check on BNB Chain in late October 2026 found 0xE746…378e holding negligible USDT and BNB, with dozens of transactions sent from it since, but no source traces the destination.
The same tool resurfaced five months later against a different BNB Chain reward system. AlpsCon's reward hub was drained in October 2026 by an EIP-7702 authorization signed with a different, separately known private key, bundling a flash-loaned stake and a cross-version reward migration into one transaction the same way this attack bundled an ownership check, a fabricated stake and a withdrawal. Neither incident broke a cryptographic primitive or found a reentrancy path. Both turned a correctly gated administrative function into a full drain the moment the key behind it could be used to run arbitrary code from inside the account that held it.
Query every incident yourself — free, no signup
Updated 30 Nov 2026. Figures are as reported by the sources listed above and are not independently verified.