Skip to content

Commit

Permalink
Fixed bug #15733: Admin Panel is susceptible to XSS (thanks to Helmut…
Browse files Browse the repository at this point in the history
… Hummel)

git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-2@8973 709f56b5-9817-0410-a4d7-c38de5d9e867
  • Loading branch information
ohader committed Oct 6, 2010
1 parent 031e524 commit 893ca75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Fixed bug #15461: RemoveXSS exposes XSS vulnerability for double encoded characters (thanks to Marcus Krause)
* Fixed bug #15728: Extension Manager allows to download arbitrary files beyond PATH_site or rootpath (thanks to Marcus Krause)
* Fixed bug #15729: Sysext setup's user simulation is susceptible to XSS (thanks to Marcus Krause)
* Fixed bug #15733: Admin Panel is susceptible to XSS (thanks to Helmut Hummel)

2010-09-24 Steffen Gebert <steffen@steffen-gebert.de>

Expand Down
4 changes: 2 additions & 2 deletions t3lib/class.t3lib_tsfebeuserauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function extPrintFeAdminDialog() {
if (is_array($v)) {
$query.= $this->extPrintFeAdminDialogHiddenFields($k,$v);
} else {
$query.= '<input type="hidden" name="'.$k.'" value="'.htmlspecialchars($v).'">'.chr(10);
$query .= '<input type="hidden" name="' . htmlspecialchars($k) . '" value="' . htmlspecialchars($v) . '">' . chr(10);
}
}
}
Expand Down Expand Up @@ -253,7 +253,7 @@ function extPrintFeAdminDialogHiddenFields($key,&$val) {
if (is_array($v)) {
$out.= $this->extPrintFeAdminDialogHiddenFields($key.'['.$k.']',$v);
} else {
$out.= '<input type="hidden" name="'.$key.'['.$k.']" value="'.htmlspecialchars($v).'">'.chr(10);
$out.= '<input type="hidden" name="' . htmlspecialchars($key) . '[' . htmlspecialchars($k) . ']" value="' . htmlspecialchars($v) . '">' . chr(10);
}
}
return $out;
Expand Down

0 comments on commit 893ca75

Please sign in to comment.