Re:Compile Time Prevention of SQL-Injections in Rust
by alexandernst on Tuesday May 22, 2018 @09:08AM
(#17125621)
SQL Inject is not only a ' character. SQL Inject could be a blind query, subselect attack, time attack and so on and so on. This completely fails to prevent pretty much anything except the very naive and silly attacks.
[ Parent
| on HN ]
Re:Compile Time Prevention of SQL-Injections in Rust
by CiPHPerCoder on Tuesday May 22, 2018 @09:39AM
(#17125816)
No it doesn't.
The argument isn't "block ' characters to stop SQL injection" it's "force the developer to use prepared statements and no dynamically constructed queries".
Re:Compile Time Prevention of SQL-Injections in Rust
by coldtea on Tuesday May 22, 2018 @09:44AM
(#17125858)
First, no, it prevents much more attacks.
Second, the naive and silly attacks are the default definition of SQL injection -- and the most commonly found holes, so even if it just prevented those that would be still a huge help. Nothing statically ensures that at runtime except the programmer's due diligence.