Description

When I enable the rst parser, the Moin include directive allows me to view pages where an ACL would normally prevent this. The inclue directive needs to be ACL aware.

Steps to reproduce

  1. Install docutils
  2. Create a page with #!rst ..include:: PageWhosAclsNormallyPreventMeFromReading 

  3. View the page you shouldn't be able to see.

Example

{{{#!rst
.. include:: AcledPage

}}}

Component selection

Details

The MoinDirectives.include() method needs to deal with ACLs. Otherwise it allows people to view pages that they aren't supposed to have access to.

MoinMoin Version

1.5.7, 1.6.0, 1.6.1

OS and Version

Red Hat Enterprise Linux 4

Python Version

python 2.3

Server Setup

Runnng behind Apache

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

Disable include directive:

Or disable rst parser:

Or if you don't need rst, deinstall docutils (rst is disabled when docutils is not installed).

Discussion

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/RestructuredTextIncludeDirectiveDoesNotRespectAcls (last edited 2008-03-18 20:24:57 by ThomasWaldmann)