In bridge.cairo
, there is no checks for a zero address on key parameters.
The author does not check for the zero address at the constructor level which I think is wrong, as important as the bridge contract is. Not checking for the zero address could pose a potential risk to the contract.
The assumption could lead to a scenario where an attacker could sneak in a zero address on the bridge_admin
or the bridge_l1_address
.
Manual review
Check for zero addresses in bridge.cairo
constructor.
Please, do not suppose impacts, think about the real impact of the bug and check the CodeHawks documentation to confirm: https://docs.codehawks.com/hawks-auditors/how-to-determine-a-finding-validity A PoC always helps to understand the real impact possible.
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.