You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Contract dev forgot to deploy a proxy before creating a borrow order.
Summary
DBOImplementation contract is Initializable and has a one time executableinitialize function instead of a constructor. DBOFactory has an unused implementationContract state variable which is expected to be used with proxy. But the DBOFactory.createBorrowOrder() function does not deploy a proxy when creating a new borrow order.
The text was updated successfully, but these errors were encountered:
sherlock-admin3
changed the title
Damp Fuchsia Bee - Contract dev forgot to deploy a proxy before creating a borrow order.
arman - Contract dev forgot to deploy a proxy before creating a borrow order.
Dec 12, 2024
arman
Medium
Contract dev forgot to deploy a proxy before creating a borrow order.
Summary
DBOImplementation contract is
Initializable
and has a one time executableinitialize
function instead of a constructor. DBOFactory has an unusedimplementationContract
state variable which is expected to be used with proxy. But the DBOFactory.createBorrowOrder() function does not deploy a proxy when creating a new borrow order.Root Cause
The DBOFactory.createBorrowOrder() function is as follows:
It does not deploy a proxy when creating a new borrow order.
Internal pre-conditions
N/A
External pre-conditions
N/A
Attack Path
N/A
Impact
Instead of deploying a proxy an instance of
DBOImplementation
will be created everytime someone creates an borrow order.PoC
No response
Mitigation
Replace
with
Inside the DBOFactory.createBorrowOrder() function.
The text was updated successfully, but these errors were encountered: