#37 Escape username and password during u2f login

Merged
spaghetti merged 1 commits from ThisIs_MyName/Gazelle:u2f-fix-1 into master 7 years ago

+ 2
- 2
sections/login/u2f.php View File

13
 View::show_header('U2F Authentication'); ?>
13
 View::show_header('U2F Authentication'); ?>
14
 
14
 
15
 <form id="u2f_sign_form" action="login.php" method="post">
15
 <form id="u2f_sign_form" action="login.php" method="post">
16
-  <input type="hidden" name="username" value="<?=$_POST['username']?>">
17
-  <input type="hidden" name="password" value="<?=$_POST['password']?>">
16
+  <input type="hidden" name="username" value="<?=htmlspecialchars($_POST['username'])?>">
17
+  <input type="hidden" name="password" value="<?=htmlspecialchars($_POST['password'])?>">
18
   <input type="hidden" name="u2f-request" value='<?=$U2FReq?>'>
18
   <input type="hidden" name="u2f-request" value='<?=$U2FReq?>'>
19
   <input type="hidden" name="u2f-response">
19
   <input type="hidden" name="u2f-response">
20
 </form>
20
 </form>

Loading…
Cancel
Save