<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>WordPress &#8250; Support Topic: [Plugin: WP Security Scan] Bug: Database Security - database.php</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Topic: [Plugin: WP Security Scan] Bug: Database Security - database.php</description>
<language>en</language>
<pubDate>Thu, 26 Nov 2009 02:48:52 +0000</pubDate>

<item>
<title>erigami on "[Plugin: WP Security Scan] Bug: Database Security - database.php"</title>
<link>http://wordpress.org/support/topic/286263#post-1281840</link>
<pubDate>Sun, 15 Nov 2009 04:00:18 +0000</pubDate>
<dc:creator>erigami</dc:creator>
<guid isPermaLink="false">1281840@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Uh, can you explain a little bit more about Bug 2? I maintain &#60;a href=&#34;http://wordpress.org/extend/plugins/miniposts/&#34;&#62;a plugin&#60;/a&#62; that is apparently causing its users problems with a &#34;You do not have sufficient permissions to access this page.&#34; message. One of my users pointed me here and I'm curious what the implications of #2 are.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
e
&#60;/p&#62;</description>
</item>
<item>
<title>KrX on "[Plugin: WP Security Scan] Bug: Database Security - database.php"</title>
<link>http://wordpress.org/support/topic/286263#post-1124781</link>
<pubDate>Fri, 03 Jul 2009 12:59:01 +0000</pubDate>
<dc:creator>KrX</dc:creator>
<guid isPermaLink="false">1124781@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Bug 1. Function where wp-config.php gets changed.&#60;br /&#62;
Function will replace &#38;lt;b&#38;gt;all&#38;lt;/b&#38;gt; instances of $GLOBALS['table_prefix'], even if value it is replacing is not $table_prefix  = 'foobar';&#60;br /&#62;
e.g. New prefix: &#34;foo&#34;. If the username is &#38;lt;i&#38;gt;define('DB_USER', 'wp_');&#38;lt;/i&#38;gt; (happens to be &#38;lt;i&#38;gt;wp_&#38;lt;/i&#38;gt;), the username will also be changed to &#34;foo&#34;.&#60;br /&#62;
(Line 141 of database.php)&#60;br /&#62;
Suggestion: make criteria for &#38;lt;i&#38;gt;str_replace&#38;lt;/i&#38;gt; include: &#38;lt;i&#38;gt;$table_prefix  = '&#38;lt;/i&#38;gt; and &#38;lt;i&#38;gt;';&#38;lt;/i&#38;gt; like:&#60;br /&#62;
$table_prefix  = 'kwapc_';&#60;br /&#62;
$line = str_replace(&#34;$table_prefix  = '&#34;.$GLOBALS['table_prefix'].&#34;';&#34;, &#34;$table_prefix  = '&#34;.$newpref.&#34;';&#34;, $line);&#60;/p&#62;
&#60;p&#62;Bug 2. MySQL: Table wp_usermeta's whose meta_key value == &#34;wp_capabilities&#34; and &#34;wp_metaboxorder_dashboard&#34; do not get changed into the new prefix values.&#60;br /&#62;
This causes Wordpress to output errors like &#34;You do not have sufficient permissions to access this page.&#34;, especially in administration pages.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
