Voted Coins
follow us on twitter . like us on facebook . follow us on instagram . subscribe to our youtube channel . announcements on telegram channel . ask urgent question ONLY . Subscribe to our reddit . Altcoins Talks Shop Shop


This is an Ad. Advertised sites are not endorsement by our Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise Here

Author Topic: zkLend hack or exploit a loophole in the protocol?  (Read 319 times)

Online examplens

  • Legendary
  • *
  • *
  • *
  • *
  • Activity: 3362
  • points:
    208833
  • Karma: 489
  • Premium Bitcoin Mixer
  • Trade Count: (0)
  • Referrals: 0
  • Last Active: Today at 11:24:18 PM
    • View Profile

  • Total Badges: 22
    Badges: (View All)
    Quick Poster One year Anniversary 50 Poll Votes
zkLend hack or exploit a loophole in the protocol?
« on: February 16, 2025, 05:05:58 PM »
A few days ago, the zkLend, a decentralized finance lending protocol on Starknet announced losses due to the hacking of their platform. First, they asked the hacker to return 90% of the withdrawn funds, 10% as a reward for that and not start the process against them.

Quote
To the hacker:

We understand that you are responsible for today’s attack on zkLend. You may keep 10% of the funds as a whitehat bounty, and send back the remaining 90%, or 3,300 ETH to be exact, to this Ethereum address: 0xCf31e1b97790afD681723fA1398c5eAd9f69B98C.
https://x.com/zkLend/status/1889515118368829559

They did not accept it, so some kind of further investigation will probably follow.
However, is it a hack or how to characterize when someone takes advantage of flaws in the system?
Yesterday they published the "zkLend security incident post-mortem". In short, what happened?

The attack exploited interest manipulation and rounding errors during withdrawals in two steps:

Hacker* deposited the minimum amount into an empty pool and used quick loan "donations" to artificially inflate the accumulator. By making frequent withdrawals and deposits, he abused rounding, which allowed him to withdraw more than he had.

A small initial deposit allowed for the manipulation of the basic budget, and quick loan "donations" artificially inflated the interest accumulator.
Rounding during withdrawals allowed for smooth withdrawals of excess funds.
█████████████████████████████████
████████████████████████████
████████████████████████████
████████████████████████████
████████████████████████████
████████████████████████████
██████████████████████████
████████████████████████████
████████████████████████████
████████████████████████████
████████████████████████████
████████████████████████████
█████████████████████████████████
█████████████████████████████████████████████████████████████████████████████
.
MixTum.io
.
█████████████████████████████████████████████████████████████████████████████
█████
██
██
██
██
██
██
██
██
██
██
██
█████
.
▀▄ Premium Bitcoin Mixer ▄▀
█████
██
██
██
██
██
██
██
██
██
██
██
█████
███████████████████████████████████████████████████████████████
.
MIX FREE
Up to 1mBTC
.
███████████████████████████████████████████████████████████████
█████
██
██
██
██
██
██
██
██
██
██
██
█████
████████████████████████
█████████████▀▀████████
████████████▀▄█████████
██████████▀▌▄██████████
██████████▌███████████
█████████▀▄███▀████████
██████▀▄▄██████▀███████
█████▀▄█▀▄████████████
██████▀▄█▌▐████▐█████
█████▌▐█▀▌▐█████▐█████
██████████████▄██████
███████▄██████▄████████
████████████████████████

Altcoins Talks - Cryptocurrency Forum

zkLend hack or exploit a loophole in the protocol?
« on: February 16, 2025, 05:05:58 PM »

This is an Ad. Advertised sites are not endorsement by our Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise Here


Offline hugeblack

  • Legendary
  • *
  • *
  • Activity: 2798
  • points:
    139361
  • Karma: 300
  • Your Privacy Matters
  • Trade Count: (0)
  • Referrals: 9
  • Last Active: Today at 07:33:14 AM
    • View Profile

  • Total Badges: 17
    Badges: (View All)
    2500 Posts One year Anniversary Poll Voter
Re: zkLend hack or exploit a loophole in the protocol?
« Reply #1 on: February 16, 2025, 06:17:42 PM »

Exploiting security vulnerabilities is another definition of hacking as it is simply gaining access to someone without obtaining the appropriate permissions.


Whitehat bounty should be before stealing coins and exploiting the vulnerability then they can claim 10% but after the hacking occurs such deals may encourage more hackers to steal customers' money and get 10% without legal problems.


