Closed (works as designed)
Project:
Drupal core
Version:
6.15
Component:
search.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Dec 2009 at 14:05 UTC
Updated:
19 Jan 2010 at 03:18 UTC
Example: block created with title "Test1" and "Role specific visibility settings" are set to Authenticated users only.
Content created, title Example1 and assigned to block Test1.
If an anonymous user would enter the site he is not able to access page Example1 as it is not showing.
However if he would do a search for Example1, this page is showing in the results and the anonymous user is able to read it.
Is this normal behaviour?
Thank you
Comments
Comment #1
grendzy commentedSpeaking broadly no, the search module should never expose private data.
Your post seems to confuse the concept of blocks and nodes, though. Can you provide more detail?
Comment #2
Lars Vandergraaf commentedI am a newbie and I understood perfectly what the original poster wrote. Create content that should only been seen by an authenticated user put that specific http:/blah.blah.org(i.e. financial statements) into the block body. Great that works, only roles permitted see it from the web site view. Now give anonymous user permission to use Search if they search on "financial" the secure block content is found and is viewable.
Did this help?
I even created a new content type called financial_type but I do not know how to tell the block that this type should be tied to that block.
I am using OS:XP, Drupal 6.15 Core, xampp
Comment #3
grendzy commentedIf you are putting private content into nodes than you must use an access control module. See http://drupal.org/node/270000
Setting the role visibility for a specific block only affects the block itself, it doesn't protect any underlying nodes that may be displayed there. (you didn't explain how the node content is added to a block, but this would be true with Views or any other method).
Without proper access control, your private data will not only be visible in search results, but also in /rss.xml, and also via dictionary attack if someone starts requesting all nodes in sequence (node/1, node/2, node/3, etc).
Comment #4
Lars Vandergraaf commentedThanks!!! So I created a taxonomy keyword that I related to all node types that I use. I then set this keyword to all roles that I want to give access or not to give access to by using the A-I-D thingie. My testing showed that it worked.
I really don't understand why anyone would use permissions on nodes.
Thanks again...
PS. The original documentation on taxonomy and taxonomy permissions is probably very easy to understand for the theory guys. Sadly, I am not one of those people. Examples in the documentation would go along way for us numbskulls.