Closed code423n4 closed 2 years ago
https://github.com/code-423n4/2022-03-lifinance/blob/main/src/Libraries/LibDiamond.sol
To give more trust to users: functions that set key/critical variables should be put behind a timelock.
https://github.com/code-423n4/2022-03-lifinance/blob/699c2305fcfb6fe8862b75b26d1d8a2f46a551e6/src/Facets/DiamondCutFacet.sol#L20
Remix
Add a timelock to setter functions of key/critical variables.
Duplicate of #65
Lines of code
https://github.com/code-423n4/2022-03-lifinance/blob/main/src/Libraries/LibDiamond.sol
Vulnerability details
Impact
To give more trust to users: functions that set key/critical variables should be put behind a timelock.
Proof of Concept
https://github.com/code-423n4/2022-03-lifinance/blob/699c2305fcfb6fe8862b75b26d1d8a2f46a551e6/src/Facets/DiamondCutFacet.sol#L20
Tools Used
Remix
Recommended Mitigation Steps
Add a timelock to setter functions of key/critical variables.