Menu

#10 Records incorrectly displayed in 'Recently Added Items'

open
nobody
None
7
2012-10-29
2008-03-04
No

There appears to be no way to prevent display of the title of objects in 'Recently Added Items' that can't be viewed. For an authenticated user with no Lister rights, the names of communities, collections and records still display. This has major security implications for highly sensitive material - if records, communities or collections cannot be viewed by a particular user, they should never display.

See attached screenshot. The 'Secret Squirrel' record is in the 'I'm secret' collection which is in 'Matt Community'. The logged in user has no rights for Matt Community and all child rights are inherited.

Discussion

  • Matt Painter

    Matt Painter - 2008-03-04
     
  • Matt Painter

    Matt Painter - 2008-03-05

    Logged In: YES
    user_id=485632
    Originator: YES

    Okay, tried this in trunk, revision 1426 and different (better) but still wrong behaviour exhibited:

    SETUP

    Two users:
    Matt Painter Secure
    Matt Painter Not-So-Secure

    Two communities:
    Secure community
    Insecure community

    Security rights:
    Secure community - Lister = Matt Painter Secure, Viewer = Matt Painter Secure
    Insecure community - no rights set

    Each community has a collection and a record, and all are set to inherit security from parents.

    After running cache_recent_items.php, the following displays:

    Matt Painter Secure

    Insecure Image (note: not clickable)
    Insecure Collection
    Insecure Community

    Matt Painter Insecure

    Insecure Image (note: not clickable)
    Insecure Collection
    Insecure Community

    Administrator (default admin user)

    Insecure Image (note: clickable)
    Insecure Collection
    Insecure Community

    Even after selecting all three users as a Lister for the Secure Community, it still doesn't display in Recent Items.

    Further to this, I've noted some inconsistency:

    1. Removed all users for Lister and Viewer for 'Secure Community' and 'Insecure Community'.

    Display of Recent Items:

    Insecure Image
    Insecure Collection
    Insecure Community
    Secure Image
    Secure Collection
    Secure Community

    1. Added all users for Lister and Viewer for 'Secure Community', and the community and children are removed from the list, as noted above:

    Insecure Image
    Insecure Collection
    Insecure Community

    1. However, when do the same thing for 'Insecure Community', the community and child records aren't removed from the list (new behaviour from observations above):

    Insecure Image
    Insecure Collection
    Insecure Community

    1. When then remove all users for Lister and Viewer for 'Secure Community', only the Secure Community objects display:

    Secure Image
    Secure Collection
    Secure Community

     

Log in to post a comment.

MongoDB Logo MongoDB