The cancelRequest function does not have access control, meaning that anyone can cancel requests.
Without proper access control, any user can call cancelRequest, which may lead to unauthorized cancellation of requests and disruption of normal bridge operations.
Unauthorized cancellation of requests could interfere with the intended functionality of the bridge, potentially causing service disruptions or misuse.
Manual Code Review
Restrict access to the cancelRequestfunction to authorized entities only, such as the contract owner:
The process to cancel a message is detailed here: https://docs.starknet.io/architecture-and-concepts/network-architecture/messaging-mechanism/#l2-l1_message_cancellation Since `startRequestCancellation` has the `onlyOwner`, only the owner can begin that process.
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.