Reply to Re: if I allow anyone on the web to run SQL queries against my database, what are the obvious attacks hackers will try?

Your name:

Reply:


Posted by lawrence k on 04/15/06 02:50

fletch wrote:
> DOS is simple enough
>
> select * from table1,table2,...tableN
>
> Will cause a cross product to be calculated.If each of three tables has
> 10 rows, the query above will return 10^3=1000 rows.

Right. That leads me into making rules, which is discouraging. I can
see the complexity of the rules rapidly expanding and me still missing
most of the important possible attacks.



> MySQL has good permissions, you could connect to the db as a different
> user and with only a limited set of permissions.

I like that idea. Do you have suggestions of what would constitute a
minimal set of permissions that would still enable outsiders to make
queries that I can think of?



> What about functions?
>
> select LOAD_FILE('/etc/passwd');'

I've added a lot of the functions to the forbidden list, I'll probably
end up banning 99% of them.


Or maybe I'll just put all the data in an XML file. This seems,
otherwise, too hard.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация