Author Topic: Security Frage - config.php  (Read 3625 times)

0 Members and 1 Guest are viewing this topic.

Offline corcordis

  • Pre-Newbie
  • Posts: 9
    • View Profile
    • CorCordis Photography
Security Frage - config.php
« on: November 23, 2008, 10:08:30 AM »
Liebes Forum,

ich habe bereits die "4images security tips" aus den FAQ gelesen.
Allerdings würde mich interessieren, ob es auch eine Möglichkeit (oder ob es überhaupt nötig ist) gibt, die config.php im Root-Verzeichnis abzusichern.
Die Datei ist ja schon recht kritisch, da sie u.a. Passwörter enthält.

Wenn ich z.B. die Datei nach .../admin/ (.htaccess gesichert) verschiebe und alle entsprechenden Aufrufe anpasse, würde dann ein unangemeldeter Benutzer überhaupt noch
die Gallerie nutzen können?

Viele Grüße und vielen Dank im Voraus!

Dominik

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Security Frage - config.php
« Reply #1 on: November 23, 2008, 10:47:17 AM »
Sorry for response in english.

I don't see any security issues with config.php anywhere on the site. If you try access it via web all you should see is a blank page, no information exposed. But if someone, somehow got access to your 4images root files, there is no .htaccess could possibly protect files in /admin/

If you very concerned about config.php, you can move it to any directory on the server, then change in global.php
@include(ROOT_PATH.'config.php');

to this:
@include('/full/local/path/config.php');
(change the path)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline corcordis

  • Pre-Newbie
  • Posts: 9
    • View Profile
    • CorCordis Photography
Re: Security Frage - config.php
« Reply #2 on: November 23, 2008, 11:18:34 AM »
Hi V@no,

and thanks for your answer.
I see what you mean. I just wasn't sure if there is a possibility of reading the contents of the config.php file if you are able to "run" it and see the blank page.

EDIT:
I have just moved the config.php file into a .htaccess secured folder and put that path into global.php.
Works fine! Thank you!