#46534 [SC-Insight] Missing Validation to Prevent Self-Assignment of Work Address
Description
Brief/Intro
Issue Details
function setWorkAddress(address _ownerWorkAddress)
external
{
require(isWhitelisted(msg.sender), "agent not whitelisted");
require(_ownerWorkAddress == address(0) || workToMgmtAddress[_ownerWorkAddress] == address(0),
"work address in use");
// Missing: require(_ownerWorkAddress != msg.sender, "Work address cannot be management address");
// rest of function logic...
}Impact Details
References
Proof of Concept
Proof of Concept
Mitigation
Previous#46520 [SC-Low] ETH loss on `selfCloseExitTo` when redeeming to collateralNext#46541 [SC-High] Historical Payment Transaction Exploitation Leading to Instant Agent Liquidation
Was this helpful?