Skip to content

# Lines of code #24

Description

@nooffense249

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

  1. Navigate to the following contract.

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.

    function initialize() public initializer {
        OwnableUpgradeable.__Ownable_init();
        __ReentrancyGuard_init();
    }

Originally posted by @code423n4 in code-423n4/2022-03-prepo-findings#13

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions