Description

quicklinks allows PHP code to be entered into a user's profile, which could be leveraged to allow code execution if the web server also supports PHP (eg, it also contains a PHP application with a local file include vulnerability).

Steps to reproduce

Create / edit a user profile and enter "<?php system(id) ?>" for a quicklink. Then look at the contents of the user's profile and you'll see:

Component selection

Details

MoinMoin Version

1.5.8

OS and Version

n/a

Python Version

n/a

Server Version

Apache

Server Details

n/a

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

n/a

Workaround

Discussion

Please add more details, especially about how that PHP code gets executed.

Did you publish your data directory by your webserver (by putting data_dir under documentroot?). Note that this would be a configuration we do warn about in our documentation and one that has all sorts of problems (e.g. you can access acl protected wiki pages, you can access all user account data including encrypted passwords, etc.).

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/quicklinksAllowsPHPCode (last edited 2008-02-02 17:33:19 by ThomasWaldmann)