Closed (fixed)
Project:
Search Files
Version:
6.x-2.x-dev
Component:
Search Attachments
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Jul 2009 at 15:39 UTC
Updated:
30 Aug 2011 at 15:11 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
cchamp commentedComment #2
rsbecker commentedSubscribing
I have installed node_access as well as search_files. I created a content type called PDF and generally granted all roles other than anonymous permission to search files. But I have posted specific pdf files that only organization leaders and administrators may view. The nodes are not visible to anyone else, but a low-level authorized user who searches files gets a list of attached files and can view those files.
This is an important security issue.
Comment #3
Anonymous (not verified) commentedWhen this feature will be added? I really need it. I use the module "content access" (http://drupal.org/project/content_access).
Thanks!
Comment #4
thl commentedComment #5
edward.peters commentedI would also appreciate this feature.
Comment #6
xjmTracking. Very important that it respect access control.
Comment #7
Anonymous (not verified) commentedWill this feature be compatible with "Private Upload" module (http://drupal.org/project/private_upload)? It's important for me!
Comment #8
xjmShould this be considered a security issue? (Private data is being made available publicly in the current version of the module.)
Comment #9
cels commentedIt's a security bug. Tracking it.
Comment #10
lhristov commentedSubscribe
Comment #11
drenton commentedAs a quick fix, I added a node_access check right after the node_load in search_files_attachments.module file.
The pager doesn't work properly with this though. I would guess db_rewrite_sql should be used somehow with do_search.
Comment #12
punchmonkey commentedsubscribe
Comment #13
drenton commentedPlease test the attached patch against the latest dev release.
This patch should also delete files from the search index if they have been removed from a node, or a node is deleted.
Comment #14
punchmonkey commenteddrenton, your patch in #13 seems to work very well for me. Like the OP, I am restricting access to certain nodes via the Taxonomy Access Control module and the search results now respect the privileges granted through the module.
Comment #15
rsbecker commentedI installed the dev version and applied the patch. The module appears to be working correctly now and respecting access permissions.
Thanks for the fix
Comment #16
edward.peters commentedThanks for this. When will the patch be added to the Dev version officially?
Comment #17
spjsche commentedSubscribing....
Comment #18
drenton commentedJust made a couple of changes from patch on comment 13.
- removed the private file system patch ( http://drupal.org/node/598136 ) from this patch
- change in hook_nodeapi to check if $node->files is an array or object
Comment #19
candelas commentedi tried and works, so i put to be ported :)
Comment #20
jrglasgow commentedI have committed the patch in #18
Comment #21
candelas commentedthanks @jrglasgow to take care of us :)