A critical incident on the infrastructure of the Wanchain cross-chain bridge, connecting the Cardano and BNB Chain networks, has resulted in the loss of approximately 515 million NIGHT tokens. The project team has officially confirmed the hack. According to various estimates, the value of the withdrawn assets at the time of the attack ranged from $9 to $13 million.
Anatomy of the Attack: Vulnerability in the TreasuryCheck Validator
Specialists from BlockSec conducted a preliminary investigation and identified the root cause — incorrect encoding of a signed message in the TreasuryCheck smart contract validator. This contract is responsible for verifying the legitimacy of operations. The problem lies in the fact that different input data sets can generate an identical output string. In simple terms, the system ceased to distinguish between different operations.
The exploit mechanism worked as follows: the signed message was formed by raw concatenation of 14 variable-length fields (redeemer) without delimiters or length prefixes. A redeemer is a data set attached to a transaction to confirm its validity. Due to this, different combinations of field values could produce the same byte string. An identical string, in turn, led to the same hash (digital fingerprint) and, consequently, to a signature suitable for reuse.
The attackers did not forge the signature or alter the data combination itself. They "shifted" the invisible boundary between the fields. The signature remained valid because it confirmed the combination as a whole, but the verification program interpreted it differently, redirecting assets to the attacker's address.
Team Responses and Market Consequences
The Wanchain team promptly disabled the bridge and promised full transparency in the investigation. Meanwhile, the Midnight Foundation, which supports the NIGHT token, emphasized that the incident is isolated to the Wanchain bridge and does not affect the protocol, the validator network, or the core infrastructure of the Midnight blockchain itself.
The market reaction was immediate and severe: the price of the NIGHT token plummeted by more than 30% in a day, reaching around $0.016 and hitting an all-time low. This is a clear demonstration of how vulnerable the ecosystem can be, even with an isolated hack of an infrastructure component.
Expert Opinion: This incident is yet another stark reminder that cross-chain bridges remain one of the weakest points in DeFi. The "ambiguous encoding" problem is a classic development error that could have been identified during the formal code verification stage. The market continues to harshly punish projects for insufficient attention to security audits, and this case will likely spur stricter standards across the entire industry.