When a node using the "PHP code" input filter is included in an RSS feed, any PHP code in that node is not evaluated. This means that instead of the feed including the results of the PHP code, it instead includes the unevaluated PHP code in the description.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | feed_security_0.patch | 1.34 KB | eaton |
| #4 | feed_security.patch | 1.35 KB | eaton |
Comments
Comment #1
fgmWhat is the type of feed involved ? Is it /rss.xml ? A taxonomy feed ? Another type of feed ?
Downgrading to critical because it does not prevent the base system from being used.
Comment #2
webernet commentedApplies to both /rss.xml and taxonomy feeds (possibly others as well).
Originally marked as critical since it is a possible security concern because the bug causes PHP code to be displayed to users and/or the public.
Comment #3
webernet commentedNote: This is a regression - the PHP is evaluated as expected in 4.7.x
Comment #4
eaton commentedThere was a subtle change to node_prepare() in 5.0. After a full node_view() everything is handled properly, but some code (like feed generation) calls node_prepare without every completing a full node_view(). That leaves node->body in an unfiltered state. This corrects that loophole.
Comment #5
eaton commentedMinor code-style cleanup.
Comment #6
chx commentedBack to critical. This can lead to a sechole.
Comment #7
webernet commentedPatch fixes the original issue. RTBC
Comment #8
moshe weitzman commentedlooks good to me
Comment #9
dries commentedCommitted to CVS HEAD.
Comment #10
(not verified) commented