You could access to the return page in front office even if this feature is not enable.
Return page should not be avalaible if Enable returns is set to no
Steps to reproduce the behavior:
This page should return a 404 error.
Screenshots

Thanks for opening this issue! We will help you to keep its state consistent
Hello @clotaire202, thank you for this improvement idea! Let's wait for a PM to study it. :-)
It's a security issue too.
Okay, thanks @clotaire202, perhaps I should classify this issue as a critical bug then? @PrestaShop/prestashop-core-developers, could you please have a look at it?
@LouiseBonnard indeed a it's a bug that needs to be fixed, I'm not sure it's this complicated either Ideally it just requires to check the feature is enable in a controller and redirect to a 404 if needed
@clotaire202 I'm not sure there is such a threat from a security point of view since user shouldn't be able to access critical information anyway, but maybe I'm minimizing the problem
If there's a security threat it should be fixed in 1.7.7, else it will be fixed in 1.7.8 @PierreRambaud what's you opinion regarding the security problem?
We are agree that there is an issue and that's probably not critical. Access to a none authorized page without possibility to exploit something... We wait for the security guru to know the severity level.
I've just added the PR to fix it in case it should be fixed quickly.
@PierreRambaud If it's ok for you, the PR can go to the QA Hands ;)
This one needs to target the 1.7.7.x branch. As it says, seeing an unauthorized page is a security issue. Even if it's minor.
Thanks @PierreRambaud
Fixed by #19395
Most helpful comment
@LouiseBonnard indeed a it's a bug that needs to be fixed, I'm not sure it's this complicated either Ideally it just requires to check the feature is enable in a controller and redirect to a 404 if needed
@clotaire202 I'm not sure there is such a threat from a security point of view since user shouldn't be able to access critical information anyway, but maybe I'm minimizing the problem
If there's a security threat it should be fixed in 1.7.7, else it will be fixed in 1.7.8 @PierreRambaud what's you opinion regarding the security problem?