💎 Fed’s first rate cut since 2020 set to trigger market. Find undervalued gems with Fair ValueSee Undervalued Stocks

Audius Governance Reveals What Happened During Latest Hack

Published 07/25/2022, 07:15 AM
Updated 07/25/2022, 07:30 AM
Audius Governance Reveals What Happened During Latest Hack
ETH/USD
-

  • The Audius contracts on the Ethereum mainnet were compromised due to a bug in the contract initialization code.
  • This bug made it possible for the attacker to transfer about 18 million AUDIO tokens.
  • There were repeated invocations of any of the functions that used the ‘initializer’ modifier.

The post-mortem report on the Audius Governance takeover was posted on the Audius Blog website on July 24. According to the blog post, “the Audius governance, staking, and delegation contracts on the Ethereum mainnet were compromised due to a bug in the contract initialization code that allowed repeated invocations of the initialize functions.”

This bug made it possible for the attacker to take about 18 million AUDIO tokens held by the Audius governance contract at the community treasury. These tokens were then transferred to a wallet in the attacker’s control, of which he modified the dynamics of the voting system to change their staked AUDIO amounts.

The Audius governance contracts use what is known as the OpenZeppelin proxy upgradability pattern, which permits proxy upgrades to the logic contracts of the Audius Governance system. When implemented, the AudiusAdminUpgradabilityProxy makes use of storage slot 0.

On the other hand, the proxy admin for the Audius protocol was set on the governance server which implements a variety of checks on balances to prevent any unauthorized use.

“This caused a collision with OpenZeppelin’s Initializable contract’s initialized and initializing boolean state, which are also stored in slot 0 (the first and second bytes),” the blog reads.

According to the post-mortem report, “because initializing was already true, the call was not considered to be a ‘toplevelCall’, which meant that both ‘initialized’ and ‘initializing’ were left unchanged.”

This is what led to the repeated invocations of any of the functions that used the ‘initializer’ modifier.

At the end of the attack, the hacker was able to redefine voting on the Audius protocol as well as modify the governance contract’s guardian addresses. They were also able to set the governance address for both the Staking & Delegate Manager V2 contracts to that of the Audius governance contract.

Continue reading on CoinQuora

Latest comments

Risk Disclosure: Trading in financial instruments and/or cryptocurrencies involves high risks including the risk of losing some, or all, of your investment amount, and may not be suitable for all investors. Prices of cryptocurrencies are extremely volatile and may be affected by external factors such as financial, regulatory or political events. Trading on margin increases the financial risks.
Before deciding to trade in financial instrument or cryptocurrencies you should be fully informed of the risks and costs associated with trading the financial markets, carefully consider your investment objectives, level of experience, and risk appetite, and seek professional advice where needed.
Fusion Media would like to remind you that the data contained in this website is not necessarily real-time nor accurate. The data and prices on the website are not necessarily provided by any market or exchange, but may be provided by market makers, and so prices may not be accurate and may differ from the actual price at any given market, meaning prices are indicative and not appropriate for trading purposes. Fusion Media and any provider of the data contained in this website will not accept liability for any loss or damage as a result of your trading, or your reliance on the information contained within this website.
It is prohibited to use, store, reproduce, display, modify, transmit or distribute the data contained in this website without the explicit prior written permission of Fusion Media and/or the data provider. All intellectual property rights are reserved by the providers and/or the exchange providing the data contained in this website.
Fusion Media may be compensated by the advertisers that appear on the website, based on your interaction with the advertisements or advertisers.
© 2007-2024 - Fusion Media Limited. All Rights Reserved.