in reply to Input Validation and pattern matching in Template Toolkit
I think your approach of trying to filter out common known attacks will be a constant battle. Instead of attempting that, why don't you simply HTML-filter attack? Usernames should not contain (or be interpolated as) HTML. See for example homoglyph attacks like tye&nbsbp; which really, really looks like tye but with whitespace at the end.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Input Validation for Template Toolkit
by dipit (Sexton) on Jun 20, 2018 at 09:40 UTC | |
by Corion (Patriarch) on Jun 20, 2018 at 10:32 UTC |