-
Notifications
You must be signed in to change notification settings - Fork 11
csanuragjain - Incorrect owner check #263
Comments
Escalate for 28 USDC This is mentioning a valid issue where CrossDomainOwnable.sol#L21 is always assuming call to |
You've created a valid escalation for 28 USDC! To remove the escalation from consideration: Delete your comment. You may delete or edit your escalation comment anytime before the 48-hour escalation window closes. After that, the escalation becomes final. |
Escalation accepted and labeling as specification issue |
This issue's escalations have been accepted! Contestants' payouts and scores will be updated according to the changes made on this issue. |
csanuragjain
low
Incorrect owner check
Summary
The depositTransaction of OptimismPortal can directly be called by user instead of intermediate contract. This means from address wont be aliased. But this is not considered in CrossDomainOwnable contract which plainly undoL1ToL2Alias the caller
Vulnerability Detail
depositTransaction
is called by User A directly. Since no intermediary contract so no aliasing is doneImpact
The owner check might fail for genuine transaction
Code Snippet
https://github.com/sherlock-audit/2023-01-optimism/blob/main/optimism/packages/contracts-bedrock/contracts/L2/CrossDomainOwnable.sol#L21
Tool used
Manual Review
Recommendation
This check need to be revised. If the transaction came directly from tx.origin (without any intermediary contract) then no need of removing aliasing
The text was updated successfully, but these errors were encountered: