Task #69062
closed
Properly escape all form attributes in SetupModuleController
Added by Frans Saris over 9 years ago.
Updated about 6 years ago.
Sprint Focus:
On Location Sprint
Description
Some form tag attributes are directly fetched from configuration without being escaped by htmlspecialchars().
For instance:
$class = $config['class'];
if ($type !== 'check') {
$class .= ' form-control';
}
$style = $config['style'];
if ($class) {
$more .= ' class="' . $class . '"';
}
...
$html = '<input id="field_' . $fieldName . '"
type="' . $type . '"
name="data' . $dataAdd . '[' . $fieldName . ']" ' .
$noAutocomplete .
'value="' . htmlspecialchars($value) . '" ' .
$more .
' />';
See also: https://review.typo3.org/#/c/41780/13/typo3/sysext/setup/Classes/Controller/SetupModuleController.php
We need to make sure all added attributes are properly escaped.
- Description updated (diff)
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42643
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42643
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42643
- Assignee set to Stefan Neufeind
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Under Review
- Sprint Focus set to On Location Sprint
- Status changed from Under Review to Resolved
- Status changed from Resolved to Closed
Also available in: Atom
PDF