code-423n4 / 2024-04-panoptic-findings

9 stars 4 forks source link

One-Step Ownership Transfer Vulnerability #508

Closed c4-bot-8 closed 5 months ago

c4-bot-8 commented 5 months ago

Lines of code

https://github.com/code-423n4/2024-04-panoptic/blob/833312ebd600665b577fbd9c03ffa0daf250ed24/contracts/PanopticFactory.sol#L147

Vulnerability details

Impact

The transferOwnership function in the Panoptic Factory contract allows for a one-step transfer of ownership without any additional checks or confirmation steps.

This design allows the current owner of the Panoptic Factory to directly transfer ownership to a new address without any confirmation or authorization from the new owner. It can lead to unauthorized ownership transfers and potential loss of control over the contract.

Proof of Concept

Exploit:

Recommended Mitigation Steps

Assessed type

Other

c4-judge commented 5 months ago

Picodes marked the issue as unsatisfactory: Insufficient proof