Topic: "Russcom.Loginphp - sql injection, arbitrary file creation" (page 1 of 1)

1
Author Post
theblacksheep
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
linkhttp://russcom.net/

One way to reach your goal:

1. Register as a normal user
2. Login
3. Go to "profile" --> "Change password"
4. Enter your old password
5. Enter as the new password: whatever' WHERE Uname='nameoftheadminuser'/*

The login as "nameoftheadminuser" with the password "whatever".
Now you can go to "Admin CP" and you can edit the whole "main.php".
Maybe it is also possible to go there without changing the admin's password so that the whole attack would be more stealthy, but I haven't found a way.

tbs
private message EMail Website
theblacksheep
groupmastergroupmastergroupmastergroupmastergroupmastergroupmastergroupmaster
I also like there "ping"script:

--------------------------------------------------------
...
if($_GET['do'] == 'ping')
{
$_domain = $_POST['domain'];
echo "<pre>";
system ("ping -w 10 -c 5 $_domain");

echo "</pre>";
}
...
--------------------------------------------------------

tbs
private message EMail Website

Topic: "Russcom.Loginphp - sql injection, arbitrary file creation" (page 1 of 1)

1