Skip to content

Commit

Permalink
[security] Fix self-XSS in setup, trusted proxies validation, see PMA…
Browse files Browse the repository at this point in the history
…SA-2013-9
  • Loading branch information
mynetx committed Jul 7, 2013
1 parent d096a0f commit e0d8568
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -4,6 +4,7 @@ phpMyAdmin - ChangeLog
4.0.4.2 (not released yet)
- [security] Fix stored XSS in Server status monitor, see PMASA-2013-9
- [security] Fix stored XSS in navigation panel logo link, see PMASA-2013-9
- [security] Fix self-XSS in setup, trusted proxies validation, see PMASA-2013-9

4.0.4.1 (2013-06-30)
- [security] Global variables scope injection vulnerability (see PMASA-2013-7)
Expand Down
2 changes: 1 addition & 1 deletion libraries/config/validate.lib.php
Expand Up @@ -432,7 +432,7 @@ function validate_trusted_proxies($path, $values)
$matches = array();
// we catch anything that may (or may not) be an IP
if (!preg_match("/^(.+):(?:[ ]?)\\w+$/", $line, $matches)) {
$result[$path][] = __('Incorrect value') . ': ' . $line;
$result[$path][] = __('Incorrect value') . ': ' . htmlspecialchars($line);
continue;
}
// now let's check whether we really have an IP address
Expand Down

0 comments on commit e0d8568

Please sign in to comment.