NFTBridge
60,000 USDC
View results
Submission Details
Severity: low
Invalid

Any one can call "cancelRequest"

Summary

There is no access modifier on cancelRequest as any one call this function.

Vulnerability Details

function cancelRequest(
uint256[] memory payload,
uint256 nonce
) external {

IStarknetMessaging(_starknetCoreAddress).cancelL1ToL2Message(
snaddress.unwrap(_starklaneL2Address),
felt252.unwrap(_starklaneL2Selector),
payload,
nonce
);
Request memory req = Protocol.requestDeserialize(payload, 0);
_cancelRequest(req);
emit CancelRequestCompleted(req.hash, block.timestamp);

}

Impact

Any one can call cancelRequest function and cancelrequest.

Tools Used

Recommendations

use onlyowner modifier.

Updates

Lead Judging Commences

n0kto Lead Judge 12 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

invalid-cancel-callable-by-anyone

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.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.