contract OverlayV1OI isn't abstract #62
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Handle
gpersoon
Vulnerability details
Impact
The contract OverlayV1Market is abstract and includes several other contracts that are also abstract.
The only deviation is the contract OverlayV1OI which isn't abstract.
The risk is that OverlayV1OI could be accidentally deployed separately.
Proof of Concept
https://github.com/code-423n4/2021-11-overlay/blob/914bed22f190ebe7088194453bab08c424c3f70c/contracts/market/OverlayV1Market.sol#L13
https://github.com/code-423n4/2021-11-overlay/blob/914bed22f190ebe7088194453bab08c424c3f70c/contracts/market/OverlayV1Governance.sol#L11-L14
https://github.com/code-423n4/2021-11-overlay/blob/914bed22f190ebe7088194453bab08c424c3f70c/contracts/market/OverlayV1Comptroller.sol#L9
https://github.com/code-423n4/2021-11-overlay/blob/914bed22f190ebe7088194453bab08c424c3f70c/contracts/market/OverlayV1OI.sol#L6
https://github.com/code-423n4/2021-11-overlay/blob/914bed22f190ebe7088194453bab08c424c3f70c/contracts/market/OverlayV1PricePoint.sol#L7
Tools Used
Recommended Mitigation Steps
Make contract OverlayV1OI also abstract
The text was updated successfully, but these errors were encountered: