49915 sc low misleading event emission in createwhitelistrestrictions function in restrictionsfactory contract
Description
Brief/Intro
Vulnerability Details
function createWhitelistRestrictions(address admin) external returns (address) {
// Actual admin logic: use provided admin or fallback to msg.sender
bytes memory initData = abi.encodeWithSelector(
WhitelistRestrictions.initialize.selector,
admin != address(0) ? admin : msg.sender
);
address proxy = _deployProxy(address(implementation), initData);
// Always emits msg.sender as owner, not the actual admin!
emit RestrictionsCreated(proxy, msg.sender, address(implementation), "Whitelist");
}Impact Details
References
Proof of Concept
Previous51776 sc low streak system breaks despite timely user action due to delayed supra oracle callbackNext50436 sc low votetoslashvalidator prevents malicious inactive validators to be slashed
Was this helpful?