There is no way to revoke a specified signature that is provided but not yet used for minting a RabbitHole receipt #663
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
grade-a
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Lines of code
https://github.com/rabbitholegg/quest-protocol/blob/main/contracts/QuestFactory.sol#L219-L229
Vulnerability details
Impact
A user can call the following
mintReceipt
function using a provided signature. It is possible that the claim signer, quest owner, or RabbitHole team is legally required to disallow a user from minting a RabbitHole receipt after the signature is provided. In this case, the provided signature needs to be revoked before it is used. However, there is no way to do this currently unless theQuestFactory
contract's owner changesclaimSignerAddress
to revert themintReceipt
function call with theAddressNotSigned
custom error, which will revoke all users' signatures, including the valid and safe ones, and cause much inconveniences to all users. If keepingclaimSignerAddress
as is, the user with the signature that should be revoked can use such signature to mint a RabbitHole receipt and claim the associated rewards when she or he actually should be disallowed from doing so.https://github.com/rabbitholegg/quest-protocol/blob/main/contracts/QuestFactory.sol#L219-L229
Proof of Concept
The following steps can occur for the described scenario.
Tools Used
VSCode
Recommended Mitigation Steps
A function that is only callable by a trusted party, such as the claim signer, quest owner, or RabbitHole team, can be added for recording the specified signature for a user that should be revoked. Then, the
mintReceipt
function can be updated to prevent the corresponding user from using the revoked signature.The text was updated successfully, but these errors were encountered: