Kwiki-Attachments reviews


RSS | Module Info | Add a review of Kwiki-Attachments

Kwiki-Attachments (0.15) ***

This is a very nice and useful Kwiki plug-in. However, you should consider that, just used out of the box, it may present a significant security risk.

The problem is that users can upload any type of file. That means that, for example, if you are using a typical Apache server with PHP, users will be able to upload arbitrary PHP programs that get executed by your server. You may be able to tweak the Apache configuration to work around this.

Another solution is that the plugin has an *undocumented* configuration option called "attachments_skip". That's a step in the right direction, although having an "attachments_allow" would be much better. You can add this option to config.yaml to provide a regular expression to recognize the attachments that should be skipped. If you want to allow only certain kinds of attachments, you can use a negative lookahead in the regular expression to negate it. Something like this should allow only PNG, JPG, and GIF files:

attachments_skip: ^(?!.+\.(?i:png|jpg|gif|jpeg)$)

Ivan Tubert - 2005-08-01T09:48:13 (permalink)

3 out of 4 found this review helpful. Was this review helpful to you?  Yes No

Kwiki-Attachments (0.12) ****

It works and it works rather well. I especially like that attachments are attached to a specific page rather than having a huge directory with all of the attachments.

Sometimes, the filename isn't very descriptive when we upload a file, I'd like to be able to add and see a Description alongside the file name if we choosed to add it. Also, sometimes I don't want the attachment list to show on the page, I just want to put the link someplace in the page manually. Maybe a checkbox to include or not include an entry in attachments.


efreedom - 2005-04-02T16:23:21 (permalink)

1 out of 1 found this review helpful. Was this review helpful to you?  Yes No

Kwiki-Attachments (0.10) *****

jolly good!

bern - 2005-03-11T08:55:39 (permalink)

Was this review helpful to you?  Yes No