Skip to content

Commit

Permalink
Fix XSS in login form (bug #436)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Feb 7, 2015
1 parent 411d198 commit c990de3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions adminer/include/auth.inc.php
Expand Up @@ -114,8 +114,13 @@ function unset_permanent() {
cookie("adminer_permanent", implode(" ", $permanent));
}

/** Renders an error message and a login form
* @param string plain text
* @return null exits
*/
function auth_error($error) {
global $adminer, $has_token;
$error = h($error);
$session_name = session_name();
if (isset($_GET["username"])) {
header("HTTP/1.1 403 Forbidden"); // 401 requires sending WWW-Authenticate header
Expand Down
1 change: 1 addition & 0 deletions changes.txt
@@ -1,4 +1,5 @@
Adminer 4.2.0-dev:
Fix XSS in login form (bug #436)
Allow limiting number of displayed rows in SQL command
Fix reading routine column collations
Unlock session in alter database
Expand Down

0 comments on commit c990de3

Please sign in to comment.