-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Nextcloud beta to RC web-updater CSP issue #12601
Comments
Same here with Apache + PHP7.2. |
@MichaIng yes after writing the issue the github search included a link to the issue (because your comment was related). I searched and also looked into milestone (is a blocker for me) and found nothing. The problem is no new page is loaded (Take a look at URL) = old URL and <script> tag with inline script is eval code in CSP. (Server is unrelated as long the CSP header is added.) Ugly temp solutions:
Clean Solution:
|
@xf- Will stay on Beta 2 for now, to test fix on code basis 😉. |
GitMate.io thinks possibly related issues are #8330 (Nextcloud Documentation Issue), #10427 (Nextcloud 14.0.0 Beta 1 web update error), #11202 (Nextcloud 14 Upgrade issue. ), #10677 (Nextcloud 14.0.0 beta 3 updater "ocm-provider" extra file), and #12497 (Update with updater from Nextcloud 15 Beta 1 to Beta 2 not possible). |
@MichaIng i added a second clean way. |
Ai. Yes we might need to losen the CSP for the updater page |
Update itself has no CSP. Because you stay on admin/overview the CSP of admin/overview breaks the updater. Maybe open a new tab or reopen the site should fix it and avoid the Vue router with old CSP. |
I will look into this tomorrow. Thanks for the feedback. We totally missed this one. |
This is due to an
@rullzer @nickvergessen What to do here? Should we try to add the script elements inline via HTML tags? Or should we whitelist |
I tested and it doesn't work. There is another creepy way: parse the |
Steps to reproduce
default-src 'none';base-uri 'none';manifest-src 'self';script-src 'nonce-BLUBB';style-src 'self' 'unsafe-inline';img-src 'self' data: blob:;font-src 'self';connect-src 'self';media-src 'self';frame-src https://office.catchit.xyz
Content Security Policy: The page’s settings blocked the loading of a resource at eval (“script-src”).
Expected behaviour
No CSP issue
Actual behaviour
Without execution of loaded JS the "Start update" button does nothing.
Server configuration
Web server: Nginx
PHP version: 7.3
Nextcloud version: (see Nextcloud admin page) 15.0.0 beta 2
Edit: Maybe a duplicate of #12497 - searched for CSP and eval and found nothing.
The text was updated successfully, but these errors were encountered: