code-423n4 / 2024-07-reserve-validation

0 stars 0 forks source link

Systemic Vulnerability Due to Rigid Asset Dependency in AssetRegistry #261

Closed c4-bot-3 closed 1 month ago

c4-bot-3 commented 1 month ago

Lines of code

https://github.com/code-423n4/2024-07-reserve/blob/3f133997e186465f4904553b0f8e86ecb7bbacbf/contracts/p1/AssetRegistry.sol#L58-L70

Vulnerability details

Vulnerability Description

The AssetRegistry contract lacks robust mechanisms to handle scenarios where registered collateral assets become compromised or malfunction. This vulnerability stems from the assumption that all registered assets will consistently behave as expected throughout their lifecycle. However, various events such as token upgrades, hacks, or contract self-destructs can invalidate this assumption, potentially leading to a system-wide failure.

The core of this vulnerability lies in three main areas:

Impact

Proof of Concept

Let's examine the vulnerable parts of the AssetRegistry contract in detail:

Recommended Mitigation Steps

Assessed type

Other