<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/phpweblog/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/phpweblog/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 30 Oct 2009 18:30:58 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/phpweblog/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>MySQL INJECTION EXPLOIT </title><link>https://sourceforge.net/p/phpweblog/bugs/37/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;THE BUG WAS FOUND IN: func.inc.php&lt;/p&gt;
&lt;p&gt;function F_loginUser($Username,$Password) {&lt;br /&gt;
global $db;&lt;br /&gt;
$sql = "UPDATE T_Users SET ";&lt;br /&gt;
$sql .= "LastLogin = now() ";&lt;br /&gt;
$sql .= "WHERE Username = '$Username' ";&lt;br /&gt;
$sql .= "AND Password = '" . md5($Password) . "' ";&lt;br /&gt;
$sql .= "AND Verified = 'Y'";&lt;br /&gt;
mysql_query($sql,$db);&lt;br /&gt;
if (mysql_affected_rows()&amp;gt;0) {&lt;br /&gt;
return true;&lt;/p&gt;
&lt;p&gt;The input is not sanitized. &lt;/p&gt;
&lt;p&gt;THE PROBLEM WITH THE CODE ABOVE IS THAT I CAN INPUT AN SQL INJECTION FOR&lt;br /&gt;
THE USERNAME. &lt;br /&gt;
SINCE YOUR CODE DOES NOT CHECK IF THE USERNAME AND PASSWORD HAS BEEN&lt;br /&gt;
TAMPERED WITH, MY INJECTION WILL WORK. &lt;/p&gt;
&lt;p&gt;If a user were to use this username and password: &lt;/p&gt;
&lt;p&gt;Username: SOME_VALID_USERNAME' OR '1'='1' AND Verified = 'Y --&lt;br /&gt;
Password: anything&lt;/p&gt;
&lt;p&gt;They have a good chance in getting access into the program.&lt;/p&gt;
&lt;p&gt;I have written a patch. It is attached. &lt;/p&gt;
&lt;p&gt;essentially add the line: $UserName = mysql_real_escape_string($UserName);&lt;/p&gt;
&lt;p&gt;THIS PATCH WILL HELP BECAUSE IT WILL PARSE THE MySQL INJECTION YOU USE ON&lt;br /&gt;
THE USERNAME. THE USERNAME WOULD THEN BE SANITIZED. &lt;/p&gt;&lt;/div&gt;</description><pubDate>Fri, 30 Oct 2009 18:30:58 -0000</pubDate><guid>https://sourceforge.net984470624cc27b227826fb3c26b163089e26a432</guid></item><item><title>494222 patch</title><link>https://sourceforge.net/p/phpweblog/bugs/36/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, I think this should solve the problem that was&lt;br /&gt;
reported in 494222 (there was a letter 'l' instead of&lt;br /&gt;
the number 1 in one of the declarations). The file&lt;br /&gt;
includes a difference list generated using diff. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Goscha</dc:creator><pubDate>Wed, 27 Apr 2005 09:24:25 -0000</pubDate><guid>https://sourceforge.net69180525415511da2f75f57d4815d29e3f837465</guid></item><item><title>&amp;lt;br&amp;gt;'s incorrect</title><link>https://sourceforge.net/p/phpweblog/bugs/35/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;THrought pwl5.3 any &amp;amp;lt;br&amp;amp;gt; tags are coded as &amp;amp;lt;br /&amp;amp;gt;.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stephen Lawrence</dc:creator><pubDate>Sun, 08 Dec 2002 21:00:05 -0000</pubDate><guid>https://sourceforge.netfb2e330ea77c515a06d3551f699c1139b18fd42a</guid></item><item><title>Left and Top edges are cut off</title><link>https://sourceforge.net/p/phpweblog/bugs/34/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Just installed phpweblog 5.3. The upper and left side&lt;br /&gt;
borders of the page are cut off. I will attache a&lt;br /&gt;
screenshot.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stephen Lawrence</dc:creator><pubDate>Tue, 03 Dec 2002 19:44:13 -0000</pubDate><guid>https://sourceforge.netb9d2e41abae2630f7e73696d6b7e4da601476599</guid></item><item><title>SQL Syntax Error in polls.sql</title><link>https://sourceforge.net/p/phpweblog/bugs/33/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;See topic for description:&lt;/p&gt;
&lt;p&gt;Change:&lt;/p&gt;
&lt;p&gt;Display ENUM('0','l') NOT NULL default '0',&lt;/p&gt;
&lt;p&gt;To:&lt;/p&gt;
&lt;p&gt;Display ENUM('0','1') NOT NULL default '0',&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter Gnodde</dc:creator><pubDate>Mon, 17 Dec 2001 15:49:32 -0000</pubDate><guid>https://sourceforge.net187881a824d45026763701497834291e00a33752</guid></item><item><title>Posting by registered users errors</title><link>https://sourceforge.net/p/phpweblog/bugs/32/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;You get several errors when posting a comment as a&lt;br /&gt;
registered user.&lt;br /&gt;
1) A pop up says that &amp;amp;quot;Name is a required field&amp;amp;quot; even&lt;br /&gt;
when it is entered in the drop-down menu. Pressing ok&lt;br /&gt;
continues to post anyway.&lt;br /&gt;
2) However, the post shows up as coming from the email&lt;br /&gt;
address of the author, with no other user data entered.&lt;br /&gt;
I persume this is a problem with formcheck.inc.js, and&lt;br /&gt;
some other file to do with 2). It can be bypassed by&lt;br /&gt;
allowing people to post as anything, but this rather&lt;br /&gt;
removes the point of registered users somewhat.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Patrick Jones</dc:creator><pubDate>Thu, 08 Nov 2001 17:20:57 -0000</pubDate><guid>https://sourceforge.net4e3a3480a22c32863c48a266ec08c86586864aee</guid></item><item><title>Wrong RSS/RDF format</title><link>https://sourceforge.net/p/phpweblog/bugs/31/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Check &lt;br /&gt;
&lt;a href="http://www.oreillynet.com/pub/a/network/2000/08/25/maga" rel="nofollow"&gt;http://www.oreillynet.com/pub/a/network/2000/08/25/maga&lt;/a&gt;&lt;br /&gt;
zine/rss_tut.html&lt;/p&gt;
&lt;p&gt;the &amp;amp;lt;/channel&amp;amp;gt; needs to be closed after the channel &lt;br /&gt;
info has been given, NOT after all the items have been &lt;br /&gt;
listed.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 31 Oct 2001 08:37:19 -0000</pubDate><guid>https://sourceforge.net5e5a034e7098723d1125cf98fd52091aae7ed711</guid></item><item><title>kill/edit/submit a comment leads to a 40</title><link>https://sourceforge.net/p/phpweblog/bugs/30/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;kill/edit/submit a comment leads to a 404 (if phpweblog is installed in www.domain.com/directory)&lt;/p&gt;
&lt;p&gt;reason: Header(&amp;amp;quot;Location:$G_URL\&amp;amp;amp;quot;.$where); in kill.php, edit.php, submit.php&lt;/p&gt;
&lt;p&gt;solution: removed $G_URL\&lt;/p&gt;
&lt;p&gt;result: works fine for me, but i don't know what it will do if installed in document-root...&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jochen Buennagel</dc:creator><pubDate>Wed, 03 Oct 2001 19:19:44 -0000</pubDate><guid>https://sourceforge.net48aa04825899956c2d942fd28e4a521fc187ee91</guid></item><item><title>Comments &amp;quot;on&amp;quot; on addon Pages</title><link>https://sourceforge.net/p/phpweblog/bugs/29/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;latest-unstable: I put the &amp;amp;quot;polls&amp;amp;quot; addon as a page in the page-manager and set &amp;amp;quot;User Comments&amp;amp;quot; to &amp;amp;quot;on&amp;amp;quot;. Whenever I post a comment or kill one, I land at &amp;amp;quot;/pages.php?node=&amp;amp;quot; and get a &amp;amp;quot;Page not found&amp;amp;quot; error.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jochen Buennagel</dc:creator><pubDate>Mon, 01 Oct 2001 21:06:20 -0000</pubDate><guid>https://sourceforge.netb5bf972fab06f3e8e4799dcf9c10e9c31c995ed9</guid></item><item><title>Poll Comments don't work correctly</title><link>https://sourceforge.net/p/phpweblog/bugs/28/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I just checked out the latest CVS version (Aug 11,&lt;br /&gt;
2001) and noticed that when you try to submit a comment&lt;br /&gt;
on a poll question... the redirected URL is incorrect&lt;br /&gt;
and results in a page not found error.&lt;/p&gt;
&lt;p&gt;I believe the cause may be the inclusion of &amp;amp;quot;$self&amp;amp;quot; in&lt;br /&gt;
the where hidden field.&lt;/p&gt;
&lt;p&gt;------------------&lt;/p&gt;
&lt;p&gt;By the way, it is coming along nicely!&lt;/p&gt;
&lt;p&gt;Great Job!!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sun, 12 Aug 2001 23:23:54 -0000</pubDate><guid>https://sourceforge.netfda5ab66fe4196a4a8524c56bded4e3d6f5c57c1</guid></item></channel></rss>