Platform: Code4rena
Start Date: 07/07/2023
Pot Size: $121,650 USDC
Total HM: 36
Participants: 111
Period: 7 days
Judge: Picodes
Total Solo HM: 13
Id: 258
League: ETH
Rank: 89/111
Findings: 1
Award: $19.29
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: Udsen
Also found by: 0x11singh99, 0xPsuedoPandit, Daniel526, Darwin, Inspecktor, Jorgect, Nyx, Praise, Tripathi, YY, catellatech, namx05, squeaky_cactus, xuwinnie
19.2867 USDC - $19.29
The setDrawManager
function lacks proper access control, allowing any address to change the drawManager
variable. This can pose a security risk as it allows unauthorized users to modify critical system settings.
The absence of access control introduces the following potential risks:
setDrawManager
function and change the drawManager address.Code Snippet:
function setDrawManager(address _drawManager) external { if (drawManager != address(0)) { revert DrawManagerAlreadySet(); } drawManager = _drawManager; emit DrawManagerSet(_drawManager); }
Manual
To address the issue of lacking access control, it is recommended to implement proper access control mechanisms.
Access Control
#0 - c4-judge
2023-07-14T22:59:09Z
Picodes marked the issue as duplicate of #356
#1 - c4-judge
2023-07-14T22:59:13Z
Picodes marked the issue as duplicate of #356
#2 - c4-judge
2023-08-06T10:31:37Z
Picodes changed the severity to 2 (Med Risk)
#3 - c4-judge
2023-08-06T10:32:19Z
Picodes marked the issue as satisfactory