by taeric · 4y ago · 0 comments
But there is no reason that couldn't be made one of the things that can't be included as a literal. Is there?
Similarly, removing primitives would probably solve a lot of injection use cases, but if someone does something insane like inject DESC into their query, it's over.
Because SQL is so powerful it's really just up to the libraries to try to help where they can, we'll never truly be rid of injection vulns as they're fundamental to any program that treats data as code.
Fundamentally the problem is with any kind of dynamic query construction. It’s very hard to make this secure and general purpose.