vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Changing Location of Config.php (https://vborg.vbsupport.ru/showthread.php?t=160206)

PH03N1X 10-14-2007 10:09 AM

Changing Location of Config.php
 
This is an idea that I came up with and was wondering if it's possible..

Background

If someone has a shell (ie: C99, R57) on your website, and they know the path of the config.php, they can get the information and virtually have full control over your forum. By default the path is (/includes/config.php). I've been able to prevent directories being listed using a shell, but you can still view specific files if you know the path.

Is there any way to rename and move the config.php to a new path?

Thanks,
-Mike

Marco van Herwaarden 10-14-2007 10:14 AM

You can move it outside the webroot and put a link to the real location in your ./includes directory, but that is useless as protection against someone who gained shell access.

PH03N1X 10-14-2007 11:03 AM

Bare in mind I'm talking about a Shell, not SSH access.
The shell I'm referring to is a PHP File such as C99.

I'll talk a look into that Marco.

Thanks,
-Mike

haytham 11-19-2007 07:11 PM

Hi I found this c99 file along with other php files in an uploading file script I am running on my site. I deleted them but don't how long they have been up there. What can a person running that file have gained access to?


All times are GMT. The time now is 01:03 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00949 seconds
  • Memory Usage 1,709KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete