You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the current changes and migration of #[IsGranted] from FrameworkExtraBundle in #44705 and with security in mind, having "bad/invalid credentials" message as Access Denied by #[IsGranted(%s)] on controller is all against any security policy. With this message, you're exposing your roles to the potential attacker that are required to access on specific route.
Because of that, I'm proposing/suggesting to change this default message as it was before (in FrameworkExtraBundle - which is generic one), Access Denied.
Example
No response
The text was updated successfully, but these errors were encountered:
Exception rendering is not done by the listener. AFAIK, we don't display any messages unless the app runs in debug mode.
Just give your report a try :)
Description
With the current changes and migration of
#[IsGranted]
from FrameworkExtraBundle in #44705 and with security in mind, having "bad/invalid credentials" message asAccess Denied by #[IsGranted(%s)] on controller
is all against any security policy. With this message, you're exposing your roles to the potential attacker that are required to access on specific route.Because of that, I'm proposing/suggesting to change this default message as it was before (in FrameworkExtraBundle - which is generic one),
Access Denied
.Example
No response
The text was updated successfully, but these errors were encountered: