News for hackers. Stuff that matters.
Re:How boring should your team be by skeeter2020 on Saturday October 15, 2022 @10:08AM (#33214985)
> The old app that I wrote would happily take JavaScript or SQL snippets as inputs to any text field and do The Right Thing.

I can't be the only one here who is both skeptical and a little turned off by someone who says "You can stick any user input into a database query and you'll be fine", with a condesending pat on my head.

Your comments continue to be incredibly one-sided and biased. The summary is "My work was perfect and the new system a steaming pile". Perhaps this contributed to your replacement.

Re:How boring should your team be by RockingGoodNite on Saturday October 15, 2022 @10:56AM (#33215387)
> I can't be the only one here who is both skeptical and a little turned off by someone who says "You can stick any user input into a database query and you'll be fine", with a condesending pat on my head.

Like how Google has worked the past 2 decades? OP said snippets then you gloriously paraphrased it into a completely different statement.

Re:How boring should your team be by barrucadu on Saturday October 15, 2022 @01:04PM (#33216517)
That's what parameterised queries are for. SQL injection isn't hard to avoid.
Re:How boring should your team be by P5fRxh5kUvp2th on Saturday October 15, 2022 @11:09PM (#33220730)
Do you understand what SQL Injection is?

Fundamentally it's mixing data and executable code such that the DBMS cannot properly distinguish between the two and can inadvertently treat data as executable code.

Parameterize queries very explicitly tells the DBMS "this is executable code, and this over here is data". Nothing anyone puts in the data will ever be mistake as executable code by the DBMS. THIS IS SAFE.

Re:How boring should your team be by eurasiantiger on Monday October 17, 2022 @07:00AM (#33231909)
It is only safe for the SQL server. An injection attack could still be targeting a cache (to poison it with e.g. a malicious script), the browser (to steal data via XSS/CSRF) or the user (show an error message telling them to contact malicious number).
Re:How boring should your team be by P5fRxh5kUvp2th on Monday October 17, 2022 @08:38AM (#33232671)
What the person said

> "You can stick any user input into a database query and you'll be fine"

Besides which, pretend SQL Server is a glorified cache, the result is the same.