Actions
Feature #12039
openMissing htmlSpecialChar() in pre processing on form submit
Start date:
18.02.2021
Due date:
% Done:
0%
Estimated time:
Discuss:
Prio Planung:
Vote:
Description
Wird auf Formularelemente mittels '{{notiz:F:allbut}}' zugegriffen, sind dies VERMUTLICH nicht htmlSpecialChar kodiert.
- Check ob dem so ist.
Damit waere das folgende einem potentiellen SQL Inject Angriff ausgeliefert (notiz="1' OR 1")
sqlValidate = {{!SELECT n.notiz FROM notiz AS n WHERE n.gr_id={{gr_id:RS0}} AND n.category=0 AND n.file_typ="Uebung" AND n.notiz='{{notiz:F:allbut}}' AND n.id != {{id:R0}} }}
- Abhilfe koennte eine neue Escape Klasse sein, die bei Default beim STORE_FORM htmlSpecialChar() anwendet.
- Achtung: was passeirt wenn nicht mit single sondern mit double quotes im SQL Statement gearbeitet wird?
- In der QFQ Doc bei den Bestpractices angeben das immer mit single quotes gearbeitet werden soll.
Related issues
Updated by Carsten Rose almost 3 years ago
- Tracker changed from Support to Feature
Updated by Carsten Rose over 1 year ago
- Related to Feature #14320: Allow specific HTML Tags and Attributes: general, TinyMCE added
Actions