gandu_whitehat Profile Banner
gandu Profile
gandu

@gandu_whitehat

Followers
1K
Following
614
Media
10
Statuses
87

SR @halbornSecurity || @securityOak | Associate All Star @immunefi

Joined September 2022
Don't wanna be here? Send us removal request.
@gandu_whitehat
gandu
1 year
🧡 $22.7M loss across three projects due to one lazy nature: "We, as a protocol, will make sure that we are the first depositor." Bug : Share inflation on empty vaults escalated to Hundred Finance type attack.
2
8
87
@0xrudrapratap
0xrudra
5 months
@immunefi
Immunefi
5 months
πŸ’« The next Immunefi All Star is here! The πŸ† @gandu_whitehat of the chains is joining as an Associate! His first crit is in. More are loading. Welcome to the ALL STARS, Gandu!
0
1
12
@gandu_whitehat
gandu
5 months
I’m happy to share that I’ve joined the @immunefi All-Stars! Looking forward to working with the top bug hunters in the space 🐞
@immunefi
Immunefi
5 months
πŸ’« The next Immunefi All Star is here! The πŸ† @gandu_whitehat of the chains is joining as an Associate! His first crit is in. More are loading. Welcome to the ALL STARS, Gandu!
3
4
50
@gandu_whitehat
gandu
8 months
I'm excited to share that I've joined the @CantinaXYZ Fellows team https://t.co/v6MpKxpGyh
@cantinaxyz
Cantina πŸͺ
8 months
The Cantina Fellowship welcomes a formidable DeFi security expert β€” our newest Fellow, @gandu_whitehat! πŸͺ
14
1
91
@gandu_whitehat
gandu
1 year
This incident shows why Web3 needs platforms like @immunefi , @sherlockdefi , and @code4rena , which ensure every aspect of protocol security is thoroughly addressed before and after a bug is discovered.
0
0
13
@gandu_whitehat
gandu
1 year
Middas Protocol: Contacting them on 25th May 2023 about a bug, they didn't acknowledge it and stop responding. On 17th June 2023, Middas Capital got rekt, losing $600K. Here's a snapshot of my conversation with their c0-founder before the incident Bug : https://t.co/b1e8XzKZdo
1
0
11
@gandu_whitehat
gandu
1 year
So on 2nd Nov 2023 attacker exploited this via the new oPEPE pool, stealing $2.2M. Onyx Protocol paid me a bounty of $10k, but unfortunately, they were unable to change the code and got rekt. Bug description :
1
0
6
@gandu_whitehat
gandu
1 year
Onyx Protocol: On 28th March 2023, I submitted a bug via email. At that time, two live vaults' funds were at risk. The protocol resolved it by manually burning the LP but didn't update their factory contract.Thus, only these two pools were secure, while new ones remained at risk
1
0
5
@gandu_whitehat
gandu
1 year
This led to a huge loss of around $20M on 14th May 2024 by attacker executing scheduled operations leading to share inflation on empty vault. https://t.co/4vyMPnE6n1
1
0
6
@gandu_whitehat
gandu
1 year
SonneFinance: On 27th November 2022, I submitted a bug which they acknowledged. They rewarded me with $3k. However, during an upgrade, they argued that they were already doing instant deposits before creating the markets and didn't change the code.
2
0
9
@gandu_whitehat
gandu
1 year
Projects : SonneFinance : Loss $20M. OnyxProtocol : Loss $2.1M. MidasCapitalXYZ : $600K.
1
1
5
@gandu_whitehat
gandu
1 year
Before the attacks, I had already reached out to all three projects, warning them far in advance. Despite my reports about this bug, protocols didn't updated their codebases. My main recommendation: Mint some shares directly through code to be fully secure. Here’s what happened:
1
1
7
@gandu_whitehat
gandu
1 year
Me: Since this morning
4
0
28
@gandu_whitehat
gandu
1 year
Thank you @immunefi and everyone for the wishes! Here is a detailed thread about the bug I submitted. https://t.co/eAXXWjR6SF
@immunefi
Immunefi
1 year
Congratulations @gandu_whitehat on your recently paid reports for finding a medium severity bug on Sovryn on @immunefi. It’s an awesome achievement! #ImmunefiTribe
6
2
78
@gandu_whitehat
gandu
1 year
This is how the initial condition can be achieved to carry out the inflation of share price. Such inflation opens up various attack vectors, particularly in lending protocols. See how it was done in wise lending here: https://t.co/5E6lch0mNv
@danielvf
Daniel Von Fange
2 years
Yesterday's complete hack of Wise Lending was far more complex than reported. Very worth examining. The protocol had added explicit defenses against this style of attack, which the attack then either bypassed or used against the protocol. 🧡 1/21
1
0
7
@gandu_whitehat
gandu
1 year
Using this, the attacker can inflate the price of a share even if total assets are being tracked internally.
1
0
2
@gandu_whitehat
gandu
1 year
Now the totalAssets would have been increased to 11+1 = 12, and totalSupply stays at 1+0= 1. See below table to see what happens if a user continues to deposit an amount = totalAssets -1 in a loop. See below to visualize it. With only 75 loops, it increases to more than 10k ether
1
0
2
@gandu_whitehat
gandu
1 year
Above, we have achieved the initial conditions where totalSupply = 1 and totalAssets = 11. Now, if a user deposits 1 wei of assets, the shares minted to them would be calculated as (amount * totalSupply) / totalAssets = (1 * 1) / 11 = 0.09, which rounds down to 0.
1
0
1
@gandu_whitehat
gandu
1 year
New Exchange Rate: The total amount of underlying tokens is 11 wei, and the total supply of shares is 1 wei. Therefore, the new exchange rate is 11:1 (11 underlying tokens for 1 share).
1
0
2
@gandu_whitehat
gandu
1 year
Final State: β€’ Total shares: 1 wei (held by Account 2). β€’ Total Deposits: 11 wei (10 wei from Account 1 + 1 wei from Account 2), due to the dust amount created when Account 1's balance was zeroed.
1
0
1