Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 30 Jan 2014 10:51:48 +1100
From: dawg <>
Subject: Re: CVE Request: Juju phpmyadmin charm


The second (replacement) argument passed to preg_replace is empty : it
doesn't use matched input. This can't be exploited.


$ php -r 'print(preg_replace("/(.*)/e","","phpinfo();"));'
=> Nothing

$ php -r 'print(preg_replace("/(.*)/e","$1","phpinfo();"));'
=> phpinfo() get executed


Le 30/01/2014 10:16, Seth Arnold a écrit :
> Hello Kurt, vendors, MITRE,
> Please assign a CVE for the following issue:
> I discovered a potentially unsafe use of PHP's preg_replace() /e option in
> the Juju charm phpmyadmin:
> $xml = simplexml_load_string(preg_replace("/(<\/?)media\:content([^>]*>)/e",
>     '', str_replace('media:hash',
>         'hash',
> 	file_get_contents(''))));
> An attacker able to spoof ARP, DNS, or BGP, or control any of the routers
> between the client and, or control over the sourceforge
> project or sourceforge servers, would be in a position to insert likely
> aribtrary code into the PHP interpreter.
> The full source of this file can be found at:
> I have reported the bug to:
> The problem appears to have been introduced in revision 18. No fix is
> currently available.
> Thanks

Powered by blists - more mailing lists

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.