Attackathon _ Fuel Network 32979 - [Smart Contract - Low] operations with StorageVec incorrectly rev
Description
Brief/Intro
Vulnerability Details
if size_V_bytes < 8 {
let len_bytes = len * size_V_bytes;
let new_vec = alloc_bytes(len_bytes);
let mut i = 0;
while i < len {
// The stored vec is offset with 1 word per element, remove the padding for elements less than the size of a word
// (size_of_word * element)
ptr
.add_uint_offset((8 * i))
.copy_bytes_to(new_vec.add::<V>(i), size_V_bytes);
i += 1;
}Impact Details
References
Proof of concept
Proof of Concept
PreviousAttackathon _ Fuel Network 32978 - [Blockchain_DLT - Insight] isolating the node from the networkcauNextAttackathon _ Fuel Network 32987 - [Blockchain_DLT - Insight] Sending a message with ETH and data to
Last updated
Was this helpful?