FuelLabs / fuel-vm

Fuel v2 interpreter in Rust
Other
344 stars 77 forks source link

Predicate estimation is, almost, unbounded #756

Closed xgreenx closed 3 weeks ago

xgreenx commented 3 weeks ago

The predicate estimation allows MAX_GAS_PER_TRANSACTION for each predicate in the transaction.

image

Currently, we allow 255 inputs per transaction. It allows the attacker to consume a lot of resources during the estimation of the predicate by submitting transactions with 255 predicates that are using 30M gas each, which can lead to 85 seconds of execution.