News for hackers. Stuff that matters.
Re:It’s time to kill the web app by cm2187 on Sunday September 24, 2017 @02:36AM (#15323591)
SQL injection is a problem with incompetent developpers. Most languages have simple constructs to make them immune to injections, like parameterized queries.

If you are exposing code to an untrusted, hostile environment (which is pretty much the web), no language that does anything useful will protect you against not caring about security.

Re:It’s time to kill the web app by DaiPlusPlus on Sunday September 24, 2017 @10:06AM (#15324742)
Not all queries can be parameterised - I'm not aware of any DBMS that allows for the parametiersation of identifiers (e.g. table and column names) or variadic operators and clauses (e.g. IN() and optional predicate clauses), this is why "Dynamic SQL" is a thing - which comes with the inherent risk of SQL Injection.
Re:It’s time to kill the web app by cm2187 on Sunday September 24, 2017 @10:45AM (#15324897)
There are many reasons to create SQL dynamically, but I can't think of a good reason for the table name to come from the client.

Even if you absolutely need to inject a string in a sql query, sanitizing it is trivial. In .net / MS SQL, a simple x = x.Replace("'","''") does the trick. For any other common data type, strong typing should be sufficient to prevent any injection.