An unnamed Gains Network fork possessed two security flaws that could have allowed attackers to gain 900% on every limit order trade.
Two different bugs in a fork of the Gains Network leveraged trading protocol could have allowed traders to profit 900% on every trade, regardless of the price of the token traded, according to an April 19 report from blockchain security firm Zellic. One of the bugs existed in a previous version of Gains but was later patched. The other was only found in a fork of the protocol.
When a user asks to open a momentum or reversal trade, the smart contract records an “order” that contains data about what price the user is willing to trade at. Once this price is reached, any user can call the executeLimitOrder function to fill the order. The user who calls the execution does not have to be the same one who placed the order. Users who call the execution get paid a small “execution fee” for performing this role.
To prevent this exploit, the protocol contained a check that threw a “wrong_sl” error if the user attempted to set their stop-loss above their open price on a buy order.However, the investigators discovered that this check could be bypassed in certain circumstances. The trade then executes and becomes open. As long as the resulting opening price is below the stop-loss that was originally set, it can now be closed by executing the stop-loss. When the attacker executes their own stop-loss, they profits from the difference between the closing price and the price of the stop-loss.Gains fork exploit example. Source: Zellic
United Kingdom Latest News, United Kingdom Headlines
Similar News:You can also read news stories similar to this one that we have collected from other news sources.
Scammers are ‘aggressively’ targeting Peco customers. Here’s what you need to know.About 900 customers have reported scams to the utility so far this year.
Read more »
Dutch Bros CEO details nationwide expansion strategy as company nears 900 locationsDutch Bros CEO Christine Barone discussed her company’s expansion strategy in an interview with CNBC’s Jim Cramer.
Read more »
Dutch Bros CEO details nationwide expansion strategy as company nears 900 locationsDutch Bros CEO Christine Barone discussed her company’s expansion strategy in an interview with CNBC’s Jim Cramer.
Read more »
Baldur's Gate 3 Player Finds Easily Missed OP Amulet After 900 Hours Of PlayingAmulet of Silvanus in Baldur&39;s Gate 3
Read more »
TON Token Skyrockets 17% Amid Telegram Reaching 900 Million UsersTON's strength on market is surprising, but it could be tied to Telegram's success
Read more »
Over 900 Arrested At Campus Protests This Week: Here’s Where They’re HappeningI am reporter based in Brooklyn covering breaking news. I previously covered crime, politics, and local New York City news for Metro and the New York Post. I am a graduate of the University of Pittsburgh and Columbia University.
Read more »