Forum Moderators: coopster

Message Too Old, No Replies

MySQL security issue with LOAD DATA INFILE

         

mgm_03

6:26 pm on Jul 20, 2005 (gmt 0)

10+ Year Member



I was told by an expert that there are serious security issues with using LOAD DATA INFILE. He runs a hosting company and has FILE privileges disabled.

Can anyone elaborate more on this?

SeanW

6:46 pm on Jul 20, 2005 (gmt 0)

10+ Year Member



Have a look at

[dev.mysql.com...]

If the mysql server is not supposed to allow logins, then this command will let a user read files that they normally shouldn't.

Sean

coopster

7:05 pm on Jul 20, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



It depends on who the web server is running as and how the MySQL database server is setup and who the database server is running as. LOAD DATA LOCAL has some potential security issues but you would have to ask your friend to explain himself beyond that.

Security Issues with LOAD DATA LOCAL [dev.mysql.com]