It's 2019 and PHP is *still* teaching people to concatenate SQL and vaguely-sanitized user input instead of using prepared statements. http://php.net/manual/en/mysqli.examples-basic.php … They got rid of the mysql module... only to teach people to use mysqli the same way. This is why SQLi isn't going away.
-
-
I disagree a bit.. Little is preventing the language from evolving to a point at which the only types allowed in query strings are constants or explicitly-typed passthrough functions that make it clear to say "I know this is potentially unsafe".
-
XSS examples again, but: you want to emit raw HTML using <c:out> in JSTL? You have to set escapeXml="false". Want to do it in React? You have to type "dangerouslySetInnerHTML".
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.