$title
$content
= 4.2.4 | | ------------------------------------------------------------------------------------------------ | | Description | | ------------------------------------------------------------------------------------------------ | | The following script is used for displaying teamspeak information by users and allowing others | | to login to these servers and etc. | | | | It's most commonly used by teamspeak hosting companys which makes it kinda bad that this exists. | | | | ------------------------------------------------------------------------------------------------ | | Vulnerability | | ------------------------------------------------------------------------------------------------ | | Although the following script has multiple sql injections there is only one which we really... | | Found to be useful enough to include inside of the exploit code. | | | | So that is the only one that we will go into detail with below... | | | | If we go to login.php and view the line 20 | | | We see the following code... | | | | | | | | If you understand php you can see from this that the code is not properly sanatized before being.| | Put into the query and executed... The way it is currently would allow a remote attacker to... | | Add on SQL in order to preform a sql injection. | | | | ------------------------------------------------------------------------------------------------ | | FIX | | ------------------------------------------------------------------------------------------------ | | Take the code at login.php line 20 and make it the following... | | | | | | ------------------------------------------------------------------------------------------------ | | CREDITS | | ------------------------------------------------------------------------------------------------ | | The vulnerability was discovered remotely by DeadlyData and Kap of TheDefaced Security Team | | It was then looked at via source code and the script was fully audited to find it was more... | | Vulnerable then we had thought in total there are about 5 un sanatized user based inputs. | | | | Which may lead to more vulnerabilties such as other SQL injections or XSS flaws. | | ------------------------------------------------------------------------------------------------ | | EXPLOIT CODE... | | ------------------------------------------------------------------------------------------------ | | !NOTE!: Requires Magic Quotes GPC is set to off in your php.ini settings. | | | \__________________________________________________________________________________________________/ */ set_time_limit(0); ignore_user_abort(0); function add_html_space($count){ $out2 = str_repeat(" ",$count); return $out2; } function write_content($title,$desc,$content){ $out = "
$content