Earlier quoted context omitted.
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...
You should never assume that your framework of choice does everything for you. This is by all means no shot at Django, but just in general, always assume what you are working with is insecure and full of bugs - and then account for that - if your framework/programming language of choice accounts for additional things - great.
How not to protect against SQL injection (view source)
81–90 of 125 posts
Re: How not to protect against SQL injection (view source)
#82Re: How not to protect against SQL injection (view source)
#83Earlier quoted context omitted.
If you're lucky, you aren't in the UK so they won't be able to arrest you instantly on the hacking charges. If you're very lucky, the place you are in won't honor their demands for extradition on the hacking charges.
No offense, but I think you're a tad paranoid. If I was a mechanic and I saw someone at a gasstation driving a car that was obviously dangerous because of some kind of bad fixup I would tell him. This is no different, and I don't expect anyone to sue me for that. Here's the mail I sent: Hi there, It appears that you have some pretty severe security problems on your site. This is a heads up so you can get it fixed. I…
Re: How not to protect against SQL injection (view source)
#84http://news.ycombinator.com/item?id=2370022 (CEO Friday: Why we don’t hire .NET programmers) Would an open source programmer do something like this?
Re: How not to protect against SQL injection (view source)
#85http://news.ycombinator.com/item?id=2370022 (CEO Friday: Why we don’t hire .NET programmers) Would an open source programmer do something like this?
Re: How not to protect against SQL injection (view source)
#86Earlier quoted context omitted.
it's just that every language makes it so difficult to use prepared statements Huh? Most web frameworks use ORMs and discourage you from touching SQL at all.
Which is great until you discover that your needs can't be fulfilled by the ORM and you need/have to use SQL.
Re: How not to protect against SQL injection (view source)
#87Re: How not to protect against SQL injection (view source)
#88Since 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.
Heh. One of the best protections against SQL injection is not to grant those privileges to the db account from the webserver. So many sites could protect themselves at the least from data loss by using the built in tools. Also, I've worked on projects where the only way to change a table is via a stored proc, no select access on the tables, no SQL injection. Or at least you'll have to figure out a way to to the injec…
Of course, this does not eliminate the need for solid code-based prevention of injections...
Re: How not to protect against SQL injection (view source)
#89Re: How not to protect against SQL injection (view source)
#90So for those of use who know nothing about websites: what is the correct way to protect against SQL injection?