Noah (@noahkokor) header
Noah (@noahkokor) profile picture

Dev πŸ‘¨β€πŸ’» || DeFi Maxi

Seoul
Joined September 2020
Photo by Noah (@noahkokor)Photo by Noah (@noahkokor)Photo by Noah (@noahkokor)Photo by Noah (@noahkokor)
EtherFi μΉ΄λ“œ μ‹€μ‚¬μš© ν›„κΈ° @ether_fi λ‹¨μˆœνžˆ μΉ΄λ“œμ— 토큰을 μΆ©μ „ν•΄μ„œ μ“°λŠ”κ²Œ μ•„λ‹ˆλΌ, DeFi에 νˆ¬μžν•˜λ©΄μ„œ 자금이 κ·ΈλŒ€λ‘œ μ†ŒλΉ„κΉŒμ§€ μ—°κ²°λ˜λŠ” ꡬ쑰λ₯Ό 잘 λ§Œλ“€μ–΄ λ‘” 것 κ°™μŒ. μ§€κΈˆ ν”„λ‘œλͺ¨μ…˜ 기간이라 효율 μ’‹μŒ (7μ›” 31일 κΉŒμ§€) - 3% μΊμ‹œλ°± ($SCR ν† ν°μœΌλ‘œ 쀌) - 9.8% APY 예치 이자 - 예치, κ²°μ œμ•‘ λΉ„λ‘€ $ETHFI 토큰 μ—λ“œ (ν˜„μž¬ 가격 κΈ°μ€€ 1% 이상 μΊμ‹œλ°±) πŸ‘‰ μΉ΄λ“œ λ°œκΈ‰ : ether.fi/refer/11948c34 μ‹€ 결제 ν›„κΈ° 1. $138.5 λ‹¬λŸ¬λ‘œ 결제 λ‹¬λŸ¬ ν‘œμ‹œ 결제 κ²½μš°μ—λŠ” 수수료 없이 μ •ν™•ν•˜κ²Œ λΉ μ§€λŠ” 것 κ°™μŒ. 2. β‚©90000 μ›ν™”λ‘œ 결제 $67.02 결제 됐고 ν•œ 1% 정도 ν™˜μ „ 수수료둜 λ‚˜κ°„λ“―? λ‘˜ λ‹€ 3% μΊμ‹œλ°±μ€ λ°”λ‘œ $SCR ν† ν°μœΌλ‘œ λ“€μ–΄μ˜€κ³  $ETHFI λŠ” μˆ˜λŸ‰ μŒ“μž„(μΆ”ν›„ 받을 수 있음) μ›λž˜ 크립토 μΉ΄λ“œ 잘 μ•ˆμ“°λ˜ 이유 쀑 ν•˜λ‚˜κ°€ κΉ€ν”„ λ•Œλ¬Έμ— μ†ν•΄λ³΄λŠ” 게 μ‹«μ—ˆλ˜ 건데, μΊμ‹œλ°± λ‹¬λ‹¬ν•˜κ³  생각보닀 많이 νŽΈν•΄μ„œ ν”„λ‘œλͺ¨μ…˜ 기간에 μ—΄μ‹¬νžˆ μ‚¬μš©ν•  λ“―! μ• ν”Œ νŽ˜μ΄μ— λ„£μ–΄μ„œ μ“°λ©΄ νŽΈν•¨(μ‚Όμ„± νŽ˜μ΄λŠ” μ•ˆλŒ,,)
4
441
1/ @pendle_fi이 solana에도 λ‚˜μ˜¨λ‹€κ³ ? μ†”λΌλ‚˜ 졜초 μΌλ“œ νŠΈλ ˆμ΄λ”© ν”„λ‘œν† μ½œ @sandglass_so에 λŒ€ν•΄ μ•Œμ•„λ³΄μž.
1
1
10
616
6/ @sandglass_so 의 yield trading AMM (YT-PT) 에 @Lifinity_io 의 기술λ ₯을 ν™œμš©ν•œλ‹€λ©΄ 쒋은 퍼포먼슀λ₯Ό 보여쀄 μˆ˜λ„ μžˆμ§€ μ•Šμ„κΉŒλΌλŠ” 생각이 λ“ λ‹€. 아직 μΆœμ‹œ μ „μ΄μ§€λ§Œ λ§Žμ€ κΈ°λŒ€κ°€ 되기 λ•Œλ¬Έμ— κΎΈμ€€νžˆ νŒ”λ‘œμ—… ν•  μ˜ˆμ •μ΄λ‹€.
1
3
199
7/ ++ @sandglass_so κ°€ 자체 토큰을 μΆœμ‹œν•  μ§€λŠ” λͺ¨λ₯΄κ² μ§€λ§Œ @Lifinity_io λŠ” 자체 토큰 $LFNTY κ°€ μžˆλ‹€. 자체 토큰 μΆœμ‹œ 여뢀와 상관없이 $LFNTY 홀더듀은 이득이 λ˜λŠ” λ°©ν–₯으둜 갈 것 κ°™λ‹€.
3
178
The $80M Tragedy of Errors I'm certain that @Orbit_Chain's hack is due to two reasons: #1. Weak Validation in the "withdraw" Function The function does not adequately validate the token parameter, nor does it ensure that the withdrawal amount (uints[0]) is available in the vault. This allows for potential exploitation where unauthorized tokens can be withdrawn. The withdraw function does check signatures, chain IDs, used withdrawals, etc., to validate the request. But it missing some critical checks: -- There is no check on the token parameter passed. An exploiter can specify any token address they want to withdraw -- There is no check that the uints[0] (amount) matches the actual vault balance of that token -- It directly transfers out tokens based on the parameters supplied without verifying if the 'msg.sender' actually has the right to withdraw that token and the amount. Anyone can call and pass any token to withdraw This vulnerability doesn't just open the door for a single instance of exploitation but can be repeatedly abused, potentially draining the vault of various tokens, which is what happened as $30M USDT, $10M DAI, and $10M USDC), 231 wBTC (~$10M), and 9,500 ETH (~$21.5M) were exploited. (Links in the comments) It also does not check whether Vault balances >= withdrawal amounts for that token. This, in turn, allows overdrawing arbitrary amounts of any token. This means the access controls and vault balance protections are bypassed entirely. #2. Insufficient Signature Validation in "_validate" Function This function does not check whether the signatures are directly associated with the specific withdrawal details, nor does it ensure that the number of valid signatures meets the required threshold. The '_validate' function also has two main flaws: -- It does not actually validate signatures match the withdrawal data. It only checks that the signers are valid owners. This allows the exploiter to construct fake signatures using any owner private keys. -- It counts valid signatures without checking if the final count reaches the required threshold. This allows withdrawals with less signatures than expected. The transfer happens based purely on unvalidated external input. This allows exploiter to create and withdraw payload packets with: -- Any token addresses -- Any withdrawal amounts -- Any recipient addresses And steal funds without proper authorization or balances. So I'm assuming that the combination of these two flaws would have let an exploiter create fake signatures for a withdrawal transaction using a small number of compromised owner keys. So there might be some private key compromises here. This is how it could have happened (Refer to the diagram below): 1. The exploiter obtains a few private keys of the contract owners. Complete compromise isn't necessary due to the weak signature validation. 2. The exploiter creates a withdrawal request with: - A token address that the exploiter targets. - A withdrawal amount that may exceed the contract’s balance for that token. - A recipient address controlled by the exploiter. 3. The exploiter uses the compromised keys to sign the withdrawal request. The _validate function verifies the signatures but does not link them to the specific details of the withdrawal request, nor does it enforce the signature count threshold. 4. Given the lack of proper validation in both the withdraw and '_validate' functions, the contract processes the withdrawal, transferring the specified tokens to the exploiter's address. 5. The exploiter successfully withdraws an arbitrary amount of tokens, possibly more than what is stored in the vault, to any recipient address they choose, thereby draining assets from the contract without proper authorization or balance checks. I'm speculating here on the basis of most convictions I have. But let's wait for a detailed post-mortem. However, a private key compromise is highly likely. One question I would ask the Orbit Team: Were there not any alert triggers on abnormal withdrawal destinations or amounts?
8
33
6
112
27,843
AMM LP-Enabled Perps, Options, and Volatility Trading Products The Uniswap moment for on-chain Derivatives, and a new DeFi frontier 🧡
6
31
12
120
32,889