Closed code423n4 closed 1 year ago
Better to remove.
At most QA.
miladpiri marked the issue as disagree with severity
Will consult with judges due to rules around scope, but I believe that the comment on the code shows the function is for testing and the severity can be correctly downgraded
After checking the bootloader, we can see that the function may be called only if the bootloader uses playground_block
<!-- @if BOOTLOADER_TYPE=='playground_block' -->
For this reason am downgrading to QA
L
GalloDaSballo changed the severity to QA (Quality Assurance)
GalloDaSballo marked the issue as grade-c
Lines of code
https://github.com/code-423n4/2023-03-zksync/blob/main/contracts/SystemContext.sol#L130-L135
Vulnerability details
Summary
The
SystemContext
contract contains the test interface, which can forcibly modify the current block information.Impact
This interface may be considered a backdoor.
Proof of Concept
Tools Used
Manual
Recommended Mitigation Steps
It is recommended to delete the test interface.