How not to protect against SQL injection (view source)
61–70 of 125 posts
Re: How not to protect against SQL injection (view source)
#62I have a feeling that this site won't be up much longer after making front page of HN, and it will have nothing to do with server load.
Re: How not to protect against SQL injection (view source)
#63My take on this is that the scriptwriter's goal was not to stop SQL injection attacks but rather prevent regular users from inadvertently screwing with the database. Looking at it that way makes it a much more understandable (and all-too-common, unfortunately) oversight.
It's not like you can't store semi-colons in an SQL database :)
Re: How not to protect against SQL injection (view source)
#64Earlier quoted context omitted.
I wrote an iPhone app with a sqlite backend that was vulnerable to SQLi. Don't think you aren't vulnerable even if your application doesn't touch the internet.
Sorry, I just don't do any apps that touch the internet...just some programming for fun on the side. The only thing that I've written that could be applied to this is our POS system at the restaurant I work at as a dishwasher and cleaner for. It's in Django though, and the Django project takes care of most issues with that...not that they're really priority #1 security-wise...
Re: How not to protect against SQL injection (view source)
#65Re: How not to protect against SQL injection (view source)
#66Re: How not to protect against SQL injection (view source)
#67Re: How not to protect against SQL injection (view source)
#68Re: How not to protect against SQL injection (view source)
#69Would an open source programmer do something like this?
Re: How not to protect against SQL injection (view source)
#70Since they're using SQL Server (hint is that they are checking for "xp_"), you can get a list of all of their databases with "SELECT name FROM sys.databases", then loop through and drop them. Hope the web login doesn't have drop permissions.