anyway another decentralized finance hacked ;D
░░░░░░░░░░░░░░░░░█████████████
░░░██████░░░░░░░░█████████████
░░░██████░░░░░░░░█████████████
░░░██████░░░░░░░░█████████████
░░░░░░░░░░░░░░░░░█████████████
░░░░░░█████████░░█████████████
░░░░░░█████████
░░░░░░█████████
░░░░░░█████████░░░░█████████
░░░░░░░░░░░░░░░░░░░█████████
████░░░░░░░░░░░░░░█████████
████░░░░░░░░░░░░░░█████████
██████████████████████████████
█████████▀▀███▀▀░░▀▀▀█████████
███████▀░░█▀░░░░▄▄▄▄▄▄▄███████
██████░░░██░░▄█▀▀░░░░░▀▀██████
█████░░░░█░░███████▄▄▄░░░▀████
███░██░░░█▄████████▄░▀█▄░░░███
███░░██░░░███████████░░▀█▄░███
████░░▀██▄▄████████░██░░░█▄███
█████░░░░░▀▀▀▀▀▀██░░██░░░█████
███████▄▄▄▄▄▄▄█▀░░░▄█░░░██████
████████▀▀▀▀░░░░░░██░░▄███████
██████████▄▄▄▄▄████▄██████████
██████████████████████████████
██████████████████████████████████████████████████████████████████████████████████
.
MIXERO.IO
.
██████████████████████████████████████████████████████████████████████████████████
████
██
██
██
██
██
██
██
██
██
██
██
████
..
..
..
..
..
..
..
..
██████████████████████████████
███████▀▀██░▀█████████████████
████████░░█░█▀▀░██████████████
████████░░▀░░░▄███████████████
██████▀░░░░░░░░░▀██████░▀█████
████▀░░░░░░░░░░░░░██▀▀█▄░░████
████░░░░░░░░░░░▄████▄░▀██░░███
████░░░░░░░░░▄██▀░▄██░░██░░███
█████░░░░░░▄██▀████▀░░██░░████
███████▄▄▄████▄░░░░▄██▀░░█████
███████████░░▀▀▀██▀▀▀░░▄██████
██████████████▄▄▄▄▄▄██████████
██████████████████████████████
..
..
..
..
████
██
██
██
██
██
██
██
██
██
██
██
████
██████████████████████████████████████████████████████████████████████
.
MIX.NOW
.
██████████████████████████████████████████████████████████████████████
████
██
██
██
██
██
██
██
██
██
██
██
████
█████████████
█████████████
░░░░░░░░░██████
█████████████░░░░██░░░██████
█████████████░░░░░░░░░██████
█████████████
█████████████░░█████████
░░░░░░░░░░░░░░░█████████
░░░░░░░░░░░░░░░█████████
░░█████████░░░░█████████
░░█████████
░░█████████░░░██░░░░░░░░░░████
░░█████████░░░░░░░░░░░░░░░████

Altcoins Talks - Cryptocurrency Forum

Re: zkLend hack or exploit a loophole in the protocol?
« Reply #1 on: February 16, 2025, 06:17:42 PM »

This is an Ad. Advertised sites are not endorsement by our Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise Here


Offline Stompix

  • Legendary
  • *
  • *
  • Activity: 3054
  • points:
    252944
  • Karma: 270
  • Bitcoin Mixer| Since 2019
  • Trade Count: (0)
  • Referrals: 0
  • Last Active: Today at 07:46:42 PM
    • View Profile

  • Total Badges: 17
    Badges: (View All)
    One year Anniversary 2500 Posts Karma Bad
Re: zkLend hack or exploit a loophole in the protocol?
« Reply #2 on: February 16, 2025, 07:09:56 PM »
Quote
After the 10 flash loan transactions, the lending accumulator grew from the initial value of 1.0 into 4069297906051644020.0.

Who wrote that garbage where something like this is possible?
A simple limit where total accumulator can't get past the maximum loan would have prevented this.

Quote
That’s why in most lending protocols, user balances are not stored directly in face values.

Oh, what a surprise, we knew that for years but god forbid you tell your users these tiny details until they get burned.

Offline Zed0X

  • Mythical
  • *
  • *
  • *
  • Activity: 5020
  • points:
    202350
  • Karma: 438
  • Coinomize.biz
  • Trade Count: (0)
  • Referrals: 34
  • Last Active: Today at 03:13:20 PM
    • View Profile

  • Total Badges: 29
    Badges: (View All)
    5000 Posts Seventh year Anniversary Sixth year Anniversary
