Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 946 Bytes

lack-of-checks-if-one-entity-get-hacked.md

File metadata and controls

15 lines (9 loc) · 946 Bytes
description
Submitted by (3) 0xA5DF, also found by Lambda and sseefried

Lack of checks if one entity get hacked

Summary:

https://code4rena.com/reports/2022-08-rigor/#m-06-attacker-can-drain-all-the-projects-within-minutes-if-admin-account-has-been-exposed

In case where the admin wallet has been hacked, the attacker can drain all funds out of the project within minutes. All the attacker needs is the admin to sign a single meta/normal tx. Even though the likelihood of the admin wallet being hacked might be low, the impact is critical.

Mitigation:

Consider removing the meta tx for HomeFi onlyAdmin modifier (i.e. usg msg.sender instead of _msgSender()), given that it’s not going to be used that often it may be worth giving up the comfort for hardening security