gbaleeee (@gbaleeeee) header
gbaleeee (@gbaleeeee) profile picture

愚钝之人 | SR @ sec3dev

Joined September 2021
Photo by gbaleeee (@gbaleeeee)
Inspired by the "two parser bug," I identified a vulnerability related to precision loss during the audit. If you're interested in precision loss or fuzz testing, check this out: medium.com/@zxy211965/precis…
I call it a "two parser bug". Two different implementations tracking the same input, and parsing differences cause diverging behavior from different parts of a system. Here's two recent examples used in hacks, and how to avoid. 🧵1/5
6
1
23
4,543
gbaleeee retweeted
I used property testing during a Solana AMM audit. This blog post walks through the seven properties and their reasoning, the sequence-based test structure, and a case where my own test had a bug that looked like a real finding: s3v3ru5.github.io/posts/sola…
1
8
29
1,866
gbaleeee retweeted
Introducing EVMbench—a new benchmark that measures how well AI agents can detect, exploit, and patch high-severity smart contract vulnerabilities. openai.com/index/introducing…
1,135
1,241
845
8,680
2,619,857
gbaleeee retweeted
I’ve been getting a lot of questions about how this bug was found, so here are the answers: kritt.ai/technical-review This is a technical review of how Claude Code was used to uncover this crazy bounty, and more broadly how AI can be leveraged to find Critical and High-severity issues.
Just a few days ago, the legends behind @_blockian found a max critical that earned them $250,000. Merry Christmas!
25
49
10
453
58,494
⚠️ The full technical postmortem for the USPD exploit is now live. The root cause was not contract logic, but deployment atomicity. Our forensic analysis indicates this is an industrial-scale operation: we identified ~200 other proxies on mainnet infected by the same infrastructure. 👉 Read it here: uspd.io/blog/anatomy-of-a-ha… We deployed the proxy in one transaction and initialized it in another. In that brief window, an attacker installed a "shim" that forwarded calls to our legitimate code while retaining admin control. This allowed the protocol to function normally for 3 months, passing verification checks, until we attempted a routine upgrade. We break down the specific architectural decisions—specifically regarding deterministic addresses—that created the window for the CPIMP attack. Full analysis and data in the article. 👇 V2 architecture is already in motion, moving to strictly atomic deployments to eliminate this vector entirely. Simplified modular architecture, DeFi-compatible yield design, and more. We will share further details as we progress. Next steps: Recovery Tokens and closed group affected holders, protocol adjustments and re-launch preparation. 🤝 Special thanks to @SEAL_911 for their immediate assistance in helping us navigate the aftermath.
2
8
5
20
5,827
New on our Frontier Red Team blog: We tested whether AIs can exploit blockchain smart contracts. In simulated testing, AI agents found $4.6M in exploits. The research (with @MATSprogram and the Anthropic Fellows program) also developed a new benchmark: red.anthropic.com/2025/smart…
340
682
502
4,725
2,129,193
.@Balancer and several forked projects were attacked a few hours ago, resulting in losses exceeding $120M across multiple chains. This was a highly sophisticated exploit. Our initial analysis suggests the root cause was an invariant manipulation that distorted the BPT price calculation, allowing the attacker to profit from a specific stable pool through a single batch swap. Take an attack TX on Arbitrum as an example, the batchSwap operation can be broken down into three phases: 1. The attacker swaps BPT for underlying assets to precisely adjust the balance of one token (cbETH) to the edge of a rounding boundary (amount = 9). This sets up the conditions for precision loss in the next step. 2. The attacker then swaps between another underlying (wstETH) and cbETH using a crafted amount (= 8). Due to rounding down when scaling token amounts, the computed Δx becomes slightly smaller (8.918 to 8), leading to an underestimated Δy and thus a smaller invariant (D from Curve’s StableSwap model). Since BPT price = D / totalSupply, the BPT price becomes artificially deflated. 3. The attacker reverse-swaps the underlying assets back into BPT, restoring balance while profiting from the deflated BPT price. Attack TX on Arbitrum: app.blocksec.com/explorer/tx…
ALERT! @Balancer and several forked projects have been attacked. Any forked projects should stay alert and monitor closely! The losses were as follows: Eth: balancer, 70m Base: balancer, 3.9m Polygon: balancer, 117k Sonic: beets, 3.4m Arb: balancer, 5.9m Op: beethoven, 283k
18
78
27
466
121,550
gbaleeee retweeted
Just mitigated: The CPIMP Attack – a stealthy front-running exploit infecting 100s of DeFi proxies across many protocols Attacker inserts hidden proxies that self-restore, spoof Etherscan, and lie dormant for high-value strikes Tens of millions at risk dedaub.com/blog/the-cpimp-at…
3
16
8
68
17,358
gbaleeee retweeted
Replying to @GMX_IO
@GMX_IO V1 has been hacked. Here is how:
2
5
4
19
4,433
When I first learned Solana, I was searching for a resource that explained how Solana programs work under the hood, beyond just Rust. I couldn’t find one I liked, so I wrote my own. Get nerdy: ubermensch.blog/under-the-ho…
39
70
12
440
71,370
gbaleeee retweeted
👾 ✨ New Bugfix Review! On March 10th, 2025, the security researcher @thel4stc0de submitted a critical vulnerability to @RaydiumProtocol via Immunefi, securing the protocol for a bounty of $505,000. Read on and POC for yourself! immunefi.com/blog/all/raydiu…
7
9
72
4,092
gbaleeee retweeted
如果大家对 EIP-7702 的各种属性感兴趣,可以阅读 EIP-7702: A Deep Dive into Smart EOAs with Implementation Examples hackmd.io/@colinlyguo/SyAZWM…
5
11
1,536
gbaleeee retweeted
Some ct hacks are extremely nerdsniping for being one of a kind. (LowCarb unbundling, Balancer read-only reentrancy, zKasino oracle DDOS, Tornado polymorphic Proposal...). They can now welcome the latest entrant: 1Inch Yul Calldata Corruption 👇 (1/16)
8
20
4
143
18,421
gbaleeee retweeted
Just open-sourced a tool I wrote to recover IDL info from closed-source Solana programs — no IDA, Binary Ninja, or other decompilers needed. Still a prototype (a few bugs here and there), but it should handle most instructions fine. sec3.dev/blog/idl-guesser-re…
5
6
50
2,724
Quick analysis: The root cause seems to be double-spending order collateral value
We are aware of an exploit in relation to our gmCauldrons. Core contributors and security engineers are investigating the issue in depth and will provide more information as soon as available. Each gmCauldron was fully audited by @GuardianAudits prior to release. The same lead auditors as GMX core contracts, gmCauldrons are also integrated within the rest of Abracadabra Security infra including @zeroshadow_io tracking, @hexagate_ response software as well as further security measures behind the scene. While having multiple systems in place, the exploit was caught only after the attacker executed several transactions. The Zeroshadow team alerted us and we quickly turned off all borrows to all cauldrons. The full damage of the attack is currently being assessed. We are working together with @GuardianAudits, @GMX_IO, and other security peers to identify the execution of the hack. No user collateral is affected and this exploit only affects the gmCauldrons. We are in close contact with @chainalysis who are tracking the funds, that are currently consolidated on 0xaf9e33aa03caaa613c3ba4221f7ea3ee2ac38649. To the hacker, we are happy to entertain negotiations for a bug bounty of 20% of the total. Reach out at [email protected] or on chain to our treasury address on ETH 0xDF2C270f610Dc35d8fFDA5B453E74db5471E126B. A full post mortem will be provided once ready.
1
1
1
2
591
3. Attacker uses the collateral in the order to borrow MIM and liquidate itself(withdraw collaterl from order). Due to the previous deposit order failure, orders[user] is not cleared at this time. arbiscan.io/tx/0x7880cdcd160…
1
1
125
After the attacker completes the liquidation and retrieves the collateral, the order can still participate in the isSolvent calculation as collateral(orders[user] != address(0)). The attacker borrows MIM tokens again with an empty order as collateral.
1
1
116