-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fix] FUD Full Path Disclosure #298
Conversation
This doesn't work because the setting needs to be set before session initialisation. |
D'oh ! Of course, my bad. I would like go too fast. |
Hi, |
Hi everyone, @TeamAlexandriZ thank you very much for reporting this, nice find! About fixing this
|
Hello! Quick question (no Apache to run tests right now): does it disable all logging errors (i.e., will it hide errors on a debug server)? In Apache, most settings can be configured through both virtualhost definition and custom <VirtualHost *:80>
ServerName shaarli.my-domain.org
DocumentRoot /absolute/path/to/shaarli/
LogLevel warn
ErrorLog /var/log/apache2/shaarli-error.log
CustomLog /var/log/apache2/shaarli-access.log combined
# do not display PHP errors
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
# log PHP errors to a file
php_flag log_errors on
php_value error_log /var/log/apache2/shaarli-php-error.log
</VirtualHost> Could someone check if this works, and update the Server configuration page accordingly? |
Hi I don't have much time tonight but:
For example, on my server, in
Should |
A quick word about configuration priority :)
The virtual host definition can be used for convenience, to group all settings (native Apache entries, flags passed to PHP) in the same place. The real advantage here is that it is independent from the applications' sources, thus safe from upstream changes made to PHP flags or htaccess restrictions.
Stumbled on this SO thread as well, it looks both hackish (the value for
Shouldn't it be If needed, I'll be back to a proper development environment next week to run more extensive tests :) |
@Knah-Tsaeb @TeamAlexandriZ should we close this PR as a duplicate of #306? |
I use Apache do you want me to test this? On Thu, 13 Aug 2015 14:33 VirtualTam [email protected] wrote:
|
@nicolasdanelon If you have some time to toy with Apache and PHP configuration, that'd be awesome! In the near future, there'll be development-ready Docker templates / images under docker-shaarli to experiment with config with no fear of breaking everything ;-) |
Using you configuration posted on 29 / 06 / 2015 with user shaarli and passwod shaarli
|
Alright, I'm not sure what we're talking about. I was just giving an example. The question here is: should we force Shaarli to not display PHP errors? IMHO, no. It should rely on server configuration. Anyway, if we do, this PR needs to be rebased. |
IMHO, Yes by default unless a particular option is set in config.php. |
Closing this issue, as #306 adds the proper session cookie checks |
@TeamAlexandriZ report Full Path Disclosure sebsauvage#222