{"id":51832,"date":"2023-06-12T06:00:18","date_gmt":"2023-06-12T10:00:18","guid":{"rendered":"https:\/\/coinscreed.com\/staging\/?p=51832"},"modified":"2023-06-12T06:00:22","modified_gmt":"2023-06-12T10:00:22","slug":"sturdy-finance-loses-800k-in-oracle-attack","status":"publish","type":"post","link":"https:\/\/coinscreed.com\/staging\/sturdy-finance-loses-800k-in-oracle-attack\/","title":{"rendered":"Sturdy Finance loses $800K In Oracle Attack"},"content":{"rendered":"\n<p>Sturdy Finance, a decentralized lending platform, lost $800,000 in a security breach on Saturday. An unidentified hacker exploited a reentrancy vulnerability and manipulated a <a href=\"https:\/\/coinscreed.com\/staging\/oracle-system-oev-to-help-dapps-recover-money-lost-to-mev.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">faulty price oracle<\/a> to drain funds from the Protocol.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/coinscreed.com\/staging\/wp-content\/uploads\/2023\/06\/hacked-.jpg\" alt=\"Sturdy Finance loses $800K In Oracle Attack\" class=\"wp-image-51835\" width=\"782\" height=\"411\" srcset=\"https:\/\/coinscreed.com\/staging\/wp-content\/uploads\/2023\/06\/hacked-.jpg 1024w, https:\/\/coinscreed.com\/staging\/wp-content\/uploads\/2023\/06\/hacked--300x158.jpg 300w, https:\/\/coinscreed.com\/staging\/wp-content\/uploads\/2023\/06\/hacked--768x404.jpg 768w, https:\/\/coinscreed.com\/staging\/wp-content\/uploads\/2023\/06\/hacked--750x394.jpg 750w\" sizes=\"(max-width: 782px) 100vw, 782px\" \/><\/figure>\n\n\n\n<p>Sturdy Finance, a decentralized lending platform, suffered a major security breach on Saturday, losing 442 <a href=\"https:\/\/coinscreed.com\/staging\/price-of-eth-to-plummet-by-4000-on-fears.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">ether (ETH)<\/a>, worth about $800,000 at the time of the attack. <\/p>\n\n\n\n<p>Price oracles are essential components of <a href=\"https:\/\/coinscreed.com\/staging\/introduction-to-decentralized-finance-defi-cryptocurrencies-and-smart-contract.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">decentralized finance (DeFi)<\/a> applications like Sturdy Finance, as they provide real-world price data for a variety of assets. However, they can also be vulnerable to attacks if not implemented securely.<\/p>\n\n\n\n<p>The unidentified hacker launched a <a href=\"https:\/\/www.alchemy.com\/overviews\/reentrancy-attack-solidity\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">reentrancy attack<span class=\"wpil-link-icon\" title=\"Link goes to external site.\" style=\"margin: 0 0 0 5px;\"><svg width=\"24\" height=\"24\" style=\"height:16px; width:16px; fill:#000000; stroke:#000000; display:inline-block;\" viewBox=\"0 0 24 24\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" xmlns:svg=\"http:\/\/www.w3.org\/2000\/svg\"><g id=\"wpil-svg-outbound-7-icon-path\" fill=\"none\" clip-path=\"url(#clip0_31_188)\">\r\n                            <path d=\"M9.16724 14.8891L20.1672 3.88908\" stroke-linecap=\"round\"\/>\r\n                            <path d=\"M13.4497 3.53554L20.5208 3.53554L20.5208 10.6066\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\/>\r\n                            <path d=\"M17.5 13.5L17.5 16.26C17.5 17.4179 17.5 17.9968 17.2675 18.4359C17.0799 18.7902 16.7902 19.0799 16.4359 19.2675C15.9968 19.5 15.4179 19.5 14.26 19.5L7.74 19.5C6.58213 19.5 6.0032 19.5 5.56414 19.2675C5.20983 19.0799 4.92007 18.7902 4.73247 18.4359C4.5 17.9968 4.5 17.4179 4.5 16.26L4.5 9.74C4.5 8.58213 4.5 8.0032 4.73247 7.56414C4.92007 7.20983 5.20982 6.92007 5.56414 6.73247C6.0032 6.5 6.58213 6.5 7.74 6.5L11 6.5\" stroke-linecap=\"round\"\/>\r\n                        <\/g>\r\n                        <defs>\r\n                            <clipPath id=\"clip0_31_188\">\r\n                                <rect fill=\"white\" height=\"24\" width=\"24\"\/>\r\n                            <\/clipPath>\r\n                        <\/defs><\/svg><\/span><\/a>, a common method used to withdraw funds from DeFi protocols fraudulently. <\/p>\n\n\n\n<p>The hacker could call a function multiple times within a single transaction before completing the original function call.\u00a0By doing so, the hacker could withdraw more funds than they were entitled to.<\/p>\n\n\n\n<p>The hacker manipulated\u00a0the <a href=\"https:\/\/jumpcrypto.com\/writing\/so-you-still-want-to-use-a-price-oracle\/#:~:text=What%20is%20a%20Price%20Oracle,often%20already%20exists%20on%2Dchain.\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">price oracle<span class=\"wpil-link-icon\" title=\"Link goes to external site.\" style=\"margin: 0 0 0 5px;\"><svg width=\"24\" height=\"24\" style=\"height:16px; width:16px; fill:#000000; stroke:#000000; display:inline-block;\" viewBox=\"0 0 24 24\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" xmlns:svg=\"http:\/\/www.w3.org\/2000\/svg\"><use href=\"#wpil-svg-outbound-7-icon-path\"><\/use><\/svg><\/span><\/a> after gaining control over the function calls. <\/p>\n\n\n\n<p>Sturdy Finance used a separate <strong>\u201cread-only\u201d<\/strong> smart contract to derive its price oracle, which determined the market value of assets in a liquidity pool managed by the Protocol on the Balancer decentralized exchange. <\/p>\n\n\n\n<p>However, the hacker successfully tampered with the oracle, allowing them to siphon off funds from Sturdy Finance.<\/p>\n\n\n\n<p>According to blockchain security firm BlockSec, the root cause of the breach was the typical reentrancy vulnerability in Balancer\u2019s system, combined with the manipulation of the price of<a href=\"https:\/\/coinstats.app\/coins\/eth_b-steth-stable_0x32296969ef14eb0c6d29669c550d4a0449130230\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"> B-stETH-STABLE<span class=\"wpil-link-icon\" title=\"Link goes to external site.\" style=\"margin: 0 0 0 5px;\"><svg width=\"24\" height=\"24\" style=\"height:16px; width:16px; fill:#000000; stroke:#000000; display:inline-block;\" viewBox=\"0 0 24 24\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" xmlns:svg=\"http:\/\/www.w3.org\/2000\/svg\"><use href=\"#wpil-svg-outbound-7-icon-path\"><\/use><\/svg><\/span><\/a>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-how-the-protocol-responded-to-the-breach\">How the Protocol Responded to the Breach<\/h4>\n\n\n\n<p>Sturdy Finance responded swiftly to the attack by pausing its markets to prevent further losses. The team assured users not to worry about additional funds or take any immediate action. They promised to provide more information as soon as possible.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-twitter wp-block-embed-twitter\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"embed-twitter\"><blockquote class=\"twitter-tweet\" data-width=\"550\" data-dnt=\"true\"><p lang=\"en\" dir=\"ltr\">We are aware of the reported exploit of the Sturdy protocol. All markets have been paused; no additional funds are at risk and no user actions are required at this time.<br><br>We will be sharing more information as soon as we have it.<\/p>&mdash; Sturdy \ud83e\uddf1 (@SturdyFinance) <a href=\"https:\/\/twitter.com\/SturdyFinance\/status\/1668080627030315009?ref_src=twsrc%5Etfw\" target=\"_blank\" rel=\"noopener\">June 12, 2023<span class=\"wpil-link-icon\" title=\"Link goes to external site.\" style=\"margin: 0 0 0 5px;\"><svg width=\"24\" height=\"24\" style=\"height:16px; width:16px; fill:#000000; stroke:#000000; display:inline-block;\" viewBox=\"0 0 24 24\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" xmlns:svg=\"http:\/\/www.w3.org\/2000\/svg\"><use href=\"#wpil-svg-outbound-7-icon-path\"><\/use><\/svg><\/span><\/a><\/blockquote><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/div>\n<\/div><\/figure>\n\n\n\n<p>Following the attack, on-chain data revealed that the hacker used the <a href=\"https:\/\/coinscreed.com\/staging\/tornado-cash-how-americans-can-recover-lost-crypto.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Tornado Cash Mixer<\/a> to conceal their activities. This aggregator is a tool used to enhance privacy and make it difficult to trace blockchain transactions.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">The Implications for DeFi Security<\/h4>\n\n\n\n<p>The incident highlights the ongoing challenges and risks associated with DeFi and the significance of robust security measures. Sturdy Finance\u2019s quick response in suspending the markets demonstrates its commitment to protecting user funds and mitigating potential losses. <\/p>\n\n\n\n<p>As the investigation unfolds, it is anticipated that further insights will be gained to prevent similar attacks and strengthen the overall security of decentralized lending protocols.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sturdy Finance, a decentralized lending platform, lost $800,000 in a security breach on Saturday. An unidentified hacker exploited a reentrancy vulnerability and manipulated a faulty price oracle to drain funds from the Protocol. Sturdy Finance, a decentralized lending platform, suffered a major security breach on Saturday, losing 442 ether (ETH), worth about $800,000 at the [&hellip;]<\/p>\n","protected":false},"author":44,"featured_media":51835,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[11476],"tags":[197,1496,12091,11246,14824],"class_list":["post-51832","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hacks-and-scams","tag-defi","tag-hack","tag-oracle","tag-security","tag-sturdy-finance"],"jetpack_featured_media_url":"https:\/\/coinscreed.com\/staging\/wp-content\/uploads\/2023\/06\/hacked-.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/coinscreed.com\/staging\/wp-json\/wp\/v2\/posts\/51832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coinscreed.com\/staging\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coinscreed.com\/staging\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coinscreed.com\/staging\/wp-json\/wp\/v2\/users\/44"}],"replies":[{"embeddable":true,"href":"https:\/\/coinscreed.com\/staging\/wp-json\/wp\/v2\/comments?post=51832"}],"version-history":[{"count":0,"href":"https:\/\/coinscreed.com\/staging\/wp-json\/wp\/v2\/posts\/51832\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/coinscreed.com\/staging\/wp-json\/wp\/v2\/media\/51835"}],"wp:attachment":[{"href":"https:\/\/coinscreed.com\/staging\/wp-json\/wp\/v2\/media?parent=51832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coinscreed.com\/staging\/wp-json\/wp\/v2\/categories?post=51832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coinscreed.com\/staging\/wp-json\/wp\/v2\/tags?post=51832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}