3 ms·
XSS is unavoidable if you think the solution is sanitizing user input. The solution to sql injection is parametrized query construction, instead of automatical
by tinus_hn 10y ago
XSS is unavoidable if you think the solution is sanitizing user input.
The solution to sql injection is parametrized query construction, instead of automatically filtering the ' character and then pasting the template and the user input together.
Similarly, to avoid cross site scripting you have to combine your templates and user input by escaping it properly, instead of just concatenating them and then hoping you can avoid the issues by input 'sanitizing'.
- deleted 10y ago[deleted]