Missing Input Validation in Stratax::recoverTokens Allows Invalid Parameters
Description:
Stratax::recoverTokens does not validate the inputs _token and _amount:
This allows:
_token == address(0) (will revert or behave unexpectedly)
_amount == 0 (no-op calls that may hide operator mistakes)
Impact:
Low. This is mainly an operational robustness issue that can lead to misconfiguration calls and confusing behavior during emergency recovery.
Recommended Mitigation:
Add basic parameter checks:
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.
The contest is complete and the rewards are being distributed.