in the @notice documentation of the CapitalPool::approve function, it is require that only token manager can call this function, however there is no restriction in the body of the function that implements this requirement; this leaves free access to any user.
Any user can call the CapitalPool::approve function and approve any token for token manager.
Fuzz test
add this function in the test file and execute it. It will not revert as expected however, it is not a token manager that calls the approve function.
Add one require line of code in the CapitalPool::approve function as follows:
This is at most low severity, even though giving max approvals shouldn't be permisionless, the respective tokenManager address is retrieved from the TadleFactory contract whereby the trusted guardian role is responsible for deploying such contracts as seen [here](https://github.com/Cyfrin/2024-08-tadle/blob/04fd8634701697184a3f3a5558b41c109866e5f8/src/factory/TadleFactory.sol#L68). Since the user still has to go through the PreMarkets/DeliveryPlace contracts to perform market actions, this max approval cannot be exploited.
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.