During the manual code review, It has been observed that re-entrancy guard (ReentrancyGuardUpgradeable) contract is not initialized. The contract should be initialized in the initialize function.
Consider initializing function in the related section.
function initialize() public initializer {
OwnableUpgradeable.__Ownable_init();
__ReentrancyGuard_init();
}
Lines of code
https://github.com/code-423n4/2022-03-prepo/blob/main/contracts/core/PrePOMarketFactory.sol#L15
Vulnerability details
Impact
During the manual code review, It has been observed that re-entrancy guard (ReentrancyGuardUpgradeable) contract is not initialized. The contract should be initialized in the initialize function.
Proof of Concept
https://github.com/code-423n4/2022-03-prepo/blob/main/contracts/core/PrePOMarketFactory.sol#L15
Tools Used
Code Review
Recommended Mitigation Steps
Consider initializing function in the related section.
Originally posted by @code423n4 in code-423n4/2022-03-prepo-findings#13