#47091 [SC-Insight] `setWorkAddress()` enables front-running attacks to hijack work addresses
Description
Description
function setWorkAddress(address _ownerWorkAddress) external {
require(isWhitelisted(msg.sender),
"agent not whitelisted");
require(_ownerWorkAddress == address(0) || workToMgmtAddress[_ownerWorkAddress] == address(0),
"work address in use");
// ...
}Impact Details
Recommendations
Proof of Concept
Proof of Concept
Previous#47087 [SC-Insight] CollateralTypesFacet.sol::deprecateCollateralType allows to break CollateralTypes.sol::initialize invariant because it allows to deprecate all token collateral vaults leading to ...Next#47106 [SC-Low] Collateral Reservation Fee distribution uses current poolFeeShareBips instead of value stored during during time of collateral reservation
Was this helpful?