-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Owner can prevent from draw running the second time #195
Comments
gzeon-c4 marked the issue as primary issue |
gzeon-c4 marked the issue as satisfactory |
I think this is low risk given the permissioned design of the contract, will wait for sponsor comment. |
@gzeoneth Agreed with low/QA. The contract is permissioned due to the dependency on chainlink and a relative level of trust of the owner. |
iainnash marked the issue as sponsor disputed |
gzeon-c4 changed the severity to QA (Quality Assurance) |
gzeon-c4 marked the issue as grade-b |
Lines of code
https://github.com/code-423n4/2022-12-forgeries/blob/fc271cf20c05ce857d967728edfb368c58881d85/src/VRFNFTRandomDraw.sol#L203
Vulnerability details
Impact
The owner can decide not to
redraw
. Therefore if no winner is selected the first time, the owner can wait for the lock period to end and get their NFT back.Proof of Concept
redraw
function is set with theonlyOwner
modifier. It can only be called by the owner.https://github.com/code-423n4/2022-12-forgeries/blob/fc271cf20c05ce857d967728edfb368c58881d85/src/VRFNFTRandomDraw.sol#L203:
Tools Used
VS Code
Recommended Mitigation Steps
The protocol has placed a lot of trust in the owner. Users should be able to call
redraw
as well.The text was updated successfully, but these errors were encountered: