#38292 [SC-Medium] Incorrect Sqrt Calculation Result
Description
Brief/Intro
Vulnerability Details
assert x >= 0.0
z: decimal = 0.0
if x == 0.0:
z = 0.0
else:
z = x / 2.0 + 0.5
y: decimal = x
for i: uint256 in range(256):
if z == y:
break
y = z
z = (x / z + z) / 2.0Impact Details
References
Proof of Concept
Proof of Concept
Previous#39018 [BC-Insight] Rate Limiting Under-Specification and ConsequencesNext#38958 [BC-Low] EELS cant handle overflow gas calculation in modexp precompile
Was this helpful?