Attackathon _ Fuel Network 32270 - [Smart Contract - Low] Inappropriate fuel dce on side affects
Description
Brief/Intro
Vulnerability Details
pub(crate) fn has_side_effect(&self) -> bool {
use VirtualOp::*;
(match self {
...
DIV(_, _, _) => self.def_registers().iter().any(|vreg| matches!(vreg, VirtualRegister::Constant(_))),
...
})
.into_iter()
.collect()
}Impact Details
References
Proof of concept
Proof of Concept
PreviousAttackathon _ Fuel Network 32269 - [Smart Contract - High] Incorrect fuel dce optimization registerNextAttackathon _ Fuel Network 32271 - [Blockchain_DLT - Medium] Incorrect state range access helper
Last updated
Was this helpful?