This applies to CVS revision 1.441. All registered users can delete comments by directly accessing the URL.
For example: http://yourdomain.com/?q=comment/delete/6
The only condition is that the user role must have "post comment" access turned on. All other access conditions can be turned off.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | comment_29.patch | 935 bytes | robertgarrigos |
Comments
Comment #1
robertgarrigos commentedthere was a line under the wrong $access value. This patch looks like resolves the problem.
Comment #2
Briang commentedYour patch only works if the cache is turned on, when cache is turned off the security hole is the same as before.
I think is has to do with the following line:
if ($may_cache)
Comment #3
Frodo Looijaard commentedComment #4
Briang commentedAfter I turned on cache I have not been able to recreate the problem even after I turned off the cache again. How can I make sure that the cache is completely clear and reset to it's initial state?
Comment #5
profix898 commentedSimply empty cache table :)
DELETE FROM {cache}Comment #6
dwwpatch looks good. i easily recreated the security hole, applied comment_29.patch, and that plugged the hole (after toggling the cache settings). RTBC...
-derek
Comment #7
killes@www.drop.org commentedapplied
Comment #8
(not verified) commented