code-423n4 / 2021-04-maple-findings

0 stars 0 forks source link

Missing event for critical operation of setAdmin change in Loan.sol #33

Open code423n4 opened 3 years ago

code423n4 commented 3 years ago

Handle

0xRajeev

Vulnerability details

Impact

An admin of a Loan can pause/unpause the fundLoan operation along with the borrower. This critical operation of admin status change in setAdmin function should be logged as an event for off-chain monitoring. However, such an event emission is missing here.

Proof of Concept

https://github.com/maple-labs/maple-core/blob/355141befa89c7623150a83b7d56a5f5820819e9/contracts/Loan.sol#L409-L413

Tools Used

Manual Analysis

Recommended Mitigation Steps

Create and emit a suitable event to log admin status change in setAdmin function.

lucas-manuel commented 3 years ago

Informational, will address