<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://quadrigainitiative.com/cryptocurrencyhackscamfraudwiki/index.php?action=history&amp;feed=atom&amp;title=Pike_Finance_Variable_Storage_Vulnerability</id>
	<title>Pike Finance Variable Storage Vulnerability - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://quadrigainitiative.com/cryptocurrencyhackscamfraudwiki/index.php?action=history&amp;feed=atom&amp;title=Pike_Finance_Variable_Storage_Vulnerability"/>
	<link rel="alternate" type="text/html" href="https://quadrigainitiative.com/cryptocurrencyhackscamfraudwiki/index.php?title=Pike_Finance_Variable_Storage_Vulnerability&amp;action=history"/>
	<updated>2026-07-14T16:48:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>https://quadrigainitiative.com/cryptocurrencyhackscamfraudwiki/index.php?title=Pike_Finance_Variable_Storage_Vulnerability&amp;diff=5945&amp;oldid=prev</id>
		<title>Azoundria at 21:44, 13 September 2024</title>
		<link rel="alternate" type="text/html" href="https://quadrigainitiative.com/cryptocurrencyhackscamfraudwiki/index.php?title=Pike_Finance_Variable_Storage_Vulnerability&amp;diff=5945&amp;oldid=prev"/>
		<updated>2024-09-13T21:44:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:44, 13 September 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot;&gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Unattributed Sources}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Unattributed Sources}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:Pikefinance.jpg|thumb|Pike Finance Logo/Homepage]]Pike Finance is a loan protocol which allows loans to be taken out using collateral on other chains. The smart contract was upgraded after an issue where USDC could be withdrawn without proper validation. The team corrected the vulnerability with an upgrade which allowed all the assets to be drained from their smart contract, due to the contract being not considered to be initialized when memory shifted. The team eventually promised refunds to users, which have yet to be honoured.&amp;lt;ref name=&amp;quot;rekthqtwitter-13600&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;rektnews-13601&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;pikefinance-13603&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;pikefinancedocs-13604&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;mirror-13605&amp;quot; /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:Pikefinance.jpg|thumb|Pike Finance Logo/Homepage]]Pike Finance is a loan protocol which allows loans to be taken out using collateral on other chains. The smart contract was upgraded after an issue where USDC could be withdrawn without proper validation. The team corrected the vulnerability with an upgrade which allowed all the assets to be drained from their smart contract, due to the contract being not considered to be initialized when memory shifted. The team eventually promised refunds to users, which have yet to be honoured.&amp;lt;ref name=&amp;quot;rekthqtwitter-13600&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;rektnews-13601&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;pikefinance-13603&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;pikefinancedocs-13604&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;mirror-13605&amp;quot; /&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;gt;&amp;lt;ref&amp;gt;https://web.archive.org/web/20240516185331/https://hacked.slowmist.io/?c=&amp;amp;page=2 (Accessed May 22, 2024)&amp;lt;/ref&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== About Pike Finance ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== About Pike Finance ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Azoundria</name></author>
	</entry>
	<entry>
		<id>https://quadrigainitiative.com/cryptocurrencyhackscamfraudwiki/index.php?title=Pike_Finance_Variable_Storage_Vulnerability&amp;diff=5751&amp;oldid=prev</id>
		<title>Azoundria: Created page with &quot;{{Imported Case Study With About|source=https://www.quadrigainitiative.com/casestudy/pikefinancevariablestoragevulnerability.php}} {{Unattributed Sources}}  Pike Finance Logo/HomepagePike Finance is a loan protocol which allows loans to be taken out using collateral on other chains. The smart contract was upgraded after an issue where USDC could be withdrawn without proper validation. The team corrected the vulnerability with an upgrade whi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://quadrigainitiative.com/cryptocurrencyhackscamfraudwiki/index.php?title=Pike_Finance_Variable_Storage_Vulnerability&amp;diff=5751&amp;oldid=prev"/>
		<updated>2024-05-07T00:05:07Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Imported Case Study With About|source=https://www.quadrigainitiative.com/casestudy/pikefinancevariablestoragevulnerability.php}} {{Unattributed Sources}}  &lt;a href=&quot;/cryptocurrencyhackscamfraudwiki/index.php?title=File:Pikefinance.jpg&quot; title=&quot;File:Pikefinance.jpg&quot;&gt;thumb|Pike Finance Logo/Homepage&lt;/a&gt;Pike Finance is a loan protocol which allows loans to be taken out using collateral on other chains. The smart contract was upgraded after an issue where USDC could be withdrawn without proper validation. The team corrected the vulnerability with an upgrade whi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Imported Case Study With About|source=https://www.quadrigainitiative.com/casestudy/pikefinancevariablestoragevulnerability.php}}&lt;br /&gt;
{{Unattributed Sources}}&lt;br /&gt;
&lt;br /&gt;
[[File:Pikefinance.jpg|thumb|Pike Finance Logo/Homepage]]Pike Finance is a loan protocol which allows loans to be taken out using collateral on other chains. The smart contract was upgraded after an issue where USDC could be withdrawn without proper validation. The team corrected the vulnerability with an upgrade which allowed all the assets to be drained from their smart contract, due to the contract being not considered to be initialized when memory shifted. The team eventually promised refunds to users, which have yet to be honoured.&amp;lt;ref name=&amp;quot;rekthqtwitter-13600&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;rektnews-13601&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;pikefinance-13603&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;pikefinancedocs-13604&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;mirror-13605&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== About Pike Finance ==&lt;br /&gt;
&amp;quot;Universal Liquidity Protocol A next generation money market  一  deposit collateral on chain A, borrow on chain B.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Pike is a universal liquidity market optimized for native assets.&amp;quot; &amp;quot;Pike is a universal liquidity market that enables lending and borrowing using native assets directly on their respective blockchains, eliminating the need for wrapping and cross-chain transfers.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Pike enables lending and borrowing using native assets directly on their respective blockchains, eliminating the need for wrapping and cross-chain transfers. For example, users can deposit Arbitrum's ARB tokens as collateral on their native Arbitrum chain, while borrowing other assets on a different blockchain.&amp;quot; &amp;quot;Pike is enabled by Wormhole Cross-Chain Messaging, Circle’s Cross-Chain Transfer Protocol, and Pyth Data Feeds.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Pike redefines the user experience for cross-chain lending and borrowing - Our focus on native assets remove the need for assets with suffixes and prefixes.&amp;quot; &amp;quot;Seamlessly maximize your yields and leverage Pike’s native cross-chain functionality  一  No longer do you have to constantly bridge your assets to explore opportunities across the ecosystem.&amp;quot; &amp;quot;Pike’s hub and spoke architecture is designed to fade into the background  一  Allowing users to realize an interconnected DeFi vision. Utilize a suite of assets from across the ecosystem  一  Ranging from yield bearing stablecoins and LSTs, to LP tokens.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Wormhole messaging eliminates risks associated with cross-chain bridges and bridged assets 一 reducing attack vectors stemming from pricing oracles.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== The Reality ==&lt;br /&gt;
Upgrading the smart contract introduced a vulnerability since the alignment of contract data was shifted.&lt;br /&gt;
&lt;br /&gt;
== What Happened ==&lt;br /&gt;
The specific events of the loss and how it came about. What actually happened to cause the loss and some of the events leading up to it.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Key Event Timeline - Pike Finance Variable Storage Vulnerability&lt;br /&gt;
!Date&lt;br /&gt;
!Event&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|April 30th, 2024 4:19:11 PM MDT&lt;br /&gt;
|Ethereum Attack Transaction&lt;br /&gt;
|The attack transaction on Ethereum blockchain.&lt;br /&gt;
|-&lt;br /&gt;
|May 1st, 2024 1:32:00 AM MDT&lt;br /&gt;
|Tweet About Incident&lt;br /&gt;
|Pike Finance puts together a tweet with a high level technical analysis of the exploit.&lt;br /&gt;
|-&lt;br /&gt;
|May 2nd, 2024 5:07:49 AM MDT&lt;br /&gt;
|Path Forward Published&lt;br /&gt;
|Pike Finance publishes a path forward for both vulnerabilities and how they plan to compensate users.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Technical Details ==&lt;br /&gt;
&amp;quot;In order to pause the protocol, the spoke contracts were upgraded and there was the inclusion of an additional dependency within the smart contract code.&lt;br /&gt;
&lt;br /&gt;
This dependency introduced new variables which altered the storage layout - in particular, the position of the *initialized* variable. &lt;br /&gt;
&lt;br /&gt;
As a result, the position occupied by the *initialized* variable was taken over by other variables, leading to a misalignment in storage mapping.&lt;br /&gt;
&lt;br /&gt;
This misalignment caused the contract to behave as if it was uninitialized, since the *initialized* variable could no longer be accessed.&lt;br /&gt;
&lt;br /&gt;
As a result, attackers were then able to upgrade the spoke contracts, bypassing admin access, and as a result, withdraw funds.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Attacker: 0x19066f7431df29a0910d287c8822936bb7d89e23&lt;br /&gt;
&lt;br /&gt;
Attack contract: 0x1da4bc596bfb1087f2f7999b0340fcba03c47fbd&lt;br /&gt;
&lt;br /&gt;
Target contract: 0xfc7599cffea9de127a9f9c748ccb451a34d2f063&lt;br /&gt;
&lt;br /&gt;
Attack Transaction on Optimism: 0x19066f7431df29a0910d287c8822936bb7d89e23&lt;br /&gt;
&lt;br /&gt;
Attack Transaction on Arbitrum Transaction: 0x19066f7431df29A0910d287C8822936Bb7D89E23&lt;br /&gt;
&lt;br /&gt;
Attack Transaction on Ethereum:&lt;br /&gt;
0xe2912b8bf34d561983f2ae95f34e33ecc7792a2905a3e317fcc98052bce66431&lt;br /&gt;
&lt;br /&gt;
== Total Amount Lost ==&lt;br /&gt;
On the 30th of April 2024, the Pike Beta protocol was exploited for 99,970.48 ARB, 64,126 OP and 479.39 ETH.&lt;br /&gt;
&lt;br /&gt;
The total amount lost has been estimated at $1,600,000 USD.&lt;br /&gt;
&lt;br /&gt;
== Immediate Reactions ==&lt;br /&gt;
The Pike Finance team acknowledge the exploit and published a blog post with the plan forward.&lt;br /&gt;
&lt;br /&gt;
== Ultimate Outcome ==&lt;br /&gt;
Ongoing.&lt;br /&gt;
&lt;br /&gt;
== Total Amount Recovered ==&lt;br /&gt;
The Pike Finance team published a blog post with the plan forward.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;In the coming days, we will disclose a full list of wallet addresses with active supply and borrow positions prior to the protocol halt as of April 26 08:35 PM UTC. Addresses with a supply position will have a credit balance, and addresses with a borrow position will have a debit balance. We will calculate the Net Balance [Total Value of Supply - Total Value of Borrow] and assess whether liquidation levels have been triggered using asset prices as of April 26 08:35 PM UTC. Addresses with a positive net balance after accounting for liquidation checks will be restituted in full directly to their wallets ($OP via Optimism, $ARB via Arbitrum, $ETH and $USDC via Base).&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;The Community Treasury allocation of $P has been set aside for various usages, however one of these is of course, as an insurance fund.&lt;br /&gt;
&lt;br /&gt;
As a result, we will be using 4% of the total supply of $P (from the Community Treasury  allocation) as collateral to borrow the necessary stablecoin funds from the team treasury (around $2M USD across both exploits).&lt;br /&gt;
&lt;br /&gt;
These will then be used to purchase the relevant assets on the open market and reimburse users for what they had within Pike prior to the exploit.&lt;br /&gt;
&lt;br /&gt;
As the protocol generates revenue and launches the $P token, this loan will then be paid back accordingly - transferring the $P tokens used as collateral to the Foundation Treasury.&lt;br /&gt;
&lt;br /&gt;
Once the debt is repaid, the $P will be released back to Insurance pool&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The total amount recovered has been estimated at $1,600,000 USD.&lt;br /&gt;
&lt;br /&gt;
== Ongoing Developments ==&lt;br /&gt;
Refunds are still ongoing.&lt;br /&gt;
== Individual Prevention Policies ==&lt;br /&gt;
{{Prevention:Individuals:Placeholder}}&lt;br /&gt;
&lt;br /&gt;
{{Prevention:Individuals:End}}&lt;br /&gt;
&lt;br /&gt;
== Platform Prevention Policies ==&lt;br /&gt;
{{Prevention:Platforms:Placeholder}}&lt;br /&gt;
&lt;br /&gt;
{{Prevention:Platforms:End}}&lt;br /&gt;
&lt;br /&gt;
== Regulatory Prevention Policies ==&lt;br /&gt;
{{Prevention:Regulators:Placeholder}}&lt;br /&gt;
&lt;br /&gt;
{{Prevention:Regulators:End}}&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references&amp;gt;&amp;lt;ref name=&amp;quot;rekthqtwitter-13600&amp;quot;&amp;gt;[https://twitter.com/RektHQ/status/1787169917684625878 @RektHQ Twitter] (May 6, 2024)&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;rektnews-13601&amp;quot;&amp;gt;[https://rekt.news/pike-rekt/ Rekt - Pike Finance - Rekt] (May 6, 2024)&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;pikefinance-13603&amp;quot;&amp;gt;[https://www.pike.finance/ Pike | Universal Liquidity Protocol] (May 6, 2024)&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;pikefinancedocs-13604&amp;quot;&amp;gt;[https://docs.pike.finance/ Introduction to Pike | User Docs | Pike] (May 6, 2024)&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;mirror-13605&amp;quot;&amp;gt;[https://mirror.xyz/pikefinance.eth/klLV4rRqNYxjRQp0NAfVLboLYtX98P9iYOOf06FUapg Pike: A Path Forward — Pike] (May 6, 2024)&amp;lt;/ref&amp;gt;&amp;lt;/references&amp;gt;&lt;/div&gt;</summary>
		<author><name>Azoundria</name></author>
	</entry>
</feed>