The TempleGold contract, which implements the OFT (Omnichain Fungible Token) standard, fails to properly handle message inspection failures in its send
function. While the base OFT contract expects implementations to revert on failed inspections, TempleGold does not implement this crucial security check, potentially allowing malicious transactions to bypass intended security measures.
In the OFT base contract, the _buildMsgAndOptions
function includes a message inspection mechanism:
The comment above this code explicitly states:
However, the TempleGold contract, which overrides the send
function, does not implement any mechanism to revert the transaction if the message inspection fails. This oversight creates a critical security vulnerability.
The TempleGoldAdmin contract includes a function to set a message inspector:
This confirms that message inspection is an intended feature, yet its proper implementation is missing in the TempleGold contract.
Bypass of Security Checks: Malicious transactions that should be blocked by the message inspector could potentially be processed, compromising the integrity of cross-chain transfers.
Implement Revert Mechanism: Modify the TempleGold contract to explicitly revert the transaction if the message inspection fails. This can be done by overriding the _buildMsgAndOptions
function:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.