Skip to content

Commit

Permalink
bug #4486 [security] XSS injection due to unescaped table comment
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Delisle <marc@infomarc.info>
  • Loading branch information
lem9 committed Jul 11, 2014
1 parent 9a79d87 commit 5747537
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -11,6 +11,7 @@ phpMyAdmin - ChangeLog
- bug #4485 Sorting breaks the copy column feature
- bug #4440 Javascript error when renaming table
- bug #4483 'New window' link (selflink) disappears, causing Javascript error
- bug #4486 [security] XSS injection due to unescaped table comment

4.2.5.0 (2014-06-26)
- bug #4467 shell_exec() has been disabled for security reasons
Expand Down
3 changes: 2 additions & 1 deletion libraries/structure.lib.php
Expand Up @@ -53,7 +53,8 @@ function PMA_getHtmlForActionLinks($current_table, $table_is_view, $tbl_url_quer
$search_table .= '</a>';

$browse_table_label = '<a href="sql.php?' . $tbl_url_query
. '&amp;pos=0" title="' . $current_table['TABLE_COMMENT'] . '">'
. '&amp;pos=0" title="'
. htmlspecialchars($current_table['TABLE_COMMENT']) . '">'
. $truename . '</a>';

if (!$db_is_system_schema) {
Expand Down

0 comments on commit 5747537

Please sign in to comment.