Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: high
Valid

No only santa check in checkList

Summary

Function checkList expected to be called only by Santa. However no caller checks are there

Vulnerability Details

Contract logic considers person status to be approved if it's double confirmed by checkList and checkTwice with the same status.
However as function checkList can be called by anyone, Santa's checkTwice transaction can be front-runned with checkList transaction by attacker. This transaction sets first check status the same as the second check status if second check status is better than first set

Impact

If second check if attacker has a mistake, this mistake will be applied regardless the first check

Tools Used

Recommendations

Add modifier onlySanta to the function checkList

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

Access Control on checkList()

Anyone is able to call checkList() changing the status of a provided address. This is not intended functionality and is meant to be callable by only Santa.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.