A security audit on the StarklaneMessaging
contract revealed conflicts between auto-withdraw and Starknet messaging features, leading to potential denial of service.
Messages configured for auto-withdrawal might conflict with those intended for Starknet messaging, causing denial of service.
Affected Code:
Messages intended for auto-withdrawal may conflict with Starknet messages.
Scenario: Bob adds a message for auto-withdrawal, and Alice attempts to consume it via Starknet messaging.
Add Message for Auto-Withdrawal:
Kopier kode
Consume Message via Starknet Messaging:
Kopier kode
Since the state of msgHash
is WITHDRAW_AUTO_READY
, the transaction reverts with a WithdrawMethodError
.
Severity: High
Denial of Service: Users might find it difficult to consume messages using Starknet messaging if they are configured for auto-withdrawal.
Complex State Management: Increased complexity in managing message states could result in erroneous message consumptions and user confusion.
Manual Code Review
Stricter Checks: Enforce stricter checks to distinguish between auto-withdrawal and Starknet messaging.
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.