Re: svn: /pear/pearweb/trunk/public_html/bugs/ bug.php

From: Date: Thu, 17 Dec 2009 22:41:42 +0000
Subject: Re: svn: /pear/pearweb/trunk/public_html/bugs/ bug.php
References: 1 2  Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-58299@lists.php.net to get a copy of this message
Daniel O'Connor wrote: > On Fri, Dec 18, 2009 at 8:48 AM, Rasmus Lerdorf <rasmus@php.net> wrote: > >> rasmus Thu, 17 Dec 2009 22:18:10 +0000 >> >> Revision: >> http://svn.php.net/viewvc?view=revision&revision=292271 >> >> Log: >> Argh! Please be more careful. This is an idiotic XSS. >> >> Changed paths: >> U pear/pearweb/trunk/public_html/bugs/bug.php >> >> Modified: pear/pearweb/trunk/public_html/bugs/bug.php >> =================================================================== >> --- pear/pearweb/trunk/public_html/bugs/bug.php 2009-12-17 21:51:48 UTC >> (rev 292270) >> +++ pear/pearweb/trunk/public_html/bugs/bug.php 2009-12-17 22:18:10 UTC >> (rev 292271) >> @@ -804,7 +804,7 @@ >> } >> $preview .= "</strong>\n<br /><span class=\"note\" >> style=\"white-space: >> pre-wrap\">"; >> $comment = $ncomment; >> - $preview .= make_ticket_links(addlinks($comment)); >> + $preview .= make_ticket_links(addlinks(clean($comment))); >> $preview .= "</span>\n"; >> $preview .= '</div>'; >> } else { >> @@ -1330,7 +1330,7 @@ >> } >> >> $comment = htmlspecialchars($fix, ENT_QUOTES, 'UTF-8', false); >> - $comment = make_ticket_links(addlinks($comment)); >> + $comment = make_ticket_links(addlinks(clean($comment))); >> $comment = $status . $comment; >> >> > Ooh, that's not so good. > > Got an example of it in the wild? > > Want a pearweb release done? > It was reported to security@: Click the Edit tab of some bug report on pear.php.net and enter <script>alert(1)</script> into the New/Additional Comment section. Then hit preview and you'll get a javascript popup. This may mean that a persistent XSS vulnerability is present, as well, if you actually submit that as a comment (as opposed to just previewing it) but I don't want to risk leaving something others can see. And yes, please verify that there aren't other missing filters and do a release.

« previous php.pear.cvs (#58299) next »