MEV: Operator can bribe miner and steal honest operator’s bond amount if gas price went high
The smart contract checks for a gas spike using the current transaction's gas price, which an attacker can manipulate by submitting a flashbots bundle with a low gas price and a separate bribe to the miner. This allows a dishonest operator to claim an honest operator's bond even when gas prices are high.
Submitted by Trust
Operators in Holograph do their job by calling executeJob() with the bridged in bytes from source chain. If the primary job operator did not execute the job during his allocated block slot, he is punished by taking a single bond amount and transfer it to the operator doing it instead. The docs and code state that if there was a gas spike in the operator’s slot, he shall not be punished. The way a gas spike is checked is with this code in executeJob:
require(gasPrice >= tx.gasprice, "HOLOGRAPH: gas spike detected");
However, there is still a way for operator to claim primary operator’s bond amount although gas price is high. Attacker can submit a flashbots bundle including the executeJob() transaction, and one additional “bribe” transaction. The bribe transaction will transfer some incentive amount to coinbase address (miner), while the executeJob is submitted with a low gasprice. Miner will accept this bundle as it is overall rewarding enough for them, and attacker will receive the base bond amount from victim operator. This threat is not theoretical because every block we see MEV bots squeezing value from such opportunities.
info about coinbase transfer info about bundle selection
Impact
Dishonest operator can take honest operator’s bond amount although gas price is above acceptable limits.
Tools Used
Manual audit, flashbot docs
Recommended Mitigation Steps
Do not use current tx.gasprice amount to infer gas price in a previous block. Probably best to use gas price oracle.
Note that this is not possible with 1559 due to block base fee, but might be possible in some other chain.
alexanderattar (Holograph) disputed and commented:
EIP-1559 does not allow for tx gas less than block base fee
Dispute: it is incorrect to assume bridge request sender did not add a priority fee, making it possible to bribe with
tx.gasprice < gasPrice. Also, cannot assume all chains in the multichain implement EIP1559.
ACC01ADE (Holograph) commented:
The EIP-1559 for all EVM chains assumption is the gotcha here. I don’t really see a solution for this at the moment. 🤔
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the contract uses the current transaction's gas price to infer the gas price of a previous block, which can be manipulated via a flashbots bundle with a separate miner bribe.
Impact
A dishonest operator could steal an honest operator's bond even when gas prices are high, though the judge noted this is not possible with EIP-1559 due to the block base fee, but might be possible on other chains.
What the attacker needed
Attacker is an operator; access to flashbots or similar; chain without EIP-1559 or with priority fees
The fix
The contract should not use the current transaction's gas price to infer past gas prices; it should use a gas price oracle instead.
How it was found
- Attacker submits a flashbots bundle containing the executeJob() transaction with a low gas price.
- The bundle also includes a separate transaction that transfers a bribe to the miner's coinbase address.
- The miner accepts the bundle because the total reward is sufficient.
- The executeJob() transaction executes with a low gas price, bypassing the gas spike check.
- The attacker receives the bond amount from the honest operator.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
In this system, operators are supposed to execute jobs and are punished if they miss their slot, unless gas prices were unusually high. The check for high gas prices uses the gas price of the transaction that calls the function, which can be set low by an attacker who separately pays the miner a bribe. This lets the attacker take the honest operator's bond even when gas is high.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.