Last active
May 27, 2016 09:35
-
-
Save mbrodala/1f8fa0e76846db53b5a1ab06ef90e9a4 to your computer and use it in GitHub Desktop.
TYPO3 Formhandler 2.0.x formToken XSS Patch, see https://github.com/reinhardfuehricht/typo3-formhandler/commit/1e878743b51e2e646be61e7ac6320c959c1e789c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/Classes/View/Tx_Formhandler_View_Form.php 2015-08-08 13:24:22.000000000 +0200 | |
+++ b/Classes/View/Tx_Formhandler_View_Form.php 2016-05-27 11:34:22.711437300 +0200 | |
@@ -526,7 +526,7 @@ | |
} | |
if($this->gp['formToken']) { | |
$markers['###HIDDEN_FIELDS###'] .= ' | |
- <input type="hidden" name="' . $name . '" value="' . $this->gp['formToken'] . '" /> | |
+ <input type="hidden" name="' . $name . '" value="' . htmlspecialchars($this->gp['formToken']) . '" /> | |
'; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment