Open code423n4 opened 1 year ago
kirk-baird changed the severity to QA (Quality Assurance)
jonathandiep marked the issue as sponsor disputed
safeMint
, which is used in RabbitHoleReceipt to mint should only allow mints to happens on EOAs
kirk-baird marked the issue as grade-b
Lines of code
https://github.com/rabbitholegg/quest-protocol/blob/8c4c1f71221570b14a0479c216583342bd652d8d/contracts/QuestFactory.sol#L219
Vulnerability details
Impact
The documentation explicitly mentions that the Receipts are to be issued to EOAs but no such checks available in the QuestFactory contract before minting a receipt to an address
Proof of Concept
Documentation:
QuestFactory.sol
As we can see no checks are included to ensure that the address calling the mintReceipt is an EOA and not a contract, an intended implementation mentioned in the documentation.
Tools Used
VS Code
Recommended Mitigation Steps
Additional check: