No security warnings expected to be displayed.
I see the following warnings:
The "X-Content-Type-Options" HTTP header is not configured to equal to "nosniff". This is a potential security or privacy risk and we recommend adjusting this setting.
The "X-Frame-Options" HTTP header is not configured to equal to "SAMEORIGIN". This is a potential security or privacy risk and we recommend adjusting this setting.
Operating system:
Debian GNU/Linux ("Stretch")
Web server:
Nginx 1.10.2
Database:
MariaDB 10.1.20
PHP version:
PHP 7.0.14-2
Nextcloud version: (see Nextcloud admin page)
11.0.0
Updated from an older Nextcloud/ownCloud or fresh install:
Manually updated from an older Nextcloud version
Where did you install Nextcloud from:
https://download.nextcloud.com/server/releases/nextcloud-11.0.0.tar.bz2
Signing status:
Signing status
Login as admin user into your Nextcloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.
List of activated apps:
App list
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder
The content of config/config.php:
Config report
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder
or
Insert your config.php content here
(Without the database password, passwordsalt and secret)
Are you using external storage, if yes which one: local/smb/sftp/...
Are you using encryption: yes/no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP config
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your Nextcloud installation folder
Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';
Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.
Browser:
Operating system:
Web server error log
Insert your webserver log here
Nextcloud log
Insert your Nextcloud log here
Browser log
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...
Our docs mention:
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options "SAMEORIGIN";
So that should work. Can you retry with that config? If that also fails just reopen the issue.
Hi,
I already have those above codes in the vhost config, but I just got this warning on NC v12.
I didn't have this warning on previous version.
Same situation here. New install of NC 12. nginx
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options "SAMEORIGIN";
Same Situation here as well, New install of 12 with nginx with proper entries still shows security error.
FYI, the header fix for X-Frame-Options is to remove/comment out from webserver config. Otherwise the same header is output twice and invalidating the header because NC12 sets the header in the code now.
Removing/commenting out X-Frame-Options may be inconvenient for multi-site systems, because it's very convenient to keep most of security related settings (X-Frame-*, cipher sequencies, dh_params, etc.) in a separate config file and just include it in per-site configs.
Removed per instructions, restarted and still seeing the same error.
I have the same error. I put the record in the http block and doesn't work.
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options "SAMEORIGIN";
Same problem. Nextcloud v12 with Nginx.
Nextcloud 12.0.3 RC2
same error
commenting "X-Content-Type-Options" removed this message which appeared after I upgraded to NC 12.0.3 from NC 11 (Debian 9 PHP 7 Nginx PHP-fpm).
Yep removing did actually work! Thanks
Most helpful comment
FYI, the header fix for X-Frame-Options is to remove/comment out from webserver config. Otherwise the same header is output twice and invalidating the header because NC12 sets the header in the code now.