Cross-Contract Reentrancy Risk
Cross-Contract Reentrancy Risk is a vulnerability that occurs when an attacker exploits interactions between multiple distinct smart contracts. Unlike standard reentrancy which involves a single contract calling itself, this risk arises when a contract relies on the state of another contract that can be manipulated during a transaction.
If the target contract does not properly isolate its state or lacks sufficient protection, the attacker can force the first contract to make decisions based on stale or incorrect data. This is particularly prevalent in complex decentralized finance ecosystems where protocols are highly composable.
It requires developers to consider the security posture of all integrated protocols. Mitigating this risk involves implementing rigorous cross-contract validation and ensuring that state dependencies are handled atomically.
It represents a higher level of complexity in smart contract security, necessitating comprehensive system-wide audits.