Developers of pNetwork bridge drain $4.3 million from PancakeSwap in ‘white hat’ attack

The developers of pNetwork, an independent cross-chain bridge protocol used to transfer assets across different chains, ethically took $4.3 million in pgala (pegged gala) tokens that it had issued to bridge users.

The “white hat” exploit was executed today as the team said it had discovered a “misconfiguration” in the token’s smart contract, according to on-chain analysis by security firm BlockSec, which informed The Block. The developers of pNetwork attempted to front-run any malicious hackers by “draining” pgala tokens locked in PancakeSwap pools. These tokens, issued by pNetwork itself, represent a 1:1 tokenized version of the gala tokens used in play-to-earn project Gala Games.

The tokens are issued whenever users bridge gala tokens from its original chain, Ethereum, to BNB Chain via pNetwork bridge. Anyone can use pNetwork to lock their assets, including gala tokens, as collateral in the bridge contract and mint tokenized gala, also known as pgala. 

The pgala tokens are maintained via smart contracts controlled by the pNetwork team, and can traded on decentralized exchanges on BNB Chain, including PancakeSwap. Today, the team said that it had discovered a misconfiguration that could allow anyone to steal from the pgala smart contract. Because of this, the contract had to be urgently patched and redeployed. “A misconfiguration of the pNetwork bridge necessitated the redeployment of pGala,” pNetwork said

It added that it had to drain the token in liquidity pools, performing the white hat attack to protect the value of gala tokens locked in the bridge contract before it could redeploy the token contract. To drain pgala liquidity on PancakeSwap, the pNetwork developers minted billions of pgala tokens out of thin air and swapped them to BNB tokens. The team was able to mint these tokens because it had the privileged access from the contract.

BlockSec said: “Our investigation shows that pNetwork had a privileged address and could mint the token. This address minted lots of tokens. As explained by pNetwork, the reason they minted and sold such a large number of pNetwork, is because they intentionally drained the pool to deploy a new pGala contract.”

On-chain data provided by security firm Beosin showed that an address, now believed to be pNetwork team, minted 55 billion gala tokens and swapped them for more than 12,976 BNB tokens worth about $4.3 million across multiple transactions.

PNetwork clarified that all gala tokens on Ethereum as well as the underlying bridge collateral were safe, adding that it plans to reimburse pgala and BNB to user addresses in proportion to their positions in the PancakeSwap pool, after taking a snapshot of their positions. 

Gala Games commented on the incident, saying its token was “not hacked, breached, or exploited in any way,” and pointed users to pNetwork’s posts on the white hat activity. Still, the incident caused turbulence in the gala token market. The token traded down 13% on the day, according to CoinGecko.

© 2022 The Block Crypto, Inc. All Rights Reserved. This article is provided for informational purposes only. It is not offered or intended to be used as legal, tax, investment, financial, or other advice.

Source: https://www.theblock.co/post/182969/developers-of-pnetwork-bridge-drain-4-3-million-from-pancakeswap-in-white-hat-attack?utm_source=rss&utm_medium=rss