News for hackers. Stuff that matters.
Re:How can you be fooled by the U+202E trick? (2013) by kazinator on Wednesday February 16, 2022 @08:04PM (#30368285)
> if you have to properly escape parameters in SQL to avoid injection attacks, SQL shouldn't exit in the first place!"

Yes, this aspect of SQL is poorly conceived because the only way is to manipulate it with text processing.

Parameters should be inserted into a query language using AST manipulation, like a Lisp backquote.

Now within a particular program, we can wrap something like that around SQL generation, and solve the escaping problems in one place.

That approach doesn't apply to character data, which has to be literal and primitive in many situations.

There are no comments on this comment yet.