The removeAuthorizedSablierSender function contains a logical error that can lead to silent failures when attempting to remove an unauthorized Sablier sender address.
The function checks if the address is authorized before attempting to remove it. If the address is not currently authorized (i.e., authorizedSablierSenders[_address] is already false), the function will do nothing and exit silently. This behavior can lead to false assumptions about the function's success and potential confusion in contract management.
For instance:
Call removeAuthorizedSablierSender with an address that is not currently authorized
Observe that the function completes successfully without making any state changes
Silent failures in contract management operations. There is potential security risks if an address is assumed to be unauthorized when it isn't.
Manual review
Modify the function to revert if the address is not an authorized Sablier sender.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.