Skip to content

Commit

Permalink
fixed xss on login page (#14975)
Browse files Browse the repository at this point in the history
  • Loading branch information
Corepex committed Apr 20, 2023
1 parent 3b50ac0 commit 66f1089
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bundles/AdminBundle/Controller/Admin/LoginController.php
Expand Up @@ -29,6 +29,7 @@
use Pimcore\Http\ResponseHelper;
use Pimcore\Logger;
use Pimcore\Model\User;
use Pimcore\Security\SecurityHelper;
use Pimcore\Tool;
use Pimcore\Tool\Authentication;
use Symfony\Component\HttpFoundation\RedirectResponse;
Expand Down Expand Up @@ -114,7 +115,7 @@ public function loginAction(Request $request, CsrfProtectionHandler $csrfProtect
$params['csrfTokenRefreshInterval'] = ((int)$session_gc_maxlifetime - 60) * 1000;

if ($request->get('too_many_attempts')) {
$params['error'] = $request->get('too_many_attempts');
$params['error'] = SecurityHelper::convertHtmlSpecialChars($request->get('too_many_attempts'));
}
if ($request->get('auth_failed')) {
$params['error'] = 'error_auth_failed';
Expand Down

0 comments on commit 66f1089

Please sign in to comment.