Skip to content

Nextcloud complains if X-Frame-Options is too 'secure' #3808

Closed

Description

@rugk

Steps to reproduce

  1. Configure your webserver to serve x-frame-options:"DENY"
  2. Open Nextcloud administration page.

Expected behaviour

If frames are used/required by Nextcloud, so that this option must be SAMEORIGIN, report this as a compatibility error or so and let the admin decrease the "strength" of this header.
If not, just don't complain.

Actual behaviour

Nextcloud complains that the header should be SAMEORIGIN and reports this as a "security risk". This is clearly a wrong claim.

Server configuration

Web server: nginx

Nextcloud version: 11.0.2

Updated from an older Nextcloud/ownCloud or fresh install: fresh

Where did you install Nextcloud from: website

Are you using encryption: yes

Activity

  1. nickvergessen commented on Mar 13, 2017

    @nickvergessen
    Member

    @LukasReschke please confirm

  2. LukasReschke commented on Mar 13, 2017

    @LukasReschke
    Member

    While not a security risk we don't support DENY. This breaks some features built-in with Nextcloud. So one can add another error message here, but we can't just display nothing.

  3. added
    good first issue
    and removed on Mar 13, 2017
  4. rugk commented on Mar 13, 2017

    @rugk
    Author

    Yeah, I also noticed it break with DENY.

  5. coderkun commented on May 13, 2017

    @coderkun
    Contributor

    All security messages have currently the format

    The "{header}" HTTP header is not configured to equal to "{expected}". This is a potential security or privacy risk and we recommend adjusting this setting.

    What do you think about the DENY message to be

    The "{header}" HTTP header is not configured to equal to "{expected}". Some features might not work correctly and we recommend adjusting this setting.

    This message can optionally be used for other headers as well. It will only require a small change and I can provide a patch for this change.

  6. rugk commented on May 13, 2017

    @rugk
    Author

    Yes, that sounds very good.

  7. grawlinson commented on Aug 25, 2017

    @grawlinson

    Am currently getting this error message:

    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.

    However, if I perform curl -I <NC server instance>, the x-frame-options header is present, and set to "SAMEORIGIN"

    I upgraded from NC11 to NC12, this is a new "error" for me.

    EDIT: Found the solution in issue #4605. Disregard this comment.

  8. added a commit that references this issue on Nov 14, 2017
  9. MorrisJobke commented on Nov 14, 2017

    @MorrisJobke
    Member

    Fixed in #4856

  10. added this to the Nextcloud 13 milestone on Nov 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions