Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing event for critical operation of new Collateral locker creation in CollateralLockerFactory.sol #28

Open
code423n4 opened this issue Apr 19, 2021 · 1 comment
Labels
1 (Low Risk) bug Something isn't working duplicate This issue or pull request already exists

Comments

@code423n4
Copy link
Contributor

Handle

0xRajeev

Vulnerability details

Impact

Lockers are critical contracts that hold custody of different Maple assets. While there are five lockers created initially (as described in https://github.com/maple-labs/maple-core/wiki/Lockers), such new lockers created by the factory should be logged as events for off-chain monitoring, similar to whats done in StakeLocker. However, such an event emission is missing here.

Proof of Concept

https://github.com/maple-labs/maple-core/blob/355141befa89c7623150a83b7d56a5f5820819e9/contracts/CollateralLockerFactory.sol#L21-L26

Tools Used

Manual Analysis

Recommended Mitigation Steps

Create and emit a suitable event to log locker creation.

@code423n4 code423n4 added 1 (Low Risk) bug Something isn't working labels Apr 19, 2021
code423n4 added a commit that referenced this issue Apr 19, 2021
@lucas-manuel lucas-manuel added the duplicate This issue or pull request already exists label Apr 22, 2021
@lucas-manuel
Copy link
Collaborator

Duplicate of #27

@lucas-manuel lucas-manuel marked this as a duplicate of #27 Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 (Low Risk) bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants