code-423n4 / 2021-12-perennial-findings

0 stars 0 forks source link

Improper Upper Bound Definition on the Fee #45

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

defsec

Vulnerability details

Impact

In the updateFee function on line 158 of "https://github.com/code-423n4/2021-12-perennial/blob/fd7c38823833a51ae0c6ae3856a3d93a7309c0e4/protocol/contracts/factory/Factory.sol", updateFee function does not have any upper or lower bounds. Values that are too large will lead to reversions in several critical functions.

Proof of Concept

Tools Used

None

Recommended Mitigation Steps

Consider to define upper and lower bounds on the adjustGlobalParams function.

kbrizzle commented 2 years ago

Duplicate of: https://github.com/code-423n4/2021-12-perennial-findings/issues/50

GalloDaSballo commented 2 years ago

Duplicate of: #50