Skip to content
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

Allow inline style and srcipt eval in NC 15 #552

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

marius-wieschollek
Copy link
Contributor

If you open the debugging tools while using Passman you see a lot of Content-Security-Policy errors because Nextcloud 15 does no longer allow eval and inline css by default. This patch adds a custom CSP which allows this and resolves the issues.


$csp = new StrictContentSecurityPolicy();
$csp->allowEvalScript();
$csp->allowInlineStyle();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, fix this indentation

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@animalillo
Copy link
Collaborator

Hmmm... i have been checking and the error seems to be on the angular code, nothing on passman side, so i don't think we should allow this behaviour unless we really need it for some parts of the code as it would lower the security of the app.

Do you have any examples of something in the app that requires this kind of includes to work correctly?

If so, do you see any clear way to fix so?

For what I've seen on the minified angular code it looks like angularjs is checking if that feature is available on the browser for some reason unknown to me.

Sorry for the late in depth review, didn't have time to prepare a release until today :c

@animalillo animalillo modified the milestones: 2.3.2, 2.3.3 Jul 8, 2019
@marius-wieschollek
Copy link
Contributor Author

The javascript debugger feature seems to be causing issues (https://github.com/nextcloud/passman/blob/master/js/app/controllers/main.js#L63).

@animalillo animalillo modified the milestones: 2.3.3, 2.3.4 Oct 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants