Sparkn

CodeFox Inc.
DeFiFoundryProxy
15,000 USDC
View results
Submission Details
Severity: low

Unsafe downcast may overflow

Summary

Unsafe downcast may overflow

Vulnerability Details

When a type is downcast to a smaller type, the higher order bits are truncated, effectively applying a modulo to the original value. Without any other checks, this wrapping will lead to unexpected behavior and bugs

Impact

File: src/ProxyFactory.sol
/// @audit uint256 -> uint160
228: proxy = address(uint160(uint256(hash)));

228

Tools Used

Personal bot

Recommendations

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.