Author |
Message |
stephen2417
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/4551873940eae4d6c0e00.gif)
Joined: Jan 18, 2004
Posts: 244
Location: Bristolville, OH
|
Posted:
Fri Jun 04, 2004 5:32 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
chatserv
Member Emeritus
![](modules/Forums/images/avatars/Risque/fhf215.jpg)
Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico
|
Posted:
Fri Jun 04, 2004 5:55 pm |
|
You can tell school's out huh? try the Exploitation Example on your site and let me know if you get anything other than a 403 page. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
stephen2417
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Jun 04, 2004 6:00 pm |
|
Yeppers.. Ive been out for about two weeks now.. But becides the point. Your the man, its 403 all the way. ![Very Happy](modules/Forums/images/smiles/icon_biggrin.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Tank863
New Member
![New Member New Member](modules/Forums/images/ranks/1star.gif)
![](modules/Forums/images/avatars/Calvin_And_Hobbes/Calvin_And_Hobbes_-_Evil_Calvin.gif)
Joined: May 29, 2003
Posts: 16
|
Posted:
Sat Jun 05, 2004 10:12 am |
|
Chat...
Try this as a proof of concept.
http://www.example.com/modules/News/categories.php/modules.php
I was trying what 'they' suggested and all I got was the 403 page...
I tried the above and bamm..
Code:
Warning: main(mainfile.php): failed to open stream: No such file or
directory in /usr/local/apache/htdocs/xxxx/modules/News/categories.php on line 19
Fatal error: main(): Failed opening required 'mainfile.php' (include_path='./:/usr/local/lib/php:/usr/lib/php:/usr/bin/:/usr/
share/pear') in /usr/local/apache/htdocs/xxxx/modules/News/categories.php
on line 19
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Tank863
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jun 05, 2004 10:29 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sixonetonoffun
Spouse Contemplates Divorce
![](modules/Forums/images/avatars/d1ecfa674c890aee2698b.jpg)
Joined: Jan 02, 2003
Posts: 2496
|
Posted:
Sat Jun 05, 2004 10:41 am |
|
Since literally every file is potentially effected I'd say this is one for FB to address with a release of a new version.
But that aside the actual vulnerability still can only be exploited by people who live on your server and then only if its poorly configured. The path disclosure part is valid to the world but is minor overall in and of itself. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
Site Admin/Owner
![](modules/Forums/images/avatars/45030c033f18773153cd2.gif)
Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Sat Jun 05, 2004 10:46 am |
|
The topic or post you requested does not exist |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sixonetonoffun
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jun 05, 2004 10:51 am |
|
I guess my point was this isn't much different then someone accessing ect/passwd which can also be done easily on a shared server not in safe_mode. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jun 05, 2004 11:07 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sixonetonoffun
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jun 05, 2004 11:16 am |
|
I'm not trying to discount the issue. I just think that since to patch this it will require every file to be modified a new release is the best way to address the problem. But maybe an "Official PHPNuke" development site can address this issue for us all. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Tank863
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jun 05, 2004 11:21 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jun 05, 2004 11:32 am |
|
Try adding this line to your .htaccess file
php_flag display_errors off
You should get a blank screen. I can write an error_handler at the PHP level to throw up another screen. |
Last edited by Raven on Sat Jun 05, 2004 11:46 am; edited 1 time in total |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Tank863
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jun 05, 2004 11:41 am |
|
Raven.. that worked.. it did give me the blank screen...
![Very Happy](modules/Forums/images/smiles/icon_biggrin.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jun 05, 2004 11:43 am |
|
There are actually several ways to corral this path disclosure issue. It is not nuke constrained/unique, although we all know we can depend on FB to provide fertile ground to play in Anyway, I'm going to work on this this weekend and see what I can come up with. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jun 05, 2004 11:45 am |
|
Tank863 wrote: | Raven.. that worked.. it did give me the blank screen...
| I modified my other post to use php_flag instead of php_value - just a tweak for speed. Keep in mind that ALL errors will get a blank screen until the error handler is provided. |
Last edited by Raven on Sat Jun 05, 2004 12:00 pm; edited 1 time in total |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Tank863
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jun 05, 2004 11:49 am |
|
Yes.. that one does make a slight difference in speed.. ![Very Happy](modules/Forums/images/smiles/icon_biggrin.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jun 05, 2004 12:11 pm |
|
Keep in mind that if you use solely a php script solution, like ini_set(), you would need to place that on every page, whether through an include or actually on each page. That is where .htaccess obviously has an advantage. But for those that do not use Apache, then you will need to either do it at a server level pnp.ini level or at the php script level. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jun 05, 2004 12:44 pm |
|
Also, (sorry for all the addendums) just adding code to mainfile.php will work in many of the cases but there is no "rule" that mainfile.php must be called in addons. It's a convenience, not a requirement. And more importantly, this particular exploit (root path disclosure) is solely to display the root path, it is not to conform to nuke "rules" of coding. That's why a fix has to be at a higher level and cannot be not nuke specific. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
foxyfemfem
New Member
![New Member New Member](modules/Forums/images/ranks/1star.gif)
![](modules/Forums/images/avatars/Risque/fhfe256.jpg)
Joined: Dec 07, 2003
Posts: 22
Location: USA
|
Posted:
Sat Jun 05, 2004 1:17 pm |
|
Raven wrote: | That's why a fix has to be at a higher level and cannot be not nuke specific. | I assume you're referring to a php stand alone fix.. right? I use several php programs throughout my site in sub domains, therefore I added your .htaccess fix to all of my sub domains. Thanks! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Brujo
Regular
![Regular Regular](modules/Forums/images/ranks/2stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Jun 04, 2004
Posts: 84
Location: Germany
|
Posted:
Sat Jun 05, 2004 2:23 pm |
|
Raven wrote: | Try adding this line to your .htaccess file
php_flag display_errors off
You should get a blank screen. I can write an error_handler at the PHP level to throw up another screen. |
if i put it in my .htaccess i got an Internal Server Error, is there another way to do it ?
with bet regards
Brujo |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jun 05, 2004 3:25 pm |
|
Brujo wrote: | Raven wrote: | Try adding this line to your .htaccess file
php_flag display_errors off
You should get a blank screen. I can write an error_handler at the PHP level to throw up another screen. |
if i put it in my .htaccess i got an Internal Server Error, is there another way to do it ?
with bet regards
Brujo | Are you allowed to use .htaccess at your site? If so, then your host has restricted what php settings you can change. Try php_value instead of php_flag. If that still does not work, contact your host and ask them to allow the changing of display_errors via .htacess. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jun 05, 2004 3:28 pm |
|
foxyfemfem wrote: | Raven wrote: | That's why a fix has to be at a higher level and cannot be not nuke specific. | I assume you're referring to a php stand alone fix.. right? I use several php programs throughout my site in sub domains, therefore I added your .htaccess fix to all of my sub domains. Thanks! | Correct. Actually, if you just place it in your root document .htaccess it should flow throiugh to all subdomains, but it might be easier to have a separate .htaccess in each subdomain for convenience and organization. Better safe than sorry ![Wink](modules/Forums/images/smiles/icon_wink.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Brujo
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jun 05, 2004 3:32 pm |
|
Raven wrote: | Are you allowed to use .htaccess at your site? If so, then your host has restricted what php settings you can change. Try php_value instead of php_flag. If that still does not work, contact your host and ask them to allow the changing of display_errors via .htacess. |
Yes htaccess is allowed for me and it seems you are right that it is not allowed to change the php settings, so i opend a Ticket at my hoster.
thanks for your quick responce
with bet regards
Brujo |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jun 07, 2004 9:58 am |
|
See this thread for a possible fix for .htaccess users
[Edited by Raven. I have enough tests and feedback to see if this is worth it. Thanks!] |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|