Waraxe IT Security Portal  
  Login or Register
::  Home  ::  Search  ::  Your Account  ::  Forums  ::   Waraxe Advisories  ::  Tools  ::
May 25, 2012
Menu
 Home
 Logout
 Discussions
 Forums
 Members List
 IRC chat
 Tools
 Base64 coder
 MD5 hash
 CRC32 checksum
 ROT13 coder
 SHA-1 hash
 URL-decoder
 Sql Char Encoder
 Affiliates
 y3dips ITsec
 Md5 Cracker
 User Manuals
 AlbumNow
 Content
 Content
 Sections
 FAQ
 Top
 Info
 Feedback
 Recommend Us
 Search
 Journal
 Your Account



User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: jimysakura
New Today: 0
New Yesterday: 3
Overall: 8201

People Online:
Visitors: 232
Members: 1
Total: 233

Online Now:
01: risker - Forums
milw0rm
·[webapps / 0day] - appRain CMF Arbitrary PHP File Upload Vulnerability
·[local exploits] - OpenOffice OLE Importer DocumentSummaryInformatio n Stream Handling
·[local exploits] - Mod_Auth_OpenID Session Stealing Vulnerability
·[dos / poc] - Symantec End Point Protection 11.x & Symantec Network Access Control 11.x LCE
·[dos / poc] - Tftpd32 DHCP Serve 4.00 Denial Of Service
·[webapps / 0day] - Ajaxmint Gallery 1.0 Local File Inclusion
·[webapps / 0day] - RuubikCMS 1.1.0 Beta XSS / Disclosure / Directory Traversal
·[webapps / 0day] - Insight Creative Sql injection/Reflected XSS Vulnerabilties
·[webapps / 0day] - AFFY (index.php) Blind Sql Injection Vulnerability
·[webapps / 0day] - ezContents (1.x.x , 2.0.3) Blind injection/Reflected XSS Vulnerabilties

read more...
PacketStorm News
·Mandriva Linux Security Advisory 2012-080
·Red Hat Security Advisory 2012-0688-01
·Debian Security Advisory 2479-1
·Debian Security Advisory 2478-1
·Ubuntu Security Notice USN-1450-1
·Drupal BrowserID 7.x Cross Site Request Forgery
·Drupal Taxonomy List 6.x Cross Site Scripting
·Drupal Search API 7.x Cross Site Scripting
·Secunia Security Advisory 49200
·Secunia Security Advisory 49235

read more...
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Remote file inclusion -> php shell -> root
Post new topic  Reply to topic View previous topic :: View next topic 
php shell -> root
PostPosted: Wed Jun 13, 2007 8:11 pm Reply with quote
drag
Active user
Active user
 
Joined: May 31, 2007
Posts: 25




Is it possible to run local exploits within the r57 or c99 shell to escalate priveleges? Or do you need to be using an actual shell on the system?
View user's profile Send private message
Re: php shell -> root
PostPosted: Fri Jun 15, 2007 9:47 am Reply with quote
ToXiC
Moderator
Moderator
 
Joined: Dec 01, 2004
Posts: 181
Location: Cyprus




drag wrote:
Is it possible to run local exploits within the r57 or c99 shell to escalate priveleges? Or do you need to be using an actual shell on the system?


with php shells you have limited access to work only on tmp folders or on folders/files that are public.

To move futher on you need a binder (if you are able to install one) .. So to successfully compromise a system with c99 or r57 the system itself should be really stupitly configured.

but still .. maybe the system is patched and configured correctly .. but users that are on it leave the configuration.php or config.php or admin.php files on 777 r/w/e permition so everybody is able to read them ..

and if you move one step futher.. you can do something like this..

cat /etc/passwd

you got all the users on the site .. then write a small script that the only thing will do is.

cat /home/user1/configuration.php >> out.txt
cat /home/user2/configuration.php >> out.txt
cat /home/user3/configuration.php >> out.txt

cat /home/user1/config.php >> out.txt
cat /home/user2/config.php >> out.txt
cat /home/user3/config.php >> out.txt

(imagine having a server with more thatn 1000 sites on it.. NOT ALL THE USERS REMOVE 777 permition on those files)

after that download out.txt file and see what inside Smile

most probably a lot configuration files and a lot database names user/pass

.... then with c99 you can connect to the database and edit/or view the hash value of the admin..

.......( Then of course you call the owner of the site and you inform him to change the permitions ) Smile

Now ... With statistical results.. 3 out of 10 users use same password to cpanel/ssh/admin section of their web application (joomla/phpnuke/e107/etc etc)

Then is more likely to have an ssh password and if you want you can compromise the whole system easier with local exploits...


This is just a thought.. Its easier to exploit a users stupidity than a server's bug Smile

ToXiC

_________________
who|grep -i blonde|talk; cd~;wine;talk;touch;unzip;touch; strip;gasp;finger;gasp;mount; fsck; more; yes; gasp; umount; make clean; sleep;wakeup;goto http://www.md5this.com
View user's profile Send private message Visit poster's website MSN Messenger
PostPosted: Sat Jun 16, 2007 9:04 am Reply with quote
pexli
Valuable expert
Valuable expert
 
Joined: May 24, 2007
Posts: 663
Location: Bulgaria




ToXiC no need 777 perms on files to read him,604 enough to read this files witn owner nobody.
View user's profile Send private message
PostPosted: Sat Jun 16, 2007 12:55 pm Reply with quote
ToXiC
Moderator
Moderator
 
Joined: Dec 01, 2004
Posts: 181
Location: Cyprus




koko wrote:
ToXiC no need 777 perms on files to read him,604 enough to read this files witn owner nobody.


yes i was giving just an example..

_________________
who|grep -i blonde|talk; cd~;wine;talk;touch;unzip;touch; strip;gasp;finger;gasp;mount; fsck; more; yes; gasp; umount; make clean; sleep;wakeup;goto http://www.md5this.com
View user's profile Send private message Visit poster's website MSN Messenger
php shell -> root
  www.waraxe.us Forum Index -> Remote file inclusion
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Post new topic  Reply to topic  




Powered by phpBB © 2001-2008 phpBB Group






Game Hints
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2010 Janek Vind "waraxe"

Page Generation: 0.083 Seconds