In Drupal Core 6.x, the query that built the admin/content/node page was passed through the node access system, and any node access module that implemented hook_db_rewrite_sql() could remove the API nodes from the page.

In 7.x, the query for that page isn't run through the node access system (there is no "node_access" tag added to the query). Instead, anyone with "view content overview" permission gets to see all published nodes.

This needs tests which need to be backported to D7. There's a node_test.module that implements some node access stuff afaik.

Commit credit should go to jhodgdon. Here's the patch we committed to D7.

Private tracker #: 72648

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

webchick’s picture

Issue tags: +Security improvements

Oops. And also...

xjm’s picture

Assigned: Unassigned » xjm

I'll work on this. I'm friends with the node access test module. :)

Bojhan’s picture

Are you still working on this? Critical bugs are currently above thresholds.

jhodgdon’s picture

Should it even be marked critical? The security patch was already committed. This is just open for tests that need to be written.

aspilicious’s picture

This isn't committed to D8.

tim.plunkett’s picture

Status: Active » Needs review
FileSize
422 bytes
aspilicious’s picture

Status: Needs review » Needs work

"This needs tests which need to be backported to D7. There's a node_test.module that implements some node access stuff afaik."

Berdir’s picture

Ok, NodeQueryAlterTest might not be the perfect place, but it is very easy to extend them to check admin/content as well.

Berdir’s picture

chx’s picture

Status: Needs review » Reviewed & tested by the community

Couldn't be simpler.

webchick’s picture

Version: 8.x-dev » 7.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

Awesome, THANKS.

Committed and pushed to 8.x. Needs a small re-roll for 7.x.

chx’s picture

Status: Patch (to be ported) » Reviewed & tested by the community
FileSize
1.77 KB

This only needs tests for D7 and the patch applied cleanly against node.test. If the bot comes back green it's good to go.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Yay! Committed and pushed to 7.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

xjm’s picture

Assigned: xjm » Unassigned