An attacker can adjust the hash value using the salt value, as a result, various problem can occur.
According to protocol flow, users call depositTokens()
to deposit token in escrow and initiate the transfer to Starknet.
Parameter salt of depositTokens()
is set by input of user.
The requestHash()
generates hash value by using salt.
This incorrect hash value is used in withdrawTokens()
.
An attacker can adjust the hash value using the salt value, as a result, various problem can occur.
Mannual Review
Generate salt randomly.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.