Closed (fixed)
Project:
Live
Version:
6.x-1.0
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Oct 2008 at 23:06 UTC
Updated:
12 Aug 2009 at 21:50 UTC
Jump to comment: Most recent file
Currently the nodes Input format is ignored. This issue is in live.node.inc. You pull the $format out of the post, but then in your node_teaser call you use $node->format, which has not been set. Setting $node->format = $format fixes this, but I am not sure why you don't just pull from the post into $node->format.
Also, when you call check_markup, you are using $format before it is set.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 328355.patch | 1.4 KB | swentel |
Comments
Comment #1
swentel commentedI can confirm this, attached is a patch which fixes this.
Comment #2
Gurpartap Singh commentedFixed in CVS! Thanks!
Comment #4
Flying Drupalist commentedPlease release?
Comment #5
heine commentedPOOF.
The filter_access check has to be BEFORE using the Input format. With the patch users can run arbitrary formats. What if the PHP filter is enabled for one of those?
Comment #6
heine commentedNote, while fortunately check_markup does an access check as well (third arg TRUE), arbitrary code execution via CSRF is still possible because check_markup is used before the token check.
Comment #7
heine commentedFixed with 6.x-1.1
Comment #8
heine commentedWell, 6.x-1.2