Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-12860

Hidden pages' content can be viewed without permission using diffpages.action

      If the id of a page is known by a user, that user can view the content of the page without having permissions to the space it is in. They need only construct the right URL.
      EG:
      Two spaces A and B
      Page with id 1 is in Space A
      Page with id 2 is in Space B
      User cannot see Space A
      User can see Space B

      The following URL will allow the user to view a diff of the two pages, thus easily deriving the content of the page in the hidden space.

      http://confluence.example.com/pages/diffpages.action?pageId=2&originalId=1
      

        1. AbstractDiffPagesAction.class-2.6.2
          3 kB
          Paul Curren
        2. AbstractDiffPagesAction.class-2.7.3
          3 kB
          Chris Kiehl
        3. AbstractDiffPagesAction.class-2.8.2
          3 kB
          Chris Kiehl
        4. AbstractDiffPagesAction.java-2.6.2
          2 kB
          Paul Curren
        5. AbstractDiffPagesAction.java-2.7.3
          2 kB
          Chris Kiehl
        6. AbstractDiffPagesAction.java-2.8.2
          2 kB
          Chris Kiehl

            [CONFSERVER-12860] Hidden pages' content can be viewed without permission using diffpages.action

            Java 1.4 compiled 2.6.2 patch attached.

            Paul Curren added a comment - Java 1.4 compiled 2.6.2 patch attached.

            Attached patched source files for 2.7.3 and 2.8.2

            Chris Kiehl added a comment - Attached patched source files for 2.7.3 and 2.8.2

            I attached patched class files for versions 2.8.2 and 2.7.3 of Confluence. Please refer to the installation instructions.

            The subdirectories for the class file are com/atlassian/confluence/pages/actions/. You need to remove the "-<version>" from the class file before copying it.

            Chris Kiehl added a comment - I attached patched class files for versions 2.8.2 and 2.7.3 of Confluence. Please refer to the installation instructions . The subdirectories for the class file are com/atlassian/confluence/pages/actions/ . You need to remove the "-<version>" from the class file before copying it.

            Don Willis added a comment -

            Permissions are now checked on both pages being diffed.

            Don Willis added a comment - Permissions are now checked on both pages being diffed.

            This issues was reported to support by Neeraj Jhanji

            Don Willis added a comment - This issues was reported to support by Neeraj Jhanji

              don.willis@atlassian.com Don Willis
              don.willis@atlassian.com Don Willis
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: