This audit report evaluates the solidity smart contract "ProxyFactory.sol" for potential vulnerabilities. The contract was manually reviewed using standard security practices and analysis tools and no issue was found other than the lower severity one described here.
In ProxyFactory.sol at line 131:
Description: In the deployProxyAndDistribute function, the salt used to identify a given contest is calculated from the implementation's address, contest id, and organizer's address. However, there are no records of who organized a contest other than the salt itself. This design could potentially allow an attacker to create a malicious contest by using their own address, a publicly known implementation's address, and crafting a contestId to produce the same salt as a valid contest. This could lead to stealing funds from a legitimate contest.
Snippet:
This vulnerability could potentially allow an attacker to exploit the salt generation process and create a malicious contest to steal funds from legitimate contests. While the likelihood of such an attack might be low due to the need for a brute force approach, it's essential to address this issue to prevent any possible exploits.
Manual Review
It is recommended to enhance the security of the contract by introducing a mechanism to verify the identity of the contest organizer. One possible approach is to include a mapping that associates each contestId with the address of its original organizer. This way, the deployProxyAndDistribute function can validate that the msg.sender is the legitimate organizer before proceeding.
By introducing this additional validation step, the contract can ensure that only the original contest organizer can deploy proxies and distribute funds for their contests.
The audit has identified a vulnerability in the ProxyFactory.sol contract that could potentially allow unauthorized access to contest funds. The recommended solution involves implementing a verification mechanism to confirm the contest organizer's identity before allowing proxy deployment and fund distribution. This enhancement will bolster the contract's security and mitigate the identified risk.
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.