Re: Security issues

From: Date: Wed, 14 Jan 2004 14:55:12 +0000
Subject: Re: Security issues
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-174552@lists.php.net to get a copy of this message
On Wed, 2004-01-14 at 13:32, Chris W wrote: > Are there many php or mysql configuration considerations for making the > site secure? I have already done the obvious with my sql and set up the > grant tables with passwords for all users and removed the anonymous@% user. Give the MySQL user you're using only the minimum permissions. I doubt your web app will need to ALTER table structures for example. I like to use privilege separation. In my code I have different MySQL users with different permission. One might have read-write access (SELECT, INSERT, UPDATE etc.) and another has read-only. I then use these users appropriately throughout my code. For example, a script that searches a table uses the read-only user. Then no matter how clever the attacker is, they won't be able to DELETE all my data by exploiting that code. John. -- GPG: B89C D450 5B2C 74D8 58FB A360 9B06 B5C2 26F0 3047 URL: http://www.johnleach.co.uk

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
« previous php.general (#174552) next »