Re: zkLend hack or exploit a loophole in the protocol?
« Reply #3 on: February 16, 2025, 10:48:18 PM »
Right, another one protocol getting exploited ;D How people quickly forget what happened to the previous 'decentralized' platforms. Ever since the flash loans attacks, users should have been more cautious with these 'decentralized' lending. Goodluck chasing the hacker.

Online examplens

  • Legendary
  • *
  • *
  • *
  • *
  • Activity: 3362
  • points:
    208833
  • Karma: 489
  • Premium Bitcoin Mixer
  • Trade Count: (0)
  • Referrals: 0
  • Last Active: Today at 11:24:18 PM
    • View Profile

  • Total Badges: 22
    Badges: (View All)
    Quick Poster One year Anniversary 50 Poll Votes
Re: zkLend hack or exploit a loophole in the protocol?
« Reply #4 on: February 17, 2025, 10:56:06 AM »
I forgot to add, the total amount of losses they admitted.
Code: [Select]
Or in aggregate:

2213.638314603870948591 ETH
1553069.487238 USDC
7426029.991485769316032807 STRK
518225.710536 USDT

Who wrote that garbage where something like this is possible?
A simple limit where total accumulator can't get past the maximum loan would have prevented this.
Their official announcement.  ???
One of the reasons why I thought it would be better if they just admitted the hack, without explaining the failure on the platform.
█████████████████████████████████
████████████████████████████
████████████████████████████
████████████████████████████
████████████████████████████
████████████████████████████
██████████████████████████
████████████████████████████
████████████████████████████
████████████████████████████
████████████████████████████
████████████████████████████
█████████████████████████████████
█████████████████████████████████████████████████████████████████████████████
.
MixTum.io
.
█████████████████████████████████████████████████████████████████████████████
█████
██
██
██
██
██
██
██
██
██
██
██
█████
.
▀▄ Premium Bitcoin Mixer ▄▀
█████
██
██
██
██
██
██
██
██
██
██
██
█████
███████████████████████████████████████████████████████████████
.
MIX FREE
Up to 1mBTC
.
███████████████████████████████████████████████████████████████
█████
██
██
██
██
██
██
██
██
██
██
██
█████
████████████████████████
█████████████▀▀████████
████████████▀▄█████████
██████████▀▌▄██████████
██████████▌███████████
█████████▀▄███▀████████
██████▀▄▄██████▀███████
█████▀▄█▀▄████████████
██████▀▄█▌▐████▐█████
█████▌▐█▀▌▐█████▐█████
██████████████▄██████
███████▄██████▄████████
████████████████████████

Offline Stompix

  • Legendary
  • *
  • *
  • Activity: 3054
  • points:
    252944
  • Karma: 270
  • Bitcoin Mixer| Since 2019
  • Trade Count: (0)
  • Referrals: 0
  • Last Active: Today at 07:46:42 PM
    • View Profile

  • Total Badges: 17
    Badges: (View All)
    One year Anniversary 2500 Posts Karma Bad
Re: zkLend hack or exploit a loophole in the protocol?
« Reply #5 on: February 17, 2025, 02:47:14 PM »
Who wrote that garbage where something like this is possible?
A simple limit where total accumulator can't get past the maximum loan would have prevented this.
Their official announcement.  ???
One of the reasons why I thought it would be better if they just admitted the hack, without explaining the failure on the platform.

Well, yeah, I was saying who wrote the code where this possible rounding up is perpetual and is not updating with every single balance, the thing is idiotic, you can't allow rounding up to go over a unit of measure, that's a thing banks have solved before there was internet and we had faxes and telegraph messages.
Either way, "decentralized" platform, so, if you lost money on that, who do you go after?

 

ETH & ERC20 Tokens Donations: 0x2143F7146F0AadC0F9d85ea98F23273Da0e002Ab
BNB & BEP20 Tokens Donations: 0xcbDAB774B5659cB905d4db5487F9e2057b96147F
BTC Donations: bc1qjf99wr3dz9jn9fr43q28x0r50zeyxewcq8swng
BTC Tips for Moderators: 1Pz1S3d4Aiq7QE4m3MmuoUPEvKaAYbZRoG
Powered by SMFPacks Social Login Mod