executeOperation is the Aave flash loan callback. It validates that the caller is the Aave Pool and that the initiator is this contract, but it does not validate _amount, _premium, or _params.
Under normal operation, Aave passes correct values and the contract encodes _params correctly. However, the lack of input validation violates defense-in-depth and could lead to confusing failures if Aave interface changes, encoding bugs occur, or upgrades introduce errors.
Likelihood:
Aave is trusted and the callback is only reachable from the Aave Pool.
_params is encoded by this contract when initiating the flash loan.
Invalid values would likely cause reverts in downstream logic rather than silent misuse.
Impact:
Malformed or unexpected inputs could cause confusing reverts instead of clear, early failures.
No protection against future Aave interface changes or encoding bugs.
Inconsistent with other entry points that validate inputs.
Severity: Low (best practice / defense-in-depth)
Location: src/Stratax.sol:209-214
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.