by blub · 6y ago · 0 comments
What security issues have been recently solved by programming languages?
Things like unsafe memory usage are an anomaly. Most other security issues can't even be represented at the PL level.
The cost in those cases is performance. The cost is offset massively by productivity.
It's less about direct costs and more about constraints and priorities.
Imagine you tasked two rooms of 100 jr devs to query a database, one with EF, one with ADO.NET. Do you honestly think the same percentage of jr devs would have written code open to SQL injection?
string queryString = "SELECT ProductID, UnitPrice, ProductName from dbo.products " + $"WHERE ProductName = {userSuppliedName} " + "ORDER BY UnitPrice DESC;"; SqlCommand command = new SqlCommand(queryString, connection); SqlDataReader reader = command.ExecuteReader();
I've met a ton of devs who would write this code without thinking(some even with quite a few years of experience.)