The FjordStaking::addAuthorizedSablierSender sets an address as an authorized sablier sender.
The FjordStaking::addAuthorizedSablierSender lacks address(0) check such that any address can be set as an authorized sablier sender. This implies that even address(0) can be set as an authorized salier sender as seen below and demonstrated in the Proof of Code.
Here is the link to the above code snippet https://github.com/Cyfrin/2024-08-fjord/blob/0312fa9dca29fa7ed9fc432fdcd05545b736575d/src/FjordStaking.sol#L357-L359
Because of the missing address(0) check, the address(0) can be set as an authorized sablier sender.
Manual Review
Foundry
Proof of Concept:
Call the FjordStaking::addAuthorizedSablierSender function parsing address(0) as the argument
check if address(0) is an authorized sablier sender to confirm that this is indeed true.
Run the following command: forge test --match-test test_CanSetAddress0AsAuthorizedSablierSender
Output:
Add a zero address check to the FjordStaking::addAuthorizedSablierSender function as follows:
This way, the address(0) can not be set as 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.