<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[QuillAudits - Medium]]></title>
        <description><![CDATA[Delivering Enterprise-grade blockchain technology to leading companies worldwide. - Medium]]></description>
        <link>https://medium.com/quillhash?source=rss----8194b478e4c9---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>QuillAudits - Medium</title>
            <link>https://medium.com/quillhash?source=rss----8194b478e4c9---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 03:25:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/quillhash" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[December ends with an $8M Bitkeep exploit.]]></title>
            <link>https://medium.com/quillhash/december-ends-with-an-8m-bitkeep-exploit-e15f31e8dad2?source=rss----8194b478e4c9---4</link>
            <guid isPermaLink="false">https://medium.com/p/e15f31e8dad2</guid>
            <category><![CDATA[smart-contract-auditing]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[smart-contract-security]]></category>
            <category><![CDATA[defi]]></category>
            <dc:creator><![CDATA[QuillAudits - Web3 Security ️]]></dc:creator>
            <pubDate>Sun, 09 Feb 2025 13:07:02 GMT</pubDate>
            <atom:updated>2025-02-09T13:07:02.058Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*rPYMUTn2kbllWk6lYS9gkQ.png" /></figure><h3>In brief⚡</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/0*htfrTF5UXKIwMs2c.jpeg" /></figure><h3>Events Under the Spotlight💥</h3><h4>Hackers steal $8 million from Bitkeep wallets.</h4><ul><li>Several BitKeep cryptocurrency wallet users reported that their wallets were emptied during Christmas after hackers triggered transactions that did not require verification.</li><li>The attacker set up several fake websites for BitKeep users to update their wallet apps to the most recent versions.</li><li>Unknown to the victims, the APK file downloaded from the site was a malicious file designed to steal unsuspecting users’ seed phrases.</li><li>Those who downloaded the trojanized APK package are advised to transfer all funds to the official store after downloading the official apps from Google Play or App Store, create a new wallet address, and transfer all funds.</li><li>The platform advises that any wallet addresses generated by the malicious APK should be considered compromised.</li></ul><h4>Rubic cross-chain exchange hacked, $1.4 million in user funds stolen.</h4><ul><li>After attackers gained access to the private keys of an administrator’s wallet, they exploited Rubic, a service that allows users to swap cryptocurrencies between different exchanges.</li><li>On the Uniswap and PancakeSwap exchanges, approximately 34 million RBC and BRBC tokens were sold. As a result, Rubic continues to function normally, and all user funds are secure. There were no contracts exploited.</li><li>The attackers’ 34 million RBC transfer was worth more than $1.2 million at the time of the hack.</li><li>Separately, the attacker’s wallet, identified by Rubic in a tweet, held more than 205 BNB, or slightly more than $65,000, in a BNB Chain wallet and more than $205,000 in the ether in an Ethereum wallet.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/0*x5wQfFZzP4zqSfFX.jpeg" /></figure><h4>Defrost Finance loses $12 million.</h4><ul><li>Another issue has arisen with the Avalanche ecological native stablecoin project’s Defrost Finance protocol. The protocol was enhanced with fake mortgage tokens and malicious price oracles to liquidate current users.</li><li>The loss is estimated to be more than $12 million. Defrost Finance has officially stated that it has detected an emergency in V1 and that the team is investigating.</li><li>The attacker, according to analysis, changed the oracle’s address using the setOracleAddress function, then used the joinAndMint function to mint 100,000,000 H20 tokens to the 0x6f31 address, and finally used the liquidate function to obtain a large amount of USDT using the false price oracle.</li></ul><h3>Trending Blog of the Week🚀</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HRs3F6SZwj8Tm0zx.jpeg" /></figure><p>Thanks for reading HashingBits! Subscribe for free to receive new posts and support our work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e15f31e8dad2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quillhash/december-ends-with-an-8m-bitkeep-exploit-e15f31e8dad2">December ends with an $8M Bitkeep exploit.</a> was originally published in <a href="https://medium.com/quillhash">QuillAudits</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[QuillAudits Announces Launch of Quill Red Team]]></title>
            <link>https://medium.com/quillhash/quillaudits-announces-launch-of-quill-red-team-5f52c0334127?source=rss----8194b478e4c9---4</link>
            <guid isPermaLink="false">https://medium.com/p/5f52c0334127</guid>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[red-team-security]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[web3]]></category>
            <dc:creator><![CDATA[Preetam Rao]]></dc:creator>
            <pubDate>Thu, 15 Jun 2023 11:39:16 GMT</pubDate>
            <atom:updated>2023-06-16T05:37:36.199Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T0YRfBD-I67_UCxU3wA4yA.jpeg" /></figure><h3>QuillAudits, a leading web3 cybersecurity company, announced today the launch of Quill Red Team, a new service designed to provide comprehensive security assessments and testing for web3 projects.</h3><p>Quill Red Team is a team of highly skilled ethical hackers who specialize in performing penetration testing, vulnerability assessments, and other security assessments on Web3 projects. The team works closely with clients to identify potential vulnerabilities and provide recommendations for improving security.</p><p>“Web3 security is of the utmost importance, and we are proud to offer Quill Red Team as a service to help make the web3 ecosystem more secure,” said Preetam, CEO of QuillAudits. “Together with Quillaudits auditors and the Quill Red team, we aim to make Web3 more secure.”</p><p>Quill Red Team is available as a service to both new and existing clients. The first five projects will receive the service for free. Clients can learn more about the service and sign up at <a href="https://www.quillaudits.com/services/qrt-as-a-service">https://www.quillaudits.com/services/qrt-as-a-service</a>.</p><p>Bounty hunters and auditors have the opportunity to join the Red Team by visiting <a href="https://www.quillaudits.com/academy/redteam">https://www.quillaudits.com/academy/redteam</a>. Each member of the Red Team is verified and interviewed by our team.</p><p>About QuillAudits QuillAudits is a top web3 cybersecurity firm that has secured over 850 projects and helped clients like Gamelfot, PolgonDao, and Flipkart with their web3 security. The company provides technical due diligence and auditing services to web3 venture funds and offers audit credits to web3 VC funds through the <a href="https://www.quillaudits.com/wagsi-grants-programme">Wagsi Grants Program</a>. QuillAudits also runs Quillacademy, a cybersecurity learning platform with over 10,000 registered developers. For more information, visit <a href="https://www.quillaudits.com">https://www.quillaudits.com</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f52c0334127" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quillhash/quillaudits-announces-launch-of-quill-red-team-5f52c0334127">QuillAudits Announces Launch of Quill Red Team</a> was originally published in <a href="https://medium.com/quillhash">QuillAudits</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[QuillAudits Launches QuilllAcademy to Help Developers Build Secure Smart Contracts]]></title>
            <link>https://medium.com/quillhash/quillaudits-launches-quilllacademy-to-help-developers-build-secure-smart-contracts-7d1d9ae1ad98?source=rss----8194b478e4c9---4</link>
            <guid isPermaLink="false">https://medium.com/p/7d1d9ae1ad98</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[infosec]]></category>
            <dc:creator><![CDATA[Preetam Rao]]></dc:creator>
            <pubDate>Wed, 08 Mar 2023 01:44:22 GMT</pubDate>
            <atom:updated>2023-03-08T01:44:24.419Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rKA2luMVQz1CpQn8zAM8YA.png" /></figure><p>QuillAudits, a leading provider of smart contract auditing and cybersecurity services, has announced the launch of its QuillAcademy. The academy will offer courses and resources to help developers and businesses build secure smart contracts and protect their decentralized applications (dApps) from cyber threats.</p><p>The QuillAcademy is part of QuillAudits’ aspiration to generate 100K developers in the Web3 ecosystem. The company aims to provide developers with the knowledge and skills they need to build secure and reliable dApps that can withstand cyberattacks.</p><p>“The web3 ecosystem is growing rapidly, and the demand for skilled developers who can build secure smart contracts is increasing,” said Preetam Rao, CEO of QuillAudits. “Our Web3 Academy will help bridge the skills gap and provide developers with the training and resources they need to build secure decentralized applications.”</p><p>The academy will offer a range of courses on topics such as smart contract development, code auditing, and cybersecurity. The courses will be taught by experienced instructors who have worked on real-world projects in the web3 ecosystem.</p><p>In addition to courses, the Web3 Academy will provide developers with access to a library of resources such as whitepapers, <a href="https://www.quillaudits.com/ctf">CTFs</a>, <a href="https://quillaudits.medium.com/">post-mortem reports</a>, best practices, and audit-ready checklists. The academy will also host webinars and events to bring together developers, businesses, and experts in the web3 ecosystem.</p><p>“We believe that education is the key to building a secure and reliable web3 ecosystem,” said Preetam. “Our Web3 Academy will provide developers with the knowledge and skills they need to build the next generation of decentralized applications.”</p><p>To learn more about QuillAudits’ Web3 Academy and to enroll in courses, visit<a href="https://www.quillaudits.com/academy"> https://www.quillaudits.com/academy</a>.</p><p>About QuillAudits: QuillAudits is a leading provider of smart contract auditing and cybersecurity services. The company helps businesses and developers build secure and reliable decentralized applications that can withstand cyber threats. With a team of experienced developers and cybersecurity experts, QuillAudits is committed to building a more secure web3 ecosystem.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d1d9ae1ad98" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quillhash/quillaudits-launches-quilllacademy-to-help-developers-build-secure-smart-contracts-7d1d9ae1ad98">QuillAudits Launches QuilllAcademy to Help Developers Build Secure Smart Contracts</a> was originally published in <a href="https://medium.com/quillhash">QuillAudits</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Decoding NFT’s Discord Server Hacks | QuillAudits]]></title>
            <link>https://medium.com/quillhash/analysing-nfts-discord-server-hacks-quillaudits-46f8d874f913?source=rss----8194b478e4c9---4</link>
            <guid isPermaLink="false">https://medium.com/p/46f8d874f913</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[smartcontract-audit]]></category>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[web3]]></category>
            <dc:creator><![CDATA[QuillAudits - Web3 Security ️]]></dc:creator>
            <pubDate>Sat, 17 Sep 2022 11:31:47 GMT</pubDate>
            <atom:updated>2022-09-22T10:40:42.855Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UUSyuIhoirhVFXYWUqgblA.png" /></figure><p>Discord is a social media platform that is commonly used by NFT Projects. In recent times, there has been an increase in Discord hacks on these platforms. This attack has been increasing at a rapid rate since May 2022.</p><p>This blog will describe how these Discord Servers are hacked, a Few Case Studies, and how users can remain safe from these hacks.</p><h3>What is a Discord?</h3><p>Discord is an interactive forum where members can find all the needed information regarding a topic/event and go for detailed interaction. Discord of an NFT project is an interactive forum where artists, developers, and investors converse about various relevant topics.</p><h3>Rise of NFT Discord Server Hacks:</h3><p>The recent rise in popularity of these NFTs is due to a lack of information available both offline and online, making them a popular target for scammers and hackers. Both the People who buy and sell NFTs are at risk of having their NFTs stolen from their wallets. There have been numerous cases of such Stolen NFTs recently.</p><p>Genuine non-fungible token holders have lost millions of dollars to these scams. Phishing attacks linked to NFT minting scams deployed through compromised Discord accounts have increased rapidly in recent months. Users have lost more than $22M due to these scams since May 2022. In September alone more than 15 NFT’s Discord has been hacked.</p><h3>How do these Attacks take place?</h3><p>The attack starts with the attacker compromising the NFT’s discord servers. The attacker commonly uses techniques like phishing, social engineering, bots, etc. to compromise Discord servers.</p><p>After compromising the servers, scammers succeed when they can trick users to connect wallets to their Malicious websites. They usually send out links to promotional giveaways and “exclusive” NFTs mints pushing people to jump into these malicious websites by creating a false sense of urgency and provoking FOMO (fear of missing out) among users.</p><h4>Common ways to compromise Discord Servers.</h4><ol><li><strong>Social Engineering:</strong> Attackers often compromise Discord Servers using sophisticated social engineerings, such as phishing and fraudulent accounts pretending to be an administrator.</li><li><strong>Exploiting Discord Bots Vulnerabilities:</strong> Attackers can use vulnerability in bots to compromise Discord Servers. Several Vulnerabilities were found in Discord plugins like Dyno, MEE6, CollabLand, etc. which would’ve allowed attackers to become administrators, send messages, and DM users. See <a href="https://twitter.com/samwcyo/status/1509883419517497347?lang=en">here</a> for more details.</li><li><strong>Unsecured Accounts:</strong> Sometimes the projects don’t secure their account properly. They don’t implement security features like 2FA, using a strong password, etc. which can lead to compromise. Using 2FA like google authenticator or any other protects accounts ever after any password breaches.</li></ol><h4>How do these Scammer trap users into scams?</h4><p>The Scammers send DM or announce with compromised Accounts about some Giveaways or Offers. They create a sense of urgency typically associated with NFT minting events, prompting users to act quickly to avoid missing out on a free giveaway or limited inventory.</p><p>Below is an example of how they do it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/0*oxyyTbDDfTPY17T5.png" /></figure><h3>Case Studies:</h3><p>Below are a few case studies of Discord Hacks that took place in recent times:</p><h4>1. Bored Ape Yacht Club Discord Hack:</h4><p>The Bored Ape Yacht Club (BAYC) Discord server was hacked on 4th June 2022. The Yuga Labs claimed that the attacker made around 200 ETH i.e. $360,000 worth of NFT tokes.</p><p>The attacker first compromised the Project Community Manager’s (<a href="https://twitter.com/BorisVagner">Boris Vagner</a>) Discord Account, then the attacker used his account to post phishing links in Official Bored Ape Yacht Club’s (BAYC) Discord along with some other related metaverse project called Otherside’s Discord Channels.</p><h3>OKHotshot on Twitter: &quot;🚨BAYC &amp; OtherSide discords got compromised‼️Seems because Community Manager @BorisVagner got his account breached, which let the scammers execute their phishing attack. Over 145E in was stolen Proper permissions could prevent this pic.twitter.com/lCl2DfZQ0W / Twitter&quot;</h3><p>🚨BAYC &amp; OtherSide discords got compromised‼️Seems because Community Manager @BorisVagner got his account breached, which let the scammers execute their phishing attack. Over 145E in was stolen Proper permissions could prevent this pic.twitter.com/lCl2DfZQ0W</p><h4>2. Fractal’s Discord Hack:</h4><p>On 21st December 2021, Fractal was hacked, scamming 373 of its members of a total of $150,000 in $SOL.</p><p>Hackers compromised Fractal’s Discord by gaining access to their webhooks. The webhooks trigger event responses after listening to messages sent. By gaining access to webhooks, hackers could send broadcast messages to community members.</p><p>The attacker then posted a fake mint link in their #announcements channel. There were around 100,000 members in the community, and only 0.3% fell into this trap.</p><h3>Justin Kan ❄️ on Twitter: &quot;The announcements bot on our @fractalwagmi discord was hacked. Do not go to any url and connect your wallet / mint anything. / Twitter&quot;</h3><p>The announcements bot on our @fractalwagmi discord was hacked. Do not go to any url and connect your wallet / mint anything.</p><h3>What to do when your NFT Discord server is hacked?</h3><ol><li>Communicate to users about the hack. No one knows what’s going on. Everyone is scared and has no direction. You must stay in communication.</li><li>Try to change your password after the hack. Most times hackers change it immediately, do it ASAP.</li><li>Remove all payment details from discord like PayPal, stripe to be safe from further financial damage.</li></ol><p>If you want to explore more. See <a href="https://medium.com/geekculture/what-to-do-when-your-nft-discord-server-is-hacked-for-founders-9a2751d4d066">here</a> for further details.</p><h3>How can users protect themselves from these Scams?</h3><p>NFT and crypto scams usually have one goal i.e. they want access to your wallet.<strong> </strong>Users can follow the following steps to protect themselves from these scams. For more info see <a href="https://www.surgewomen.io/learn-about-web3/how-to-avoid-nft-and-crypto-scams-on-discord">here</a>.</p><ol><li>Users should be aware of common attack techniques that scammers use against them like social engineering, phishing attacks, etc.</li><li>Before verifying, don’t click suspicious links or connect your wallet to any website. Always double-check any links sent to you via Discord or any other channel. Contact the NFT project’s owners to determine whether any offers you see are genuine.</li><li>Discord DMs (direct messages) are the most common way people (and bots!) will try to scam you. Always prefer to close your DMs.</li><li>Never share your private details with anyone pretending a Community Member of Projects. Most legitimate NFT projects, like other businesses, will never require or request your private account information.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QGVCEzdy_OlpkW6r" /></figure><h3>Web3 security- Need of the hour</h3><p>Why QuillAudits For Web3 Security?</p><p><a href="https://audits.quillhash.com/smart-contract-audit">QuillAudits</a> is well-equipped with tools and expertise to provide cybersecurity solutions saving the loss of millions in funds.</p><h3>Want more Such Security Blogs &amp; Reports?</h3><p>Connect with QuillAudits on :</p><p><a href="https://www.linkedin.com/company/quillaudits/">Linkedin</a> | <a href="https://twitter.com/QuillAudits">Twitter</a> | <a href="http://audits.quillhash.com/">Website</a> | <a href="https://quillaudits.substack.com/">Newsletter</a> | <a href="https://discord.com/invite/WYb8Gfz8yy">Discord</a> | <a href="https://t.me/quillaudits_official">Telegram</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46f8d874f913" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quillhash/analysing-nfts-discord-server-hacks-quillaudits-46f8d874f913">Decoding NFT’s Discord Server Hacks | QuillAudits</a> was originally published in <a href="https://medium.com/quillhash">QuillAudits</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[New Free DAO’s $1.25M Flash Loan Attack Explained | QuillAudits]]></title>
            <link>https://medium.com/quillhash/new-free-daos-1-25m-flash-loan-attack-explained-quillaudits-9a6f71d1d59c?source=rss----8194b478e4c9---4</link>
            <guid isPermaLink="false">https://medium.com/p/9a6f71d1d59c</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[blockchain-security]]></category>
            <category><![CDATA[smart-contract-auditing]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[defi]]></category>
            <dc:creator><![CDATA[QuillAudits - Web3 Security ️]]></dc:creator>
            <pubDate>Thu, 15 Sep 2022 09:32:16 GMT</pubDate>
            <atom:updated>2022-09-22T10:40:54.188Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z1DY9a2YoWKgkVFAplcruw.png" /></figure><h3>Summary:</h3><p>On the 8th of September, 2022, New Free DAO was exploited with a flash loan attack. From this exploit, The attacker made a profit of 4481 WBNB (approx. ~$1.25M) causing the native token $NFD to slip in price by 99%.</p><h3>Introduction to Protocol and How its tech works.:</h3><p>New Free DAO is a ‘DAO project’ on BNB Chain. DAO stands for ‘decentralized autonomous organization’, where governance decisions are made by the broader community and often voted on by holders of the entity’s native($NFD) token. $NFD was created to offer a variety of features and was specifically designed for NFT purposes.</p><h3>Vulnerability Analysis &amp; Impact:</h3><p>Before getting deep into it, Lets first understand what Flash Loans Attacks are:</p><h4>FlashLoans Attack:</h4><p>A flash loan attack is an abuse of the smart contract security of a particular platform in which an attacker usually borrows a lot of funds that don’t require collateral. They then manipulate the price of a crypto asset on one exchange and quickly resell it on another one.</p><p>Check out this <a href="https://blog.quillhash.com/2021/01/12/flash-loan-attack-explained-part1-defi-in-out/">blog</a> by <a href="https://www.quillhash.com/">quillhash</a> for further details.</p><h4><strong>Attack Steps:</strong></h4><ol><li>The attacker first deployed an unverified contract and called the function <em>addMember()</em> to add itself as a member. Hacker’s address: <a href="https://bscscan.com/address/0x22c9736d4fc73a8fa0eb436d2ce919f5849d6fd2">0x22c9736d4fc73a8fa0eb436d2ce919f5849d6fd2</a></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YZK7_bv27zuRJr9d2p6OdQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lJh8hrbuZ2rJysDL" /></figure><p>2. The attacker borrowed around 250 WBNB via flash loan from pancakeswap to the deployed contract. Further, he swapped WBNB for NFD tokens and transferred them to the attacking contract.</p><figure><img alt="https://cdn-images-1.medium.com/max/1067/0*QaBLsMHucDfHiknZ" src="https://cdn-images-1.medium.com/proxy/0*QaBLsMHucDfHiknZ" /></figure><p>3. The attacker then called <em>0xe2f9d09c</em> function in the contract, which calls the reward contract function to claim rewards. The attacker then created multiple new contracts and repeated the process to claim rewards.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*RXlWyYqmjPY5lZ7c5VBNng.png" /></figure><p>4. Finally, after obtaining the rewards, the hackers converted the NFD tokens back to WBNB, which was around 3202 WBNB. The attacker then repaid the flash loan, i.e. 250 WBNB, to PancakeSwap and made a profit of 2952 WBNB.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zWnasmsG6C81ZrFV9g5tWQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*X8k_W9ONYUbs7zjxyLGBhw.png" /></figure><p>Similarly, the attacker executed the transaction 3 times in total and made a profit of 4481 WBNB, which is approximately $1.25 Million.</p><h3>After the Exploit :</h3><p>The exploit caused the native token of New DAO to crash by 99%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ixydd_Lecv9TTdjg" /></figure><h4><strong>Status of Stolen Fund:</strong></h4><p>The stolen funds were deposited into TornadoCash. About 500 BNB has been transferred to the mixer so far. 1081 BNB and $790K BUSD remain in the attacker contract. More info can be found <a href="https://bscscan.com/address/0x22c9736d4fc73a8fa0eb436d2ce919f5849d6fd2">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VWkpio61jjqdDZhI" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*0NMjqZqZb4kVGdt3dEvtvA.png" /></figure><h3>Prevention for Flash Loan Attacks:</h3><p>Recently there has been a massive increase in flash loan attacks in the DeFi space. Their occurrences have given birth to two popular solutions. Check out <a href="https://blog.quillhash.com/2021/01/12/flash-loan-attack-explained-part1-defi-in-out/">here</a> for a detailed explanation.<br><em>1. Decentralized Pricing Oracles<br>2. Implementation of DeFi Security Platforms</em></p><h3>Further Reference / Credit:</h3><p><a href="https://twitter.com/BeosinAlert/status/1567757251024396288">https://twitter.com/BeosinAlert/status/1567757251024396288</a><br><a href="https://twitter.com/CertiKAlert/status/1567735913223946243">https://twitter.com/CertiKAlert/status/1567735913223946243</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DgU5B-qHHJYSOq8Nh0OASg.jpeg" /></figure><h3>Similar project secured by QuillAudits:</h3><ul><li><a href="https://raw.githubusercontent.com/Quillhash/QuillAudit_Reports/master/CrickDao%20Smart%20Contract%20Audit%20Report%20-%20QuillAudits.pdf">CrickDAO</a></li><li><a href="https://raw.githubusercontent.com/Quillhash/QuillAudit_Reports/master/Severus.finance%20Smart%20Contract%20Audit%20Report%20-%20QuillAudits.pdf">Serverus</a></li><li><a href="https://github.com/Quillhash/QuillAudit_Reports/blob/master/YoloRekt%20Smart%20Contract%20Audit%20Report%20-%20QuillAudits.pdf">YoloRekt</a></li></ul><h3>Web3 security- Need of the hour</h3><p>Why QuillAudits For Web3 Security?</p><p><a href="https://audits.quillhash.com/smart-contract-audit">QuillAudits</a> is well-equipped with tools and expertise to provide cybersecurity solutions saving the loss of millions in funds.</p><h3>Want more Such Security Blogs &amp; Reports?</h3><p>Connect with QuillAudits on :</p><p><a href="https://www.linkedin.com/company/quillaudits/">Linkedin</a> | <a href="https://twitter.com/QuillAudits">Twitter</a> | <a href="http://audits.quillhash.com/">Website</a> | <a href="https://quillaudits.substack.com/">Newsletter</a> | <a href="https://discord.com/invite/WYb8Gfz8yy">Discord</a> | <a href="https://t.me/quillaudits_official">Telegram</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a6f71d1d59c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quillhash/new-free-daos-1-25m-flash-loan-attack-explained-quillaudits-9a6f71d1d59c">New Free DAO’s $1.25M Flash Loan Attack Explained | QuillAudits</a> was originally published in <a href="https://medium.com/quillhash">QuillAudits</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Decoding Ragnarok Online Invasion $44K Exploit| QuillAudits]]></title>
            <link>https://medium.com/quillhash/decoding-ragnarok-online-invasion-44k-exploit-quillaudits-261b7e23b55?source=rss----8194b478e4c9---4</link>
            <guid isPermaLink="false">https://medium.com/p/261b7e23b55</guid>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[cyberattack]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[exploit]]></category>
            <dc:creator><![CDATA[QuillAudits - Web3 Security ️]]></dc:creator>
            <pubDate>Sat, 10 Sep 2022 12:02:44 GMT</pubDate>
            <atom:updated>2022-09-22T10:41:31.213Z</atom:updated>
            <content:encoded><![CDATA[<h3>Decoding Ragnarok Online Invasion $44,222 Exploit| QuillAudits</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_vz3jQ7u5fIOiDV9FQ57uA.png" /></figure><h3>Summary:</h3><p>On the 8th of September, 2022, Ragnarok Online Invasion($ROI) was attacked. The cause of the attack was a typical access control vulnerability of ownership transfer function. Around 158 BNB (44,222.5 BUSD) was stolen by the hackers in this attack.</p><h3>Introduction to Ragnarok Online Invasion:</h3><p>Ragnarok Online Invasion ($ROI) is a cryptocurrency, deployed on Binance Smart Chain(BSC BEP-20). It is a token created to characterize the GameFi or NFT video game called “Ragnarok Online”.</p><h3>Vulnerability Analysis &amp; Impact:</h3><p>The cause of this attack was a simple access control issue, which allowed anyone to transfer ownership of the contract. The <strong><em>transferOwnership</em></strong> function has no access controls like <em>OnlyOwner</em> modifier or <em>onlyAdmin</em> to prevent malicious users from calling the function. See the code below.</p><p><strong>Vulnerable Code:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/0*7GeLTYalnKM50kb5" /><figcaption>You can find the above code <a href="https://www.bscscan.com/address/0xe48b75dc1b131fd3a8364b0580f76efd04cf6e9c#code#L185">here</a>.</figcaption></figure><h4><strong>The Attack:</strong></h4><ol><li>First, the attacker called the OwnershipTransferred function and easily transferred the ownership of the function to <em>0x158af3d23d96e3104bcc65b76d1a6f53d0f74ed0</em> contract.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/0*ttx1_LbT2jOxIqlb" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6zArQ4sXDJjqBdQ4" /></figure><p>2. Now, the attacker swaps $ROI tokens for $BUSD, and then finally swaps $BUSD for $BNB tokens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0EO4klI9gSb0J_JEdViUQQ.png" /></figure><p>3. Then the attacker finally calls withdrawal function and successfully withdraws around 162.5 $BNB which amounts to around $47,384.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Qu8Jqbai5aXDra6C" /></figure><h3>After the Exploit :</h3><p>As a result of the attack, the price of the $ROI token fell by almost 99%. The current price(as of writing this blog) of the $ROI token is $0.0012. The liquidity of the token dropped from $49.6K to $5.5K. See <a href="https://dex.guru/token/0xe48b75dc1b131fd3a8364b0580f76efd04cf6e9c-bsc">here</a> for more details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iu357ZmaaVBLmL6u" /></figure><p><strong>Status of Stolen Funds:<br></strong>All the stolen funds rest in the hacker’s address. See <a href="https://www.bscscan.com/address/0x91b7f203ed71c5eccf83b40563e409d2f3531114#internaltx">here</a> for transaction details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/0*Xsjo6dRBl9eXxSPg" /></figure><h3>How they could have prevented the Exploit?</h3><p>This attack could have been prevented by implementing proper access control. Although the project had onlyOwner modifier (see <a href="https://www.bscscan.com/address/0xe48b75dc1b131fd3a8364b0580f76efd04cf6e9c#code#L175">here</a>) in the contract, it was not implemented in transferOwnership functions which led to this attack. Adding <strong><em>onlyOwner</em></strong> modifier in transferOwnership function could have prevented the attack. See Below snippets:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*w-OGptIIuDh1999IeyitTQ.png" /></figure><h3>Further Reference / Credit:</h3><p><a href="https://twitter.com/BlockSecTeam/status/1567746825616236544">https://twitter.com/BlockSecTeam/status/1567746825616236544</a><br><a href="https://twitter.com/CertiKAlert/status/1567754904663429123">https://twitter.com/CertiKAlert/status/1567754904663429123</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DgU5B-qHHJYSOq8Nh0OASg.jpeg" /></figure><h3>Similar projects secured by QuillAudits:</h3><p><a href="https://github.com/Quillhash/QuillAudit_Reports/blob/master/Rova%20Token%20Smart%20Contract%20Audit%20Report%20-%20QuillAudits.pdf">Rova Token</a><br><a href="https://github.com/Quillhash/QuillAudit_Reports/blob/master/Bridge%20Network%20Smart%20Contract%20Audit%20Report%20-%20QuillAudits.pdf">Bridge Network</a></p><h3>Web3 security- Need of the hour</h3><p>Why QuillAudits For Web3 Security?</p><p><a href="https://audits.quillhash.com/smart-contract-audit">QuillAudits</a> is well-equipped with tools and expertise to provide cybersecurity solutions saving the loss of millions in funds.</p><h3>Want more Such Security Blogs &amp; Reports?</h3><p>Connect with QuillAudits on :</p><p><a href="https://www.linkedin.com/company/quillaudits/">Linkedin</a> | <a href="https://twitter.com/QuillAudits">Twitter</a> | <a href="http://audits.quillhash.com/">Website</a> | <a href="https://quillaudits.substack.com/">Newsletter</a> | <a href="https://discord.com/invite/WYb8Gfz8yy">Discord</a> | <a href="https://t.me/quillaudits_official">Telegram</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=261b7e23b55" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quillhash/decoding-ragnarok-online-invasion-44k-exploit-quillaudits-261b7e23b55">Decoding Ragnarok Online Invasion $44K Exploit| QuillAudits</a> was originally published in <a href="https://medium.com/quillhash">QuillAudits</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ShadowFi $301K Burn function Exploit Analysis| QuillAudits]]></title>
            <link>https://medium.com/quillhash/shadowfi-301k-burn-function-exploit-analysis-quillaudits-45a17ce04193?source=rss----8194b478e4c9---4</link>
            <guid isPermaLink="false">https://medium.com/p/45a17ce04193</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[exploit]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[cyberattack]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[QuillAudits - Web3 Security ️]]></dc:creator>
            <pubDate>Tue, 06 Sep 2022 11:30:45 GMT</pubDate>
            <atom:updated>2022-09-22T10:41:45.721Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FzpYLTzGKgEX2madANNNOw.jpeg" /></figure><h3>Summary:</h3><p>On the 2nd of September, 2022, ShadowFi was exploited due to a vulnerability present in their LP contract. The exploit was due to public visibility of the burn function, which allowed any user to burn the tokens. Around 1078 BNB i.e. $301K was stolen by the attackers and the funds were transferred to Tornado cash.</p><h3>Introduction to ShadowFi:</h3><p>ShadowFi is DeFi protocol that believes in the protection of personally identifiable information from corporate and global financial entities. ShadowFi transactions require zero personal details. Some of its products are ShadowCash, ShadowSwap, Fintech NFTs, ShadowPay, etc. You can find more about ShadowFi <a href="https://docs.shadowfi.com/">here</a>.</p><h3>Vulnerability Analysis &amp; Impact:</h3><p>The vulnerability was present in the LP contract of the SDF token. The cause of this attack was a<strong> public </strong><strong>burn function</strong>, which allowed anyone to call the burn function and burn the tokens. This created inflation and hence increased the worth of the token. Then attacker swapped the token at an inflated price until the pool is exhausted and gained a profit of around <strong>1078 BNB</strong>.</p><p><strong>Vulnerable Code:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/0*VKo1khM2uXfJX7UK" /><figcaption>The above code can be found <a href="https://www.bscscan.com/address/0x10bc28d2810dd462e16facff18f78783e859351b#code#L962">here</a></figcaption></figure><p><strong>Txn Hash:</strong> <a href="https://bscscan.com/tx/0xe30dc75253eecec3377e03c532aa41bae1c26909bc8618f21fb83d4330a01018">https://bscscan.com/tx/0xe30dc75253eecec3377e03c532aa41bae1c26909bc8618f21fb83d4330a01018</a></p><p><strong>Hacker’s Address:</strong> <a href="https://bscscan.com/address/0x4daa3135b016ac37c46ed03423d314caea89ff5e">https://bscscan.com/address/0x4daa3135b016ac37c46ed03423d314caea89ff5e</a></p><h3><strong>Attack Steps:</strong></h3><ol><li>First, the attacker called the burn function, which was publicly callable, and burned almost 10.3M SDF in the pair of SDF LP contracts.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*9GQ_TvXyS4CatcxcAi08Fg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eZZiyFyGQ9GovTqytFHt0g.png" /></figure><p>2. Now, the attacker synced the price of the SDF token in the contract, which inflated the price of the SDF tokens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mITDLb04QEX7kekId41CEQ.png" /></figure><p>3. Then the attacker swapped the SDF token with wBNB at the inflated price. The attacker swapped around 8.4 SDF tokens for 1078 wBNB(approx $301K).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WT7Xc7QUdbonSjTAhwK_ow.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y82TvxWzflIBvhgrTGnlGA.png" /></figure><h3>After the Exploit :</h3><p>On 2nd September, ShadowFi announced this exploit to the community and started their investigation. And later on 3rd September, they published a report on this attack. The report can be found <a href="https://medium.com/@ShadowFi/shadowfi-the-exploit-44733d1f8cb0">here</a>.</p><h3>ShadowFi on Twitter: &quot;#ShadowFi exploit:https://t.co/GaH0tdOi4gAll this after months of defending Deloitte&#39;s attacks against Don&#39;t KYC, and then completing a full rebrand under duress.We are still here. Not going anywhere.#unitedefi #privacymatters / Twitter&quot;</h3><p>ShadowFi exploit:https://t.co/GaH0tdOi4gAll this after months of defending Deloitte&#39;s attacks against Don&#39;t KYC, and then completing a full rebrand under duress.We are still here. Not going anywhere.#unitedefi #privacymatters</p><p><strong>Status of Stolen Funds:<br></strong>All the stolen funds were transferred to Tornado Cash after the attack. You can find the transaction details <a href="https://bscscan.com/address/0x4daa3135b016ac37c46ed03423d314caea89ff5e">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R6k0O42KNGUPX9xm3rshXQ.png" /></figure><p><strong>Price Impact:<br></strong>After the attack, the price of SDF tokens fell tremendously, but it didn’t take long to rise again. Currently (as of writing this blog), the price of $SDF Token is $0.01068 at <a href="https://coinmarketcap.com/currencies/shadow-token/">CoinMarketCap</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KVaU6Yf7o0FUjWy0" /></figure><h3>How could they have prevented the Exploit?</h3><p>ShadowFi mentions <strong>_transferFrom</strong> does not utilize the allowance requirement check and public burn as the cause of the attack. The attack could have been easily prevented by implementing correct access controls like onlyOwner or by making the function internal with correct access control logic.</p><p><strong>Buggy code:</strong></p><pre>function burn(address account, uint256 _amount) <strong>public</strong> {<br>        _transferFrom(account, DEAD, _amount);</pre><p><strong>Secure code:</strong></p><pre>function burn(address account, uint256 _amount) <strong>public</strong> <strong>onlyOwner</strong> {<br>        _transferFrom(account, DEAD, _amount);</pre><h3>Reference:</h3><p><a href="https://twitter.com/CertiKAlert/status/1565549825889914881"><em>https://twitter.com/CertiKAlert/status/1565549825889914881</em></a><em><br></em><a href="https://medium.com/@ShadowFi/shadowfi-the-exploit-44733d1f8cb0"><em>https://medium.com/@ShadowFi/shadowfi-the-exploit-44733d1f8cb0</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DgU5B-qHHJYSOq8Nh0OASg.jpeg" /></figure><h3>Similar projects secured by QuillAudits:</h3><ul><li><a href="https://raw.githubusercontent.com/Quillhash/QuillAudit_Reports/master/Pandora%20Finance%20Smart%20Contract%20Audit%20Report%20-%20QuillAudits.pdf">Pandora Finance</a></li><li><a href="https://raw.githubusercontent.com/Quillhash/QuillAudit_Reports/master/PathFund%20Staking%20%20Smart%20Contract%20Audit%20Report%20-%20QuillAudits.pdf">PathFund</a></li></ul><h3>Web3 security- Need of the hour</h3><p>Why QuillAudits For Web3 Security?</p><p><a href="https://audits.quillhash.com/smart-contract-audit">QuillAudits</a> is well-equipped with tools and expertise to provide cybersecurity solutions saving the loss of millions in funds.</p><h3>Want more Such Security Blogs &amp; Reports?</h3><p>Connect with QuillAudits on :</p><p><a href="https://www.linkedin.com/company/quillaudits/">Linkedin</a> | <a href="https://twitter.com/QuillAudits">Twitter</a> | <a href="http://audits.quillhash.com/">Website</a> | <a href="https://quillaudits.substack.com/">Newsletter</a> | <a href="https://discord.com/invite/WYb8Gfz8yy">Discord</a> | <a href="https://t.me/quillaudits_official">Telegram</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45a17ce04193" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quillhash/shadowfi-301k-burn-function-exploit-analysis-quillaudits-45a17ce04193">ShadowFi $301K Burn function Exploit Analysis| QuillAudits</a> was originally published in <a href="https://medium.com/quillhash">QuillAudits</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KaoyaSwap Logic Exploit Analysis | QuillAudits]]></title>
            <link>https://medium.com/quillhash/kaoyaswap-logic-exploit-analysis-quillaudits-7c6c1575926a?source=rss----8194b478e4c9---4</link>
            <guid isPermaLink="false">https://medium.com/p/7c6c1575926a</guid>
            <category><![CDATA[exploit]]></category>
            <category><![CDATA[cyberattack]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[QuillAudits - Web3 Security ️]]></dc:creator>
            <pubDate>Mon, 29 Aug 2022 06:34:48 GMT</pubDate>
            <atom:updated>2022-09-22T10:42:21.283Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TI5RaYf8aot3NNKD6PislA.jpeg" /></figure><h3>Summary:</h3><p>On the 24th of August, 2022 Kaoya Swap (a decentralized transaction protocol deployed on the BSC chain) was attacked. The main cause of the attack was bad logic in the swap function of the contract. The amount stolen was around 37,294 BUSD and 271.2 wBNB, which amounts to approx $118,000.</p><h3>Introduction to Kaoya Swap:</h3><p>KaoyaSwap is a BSC Chain deployed decentralized transaction protocol built upon AMM and exchange pools. It has an embedded investment platform that aims to increase the income of liquidity providers. It is deployed on the Binance Smart Chain. KaoyaSwap utilizes funds in the platform’s liquidity pool to execute automatic trading strategies.</p><h3>Vulnerability Analysis &amp; Impact:</h3><p>The Vulnerability was present in the swapExactTokensForETHSupportingFeeOnTransferTokens function of the contract. As the function was used to swap Fee-On-Transfers-Tokens, So, before understanding the bug, let&#39;s understand what Fee-On-Transfer-Tokens are:</p><p><strong>Fee-On-Transfer-Tokens:</strong></p><p>Fee-On-Transfer-Tokens are slightly different from ERC20 tokens. These are ERC20 tokens that charge a fee for every transfer()or transferFrom(). These tokens implement the typical ERC20 interface. However, when calling the transfer and transferFrom methods, the actual amount the receiver will get will be smaller than the sent amount.</p><p>Further details can be found <a href="https://docs.uniswap.org/protocol/V2/reference/smart-contracts/common-errors#fee-on-transfer-tokens">here</a>.</p><p><strong>Exploit</strong> <strong>Txn hash</strong>: <a href="https://bscscan.com/tx/0xc8db3b620656408a5004844703aa92d895eb3527da057153f0b09f0b58208d74">https://bscscan.com/tx/0xc8db3b620656408a5004844703aa92d895eb3527da057153f0b09f0b58208d74</a></p><p><strong>Vulnerable code:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l25cRI_oPc9Vz1R-MOnqFQ.png" /><figcaption>The above code archive can be found <a href="https://github.com/kaoya1125/contracts/blob/3ea83a229fe8e042ce4bd3d608422679a780e74d/router.sol#L831-L833">here</a>.</figcaption></figure><p><strong>Analyzing Vulnerable Code:</strong></p><p>The swapExactTokensForETHSupportingFeeOnTransferTokens function calculates the balance difference of the last pair before and after the swap as the amountOut and then it transfers amountOut to the user directly.</p><p>This logic won’t cause any problem when the last pair just appear once in the swap path. However, if the last pair appears multiple times in the swap path, it will miscalculate the amount to be transferred to the users.</p><p><strong>The Attack Process:</strong></p><ol><li>First, the attacker designed a swap path that included two self-constructed tokens, i.e. tokenA and token B. The swap path was [A, wBNB, B, A, wBNB], which resulted in the tokenA and wBNB pair being included twice in the swap path.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*ixa9Sb85A9kGvDXfuQ8svQ.png" /></figure><p>2. The first swap (tokenA → wBNB) and the second swap (second tokenA → wBNB) introduced the wBNB balance difference of the pair. As a result, both parts were included in the router, which led the router contract to transfer more wBNB than the exact amount to the attacker.</p><p>3. The attacker borrowed a <a href="https://www.coindesk.com/learn/2021/02/17/what-is-a-flash-loan/">flash loan</a> of 1800 wBNB. After that, he added liquidity to newly constructed token pairs, i.e. [tokenA, wBNB] pair and [tokenB, wBNB] pair. After the swap, he got 1019 wBNB, and after he removed liquidity, he got 1029 wBNB. As a result, the Attacker profited around 271 wBNB and 37,295 BUSD, which amounts to approx $118,000.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9DdEWrlWbE854sG6CQY3Lw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fTU9wu02FO622uIwEr0pJA.png" /></figure><h3>After the Exploit :</h3><p><a href="https://twitter.com/Kaoyaswap">Kaoya Swap</a> is yet to announce any official statement regarding the attack. Further <a href="https://twitter.com/BlockSecTeam">BlockSec</a> identified the following addresses that made a profit out of this attack:</p><p><a href="https://etherscan.io/address/0x8df3dd42bd51dd637580be6f15f651608b749ca1">https://etherscan.io/address/0x8df3dd42bd51dd637580be6f15f651608b749ca1</a></p><p><a href="https://etherscan.io/address/0x236b6150d7cc095d923fc0463977b71e84c891e5">https://etherscan.io/address/0x236b6150d7cc095d923fc0463977b71e84c891e5</a></p><p><a href="https://etherscan.io/address/0xb77e7ee8e131d7425112df0f0f3c10e1c2208589">https://etherscan.io/address/0xb77e7ee8e131d7425112df0f0f3c10e1c2208589</a></p><p><a href="https://etherscan.io/address/0xe946bc154baa243b48fcf156977910bbb236df09">https://etherscan.io/address/0xe946bc154baa243b48fcf156977910bbb236df09</a></p><p><a href="https://etherscan.io/address/0x50fc7d751cdde692682a04f59c2c9be2530b4d28">https://etherscan.io/address/0x50fc7d751cdde692682a04f59c2c9be2530b4d28</a></p><h3>How Could They Have Avoided the Exploit?</h3><p>The attack could have been mitigated by properly implementing the logic of the swap function for fee-on-transfer-tokens. These fee-on-transfer swap functions succeed by adjusting the “amountOutMin” parameter to check the recipient amount rather than the sending amount when calculating the invariant.</p><h3>Further Reference:</h3><p><a href="https://twitter.com/BlockSecTeam/status/1562328392564846592">https://twitter.com/BlockSecTeam/status/1562328392564846592</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DgU5B-qHHJYSOq8Nh0OASg.jpeg" /></figure><h3>Web3 security- Need of the hour</h3><p>Why QuillAudits For Web3 Security?</p><p><a href="https://audits.quillhash.com/smart-contract-audit">QuillAudits</a> is well-equipped with tools and expertise to provide cybersecurity solutions saving the loss of millions in funds.</p><h3>Want more Such Security Blogs &amp; Reports?</h3><p>Connect with QuillAudits on :</p><p><a href="https://www.linkedin.com/company/quillaudits/">Linkedin</a> | <a href="https://twitter.com/QuillAudits">Twitter</a> | <a href="http://audits.quillhash.com/">Website</a> | <a href="https://quillaudits.substack.com/">Newsletter</a> | <a href="https://discord.com/invite/WYb8Gfz8yy">Discord</a> | <a href="https://t.me/quillaudits_official">Telegram</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c6c1575926a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quillhash/kaoyaswap-logic-exploit-analysis-quillaudits-7c6c1575926a">KaoyaSwap Logic Exploit Analysis | QuillAudits</a> was originally published in <a href="https://medium.com/quillhash">QuillAudits</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Acala’s Unlimited $USD Minting : Exploit Analyzation]]></title>
            <link>https://medium.com/quillhash/acalas-unlimited-usd-minting-exploit-analyzation-8ac8c5183a38?source=rss----8194b478e4c9---4</link>
            <guid isPermaLink="false">https://medium.com/p/8ac8c5183a38</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[exploitation]]></category>
            <category><![CDATA[audit-smart-contract]]></category>
            <dc:creator><![CDATA[QuillAudits - Web3 Security ️]]></dc:creator>
            <pubDate>Tue, 23 Aug 2022 07:07:59 GMT</pubDate>
            <atom:updated>2022-09-22T10:42:34.133Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CBswH9Tfm2YDcF40anmXQQ.png" /></figure><h3>Acala’s Unlimited $aUSD Minting Exploit Analysis | QuillAudits</h3><h3>Summary:</h3><p>On the 14th of August, 2022, Acala Network suffered an exploit that resulted in its native stable-coin aUSD falling to almost zero. The exploit was due to a “misconfiguration” in the newly launched iBTC/aUSD liquidity pool that allowed users to mint unlimited aUSD instead of <a href="https://www.gemini.com/cryptopedia/liquidity-provider-amm-tokens">LP tokens</a>. According to Acala Trace Results, more than 3 Billion aUSD were minted by attackers, which led to depeg of aUSD.</p><h3>Introduction to Acala Network :</h3><p>Acala is the main DeFi hub of Polkadot, functioning as both an automated market maker (AMM) and a decentralized bank. It’s a layer-1 smart contract platform that’s scalable, Ethereum-compatible, and optimized for DeFi.</p><p><strong>$aUSD:</strong></p><p>aUSD is the built-in programmable primitive of the Acala network. aUSD is the Polkadot native decentralized stable coin backed by DOT, DOT derivatives, and cross-chain assets like BTC or ETH.</p><blockquote>Stay current with the latest DeFi/NFT events, hacks &amp; innovations from around the globe. Don’t fall behind! <a href="https://quillaudits.substack.com/">https://quillaudits.substack.com/</a></blockquote><h3>Vulnerability Analysis &amp; Impact:</h3><p>Before understanding the Attack, let’s first understand the liquidity pool.</p><p><strong>Liquidity Pool:</strong></p><p>A <a href="https://www.coindesk.com/learn/what-are-liquidity-pools/#:~:text=A liquidity pool is an automated market maker (AMMs).">liquidity pool</a> is a digital pile of cryptocurrency locked in a smart contract, which results in creating liquidity for faster transactions on decentralized exchanges (DEX) and DeFi protocols. Users called liquidity providers (LP) add an equal value of two tokens in a pool to create a market. In exchange for providing their funds, they earn trading fees.</p><p><strong>The Attack:</strong></p><p>The $iBTC — $aUSD pool was newly launched and deployed in Acala.</p><p>There was a misconfiguration in the contract, which was not mitigated. The misconfiguration was at incentives.claim_rewards() call, which wrongfully minted $aUSD instead of LP tokens in large amounts. It took no time for hackers to mint around 1.28 Billion $aUSD causing the token price to depeg.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*12h98v6gKownZFVhDBlA7A.png" /></figure><p>The misconfiguration resulted in error mints of aUSD, which were transferred to the wallet addresses of several iBTC/aUSD LP contributors when they claimed their iBTC/aUSD LP Rewards. The other people exploited the situation by a) Sending $aUSD to Moonbeam b) Swapping for $DOT and sending it to Polkadot c) Swapping for $iBTC and sending it to Interlay.</p><p>Transaction Trace Results of the address of attackers can be found <a href="https://docs.google.com/spreadsheets/d/15NxJMOmXiL1UZgFtvBuP7LZjsAw7EUirJ-ak8mwcL6U/edit#gid=0">here</a>. Below are a few attackers who profited the most.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eX-N8jjPrtkRhx9FID8Oyg.png" /></figure><p>As a result of the exploit, The whole $iBTC pool got almost completely drained, but the $DOT pool could contain some of the value because it was a $DOT — $LCDOT pool which somehow limited the damage.</p><p>Eight addresses were able to make it off-chain, which amounted to an estimated loss of $1.6-$10M for the platform and its users.</p><h3>After the Exploit :</h3><p>On the 14th of August, Acala announced that the misconfiguration had been rectified, and they have traced on-chain activity. Later, Acala community members created a <a href="https://acala.discourse.group/t/proposal-for-trace-result-1-08-15-2022/1137">proposal</a> that would result in the return of all erroneously minted aUSD to the protocol and the tokens later being burnt.</p><h3>Acala on Twitter: &quot;We have identified the issue as a misconfiguration of the iBTC/aUSD liquidity pool (which went live earlier today) that resulted in error mints of a significant amount of aUSD1/ / Twitter&quot;</h3><p>We have identified the issue as a misconfiguration of the iBTC/aUSD liquidity pool (which went live earlier today) that resulted in error mints of a significant amount of aUSD1/</p><h3>Acala on Twitter: &quot;The recently passed community governance referendum has now been executed. 1,292,860,248 total erroneously minted aUSD have been returned to the honzon protocol and burned.Details in thread below ⤵ / Twitter&quot;</h3><p>The recently passed community governance referendum has now been executed. 1,292,860,248 total erroneously minted aUSD have been returned to the honzon protocol and burned.Details in thread below ⤵</p><p>Around 1.6m aUSD in good value got transferred off-chain before the network shutdown, and 4.6m of wrongly minted $aUSD also left the chain. Apart from that, many tokens were transferred to CEX(Centralized Exchanges), which went unaccounted for.</p><p>8 addresses were able to bridge funds directly to Moonbeam or exchange it for $DOT and $IBTC via Acala’s swap function before sending them to the respective chains. Acala announced a <a href="https://mobile.twitter.com/AcalaNetwork/status/1560139905832984576">5%</a> reward for any eight wallet owners who will return heisted funds.</p><p>More data on this can be found in the Trace Results below:</p><ul><li><a href="https://acala.discourse.group/t/08-14-2022-incident-on-chain-trace-results/1134#trace-result-1-08-15-2022-3">Trace Result #1: 08–15–2022</a></li><li><a href="https://acala.discourse.group/t/08-14-2022-incident-on-chain-trace-results/1134#trace-result-2-08-17-2022-6">Trace Result #2: 08–17–2022</a></li><li><a href="https://acala.discourse.group/t/08-14-2022-incident-on-chain-trace-results/1134#trace-result-3-08-18-2022-dot-outflow-9">Trace Result #3: 08–18–2022</a></li><li><a href="https://acala.discourse.group/t/08-14-2022-incident-on-chain-trace-results/1134#trace-result-4-08-19-2022-top-destination-address-12">Trace Result #4: 08–19–2022</a></li></ul><p>Currently, $aUSD is been traded for $0.81 at Kucoin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w43ybeNPq6SWFJ7bF9qOsw.png" /></figure><h3>How Could They Have Avoided the Exploit?</h3><p>The main reason for the incident was Acala’s faulty deployment that led to the exploit. Proper detection and mitigation of vulnerability before the contract deployment could have avoided the attack.</p><p>Although they came up with a good recovery plan, still, they needed to be more careful as such dApp exploits might occur in the future if smart-contract developers do not regularly check their codes.</p><h3>Reference:</h3><p><a href="https://twitter.com/alice_und_bob/status/1558959878475075584">https://twitter.com/alice_und_bob/status/155895987847507558</a>4</p><p><a href="https://acala.discourse.group/t/08-14-2022-incident-on-chain-trace-results/1134">08-14-2022-Incident On-chain Trace Results</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DgU5B-qHHJYSOq8Nh0OASg.jpeg" /></figure><h3>Web3 security- Need of the hour</h3><p>Why QuillAudits For Web3 Security?</p><p><a href="https://audits.quillhash.com/smart-contract-audit">QuillAudits</a> is well-equipped with tools and expertise to provide cybersecurity solutions saving the loss of millions in funds.</p><h3>Want more Such Security Blogs &amp; Reports?</h3><p>Connect with QuillAudits on :</p><p><a href="https://www.linkedin.com/company/quillaudits/">Linkedin</a> | <a href="https://twitter.com/QuillAudits">Twitter</a> | <a href="http://audits.quillhash.com/">Website</a> | <a href="https://quillaudits.substack.com/">Newsletter</a> | <a href="https://discord.com/invite/WYb8Gfz8yy">Discord</a> | <a href="https://t.me/quillaudits_official">Telegram</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ac8c5183a38" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quillhash/acalas-unlimited-usd-minting-exploit-analyzation-8ac8c5183a38">Acala’s Unlimited $USD Minting : Exploit Analyzation</a> was originally published in <a href="https://medium.com/quillhash">QuillAudits</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Decoding a $830,000 Exploit | QuillAudits]]></title>
            <link>https://medium.com/quillhash/decoding-a-830-000-exploit-quillaudits-c70d1ecfd562?source=rss----8194b478e4c9---4</link>
            <guid isPermaLink="false">https://medium.com/p/c70d1ecfd562</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[QuillAudits - Web3 Security ️]]></dc:creator>
            <pubDate>Sat, 20 Aug 2022 09:32:01 GMT</pubDate>
            <atom:updated>2022-09-22T10:43:10.274Z</atom:updated>
            <content:encoded><![CDATA[<h3>Summary:</h3><p>On the 16th of August, 2022, a vulnerability in Stader’s NearX smart contract was exploited. A total of 165,000 $NEAR tokens were stolen, which amount to approx. $830,000. The attacker “<a href="https://nearblocks.io/address/gregoshes.near">gregoshes.near</a>” exploited well-known Reentrancy Vulnerability in the contract’s batch_transaction function to steal the amount. This attack leads to the draining of liquidity from the NEAR liquid staking pool.</p><h3>Introduction to Stader Network :</h3><p><a href="https://staderlabs.com/">Stader Labs</a> was founded in April 2021 by <a href="https://www.linkedin.com/in/amitej-gajjala">Amitej Gajjala</a>, <a href="https://www.linkedin.com/in/siddoddipalli">Sidhartha Doddipalli</a>, and <a href="https://www.linkedin.com/in/dheeraj-borra">Dheeraj Borra</a>. It specializes in cryptocurrency stake management. Stader plans to use decentralized financial protocols and applications to manage stakes efficiently on public blockchain networks.</p><p><em>Stader’s Near</em> liquid staking gives you a liquid token that gives you max rewards, instant liquidity, and the ability to participate in Defi.</p><h3>Vulnerability Analysis &amp; Impact:</h3><p>Lets First Understand What a Reentrancy Vulnerability looks like:</p><p><strong>Reentrancy Vulnerability:</strong></p><p>Reentrancy Vulnerability is a well-known attack in Defi space. In this bug, a function that could be called repeatedly by an attacker before the first invocation of the function was finished. It can lead to some worst scenarios like multiple transfers of the amount in the contract until it is exhausted. Refer <a href="http://www.blockchainthings.io/article.aspx?i=13">here</a> for more details on it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qVFsq8l4IfEk4pZMPEaE6w.jpeg" /></figure><p><strong>The Attack:</strong></p><p>Coming back to Stader Network, The reentrancy vulnerability was present in <a href="https://nearblocks.io/address/nearx.stader-labs.near#contract">nearx.stader-labs.near</a> contract’s batch_transaction function. The AMMs were not hacked, and the pools were drained by swapping all NEARX for WNEAR. A total of 165,000 $NEAR tokens were stolen, which amount to approx. $830,000.</p><p>Txn Hash: <a href="https://nearblocks.io/txns/BexQuhmdtr745g5fSqvVnCDvXCms14XFJXAZPKWzFc4o">https://nearblocks.io/txns/BexQuhmdtr745g5fSqvVnCDvXCms14XFJXAZPKWzFc4o</a></p><p>Hacker Address: <a href="https://nearblocks.io/address/gregoshes.near">https://nearblocks.io/address/gregoshes.near</a></p><p>Contract Address: <a href="https://nearblocks.io/address/nearx.stader-labs.near#contract">https://nearblocks.io/address/nearx.stader-labs.near#contract</a></p><p><em>The Attack Involved the following Steps:</em></p><ol><li>The attacker “gregoshes.near” deposited 82 $NEAR tokens to get $79 $NEARX tokens. Now, He exploits Reentrancy Vulnerability in the batch_transaction function.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GcWQKdTJNfnBVvBSr1VI4w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F5HrYtyFb_gnr96nFFJeZg.png" /></figure><p>2. Now, The attacker started to repeatedly transfer himself 79 $NEARX by exploiting the batch_transferring function that called ft_transfer method again and again until the tokens from the contract are transferred to the attacker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*I2TeccXDiD_qkXX8cjAu4Q.png" /></figure><p>3. The attacker later drained all $NEAR liquidity from NearX/Near liquidity pools in Ref Finance and Jumbo Exchange. This was done by swapping the minted $NearX tokens for $NEAR.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*fldjcBKegy_tzjwGFbpXnw.png" /></figure><h3>After the Exploit :</h3><p>After the Exploit, <a href="https://twitter.com/stader__near">stader__near</a> announced that there was an exploit, and approx 165K $Near was stolen. Further, they added that 2.5Mn $Near staked on the Stader dapp is completely secure with the validators, and the attack had no impact on it.</p><h3>Stader.Near on Twitter: &quot;Hi @Stader__near fam,Thanks for your patience &amp; support!Today, a bug in the NearX Smart Contract was exploited. Kindly note:✅Staked $NEAR on #NearX dapp is safe with validators.✅Exchange rate on the dapp is intact. / Twitter&quot;</h3><p>Hi @Stader__near fam,Thanks for your patience &amp; support!Today, a bug in the NearX Smart Contract was exploited. Kindly note:✅Staked $NEAR on #NearX dapp is safe with validators.✅Exchange rate on the dapp is intact.</p><p>They announced that they would cover the total losses incurred in the Near/NearX pool. The protocol is also making positive moves to ensure that a similar incident does not resurface.</p><p>They have paused any operations on the NearX contracts until further notice. Booster rewards are also paused. They also announced a bounty of $150,000 to hackers for full cooperation. More details <a href="https://blog.staderlabs.com/stader-near-incident-report-08-16-2022-afe077ffd549">here</a>.</p><h3>How Could They Have Avoided the Exploit?</h3><p>They could have simply avoided the Exploit by proper mitigation of Reentrancy Vulnerability. As a general principle, to avoid reentrancy bugs, it is recommended that developers follow a <strong>check-effects-interactions</strong> pattern.</p><h3>Reference:</h3><p><a href="https://blog.staderlabs.com/stader-near-incident-report-08-16-2022-afe077ffd549">https://blog.staderlabs.com/stader-near-incident-report-08-16-2022-afe077ffd549</a></p><p><a href="https://twitter.com/BeosinAlert/status/1559760874184646657?t=5s6OKGXBUdPLF4ZCrFiIWA">https://twitter.com/BeosinAlert/status/1559760874184646657?t=5s6OKGXBUdPLF4ZCrFiIWA</a></p><h3>Web3 security- Need of the hour</h3><p>Why QuillAudits For Web3 Security?</p><p><a href="https://audits.quillhash.com/smart-contract-audit">QuillAudits</a> is well-equipped with tools and expertise to provide cybersecurity solutions saving the loss of millions in funds.</p><p>Want to Read more such Articles &amp; wanna know more about Blockchain Security?</p><p>To be up to date with our work, Join Our Community:-</p><p><a href="https://t.me/quillhash">Telegram</a> | <a href="https://twitter.com/QuillAudits">Twitter</a> | <a href="https://www.facebook.com/quillaudits">Facebook</a> | <a href="https://www.linkedin.com/showcase/quillaudits">LinkedIn</a></p><h3>Want more Such Security Blogs &amp; Reports?</h3><p>Connect with QuillAudits on :</p><p><a href="https://www.linkedin.com/company/quillaudits/">Linkedin</a> | <a href="https://twitter.com/QuillAudits">Twitter</a> | <a href="http://audits.quillhash.com/">Website</a> | <a href="https://quillaudits.substack.com/">Newsletter</a> | <a href="https://discord.com/invite/WYb8Gfz8yy">Discord</a> | <a href="https://t.me/quillaudits_official">Telegram</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c70d1ecfd562" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quillhash/decoding-a-830-000-exploit-quillaudits-c70d1ecfd562">Decoding a $830,000 Exploit | QuillAudits</a> was originally published in <a href="https://medium.com/quillhash">QuillAudits</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>