deployProxyAndDistributeBySignature()
is susceptible to frontrunning, where an attacker can exploit the transaction by replication the transaction with a higher gas fee.
ProxtFactory.sol
is responsible for both creating proxies and invoking them to deliver rewards to the winners. deployProxyAndDistributeBySignature()
permits a user to deploy a proxy and sends rewards to the winners on the organizer's behalf, granted they possess the necessary signature. However, if an attacker monitors the mempool and identifies the transaction, they can replicate it with a higher gas fee and alterating the data
field for positioning themselves as the sole recipient of rewards causing that their transaction be verfied first stealing the funds.
The rewards of the winners could be stolen.
Manual review.
A solution to this issue could involve the implementation of a mapping that grants explicit approval to certain users for utilizing the organizer's signature.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.