Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsA fix was pushed into the master
branch but not yet published.
vyper is a Pythonic Smart Contract Language for the EVM.
Affected versions of this package are vulnerable to Incorrect Calculation due to the sqrt
function. An attacker can manipulate the output to cause incorrect rounding results by providing specific input values that cause the function to oscillate between two close values.
def test():
d: decimal = 0.9999999998
r: decimal = sqrt(d) #this will be 0.9999999999