myBloggie 2.1.6 - Advance Free PHP & mySQL Blog / Weblog script - viewid=17
04 Sep 2005 11:09:03 am
Critical Security Update - myBloggie 2.1.X version
Recently , it was brought our attention that there is a security vulnerability in the myBloggie 2.1.3 beta & prior. To address that problem, you are strongly advise to update your code immediately as per below to address critical security issue.

Find these line in the login.php

[edit = Updated code to prevent exploit 06 Oct 2005]

Code :
if (isset($_POST['username'])) {
$username=$_POST['username'];
} else $username="";


if (isset($_POST['passwd'])) {
$passwd = $_POST['passwd'];
} else $passwd = "";


Add this below
Code :

// Security precaution - sean 06 Oct 2005
$username = htmlspecialchars(rtrim(trim($username), "\\"));
$username = substr(str_replace("\\'", "'", $username), 0, 25);
$username = str_replace("'", "\\'", $username);



Results after change

Code :
if (isset($_POST['username'])) {
$username=$_POST['username'];
} else $username="";


if (isset($_POST['passwd'])) {
$passwd = $_POST['passwd'];
} else $passwd = "";

// Security precaution - sean 06 Oct 2005
$username = htmlspecialchars(rtrim(trim($username), "\\"));
$username = substr(str_replace("\\'", "'", $username), 0, 25);
$username = str_replace("'", "\\'", $username);


or you can download here patch file

Instruction : Download login.zip , unzip it, upload it to myBloggie root directory to replace login.php
Category : myBloggie News | Posted By : sean | Comments [0] | Trackbacks [0]
Trackbacks
The URI to TrackBack this entry is :
http://mybloggie.mywebland.com/trackback.php/17
Comments

Add Your Comment

Subject

Comments

Name

Email Address (Optional)

Home Page (Optional)

Security Code

Please enter the security code as displayed :



Text Link Ads
Our Donors

Special thanks to :

  Riccardo Pareschi
  Stefano Bramato
  Louis Newbury-Smith
  Ennis Elec. Publishing
  Nance Overton
  Dirk Wagner
Special Links
Appreciation
Dorra
Mods - examples
SeVeRal [SEO/others]
Recent
Bloggie Lite 0.0.2 beta released
Bloggie Lite
myBloggie 2.1.4
Critical Security Update - myBloggie 2.1.X version
myBloggie customization contest !
New myBloggie template/style
myBloggie 2.1.3 beta is OUT !
Check often for updates
myBloggie 2.1.3 is coming soon
Thank You
Archives
December 2006[1]
June 2006[2]
September 2005[1]
August 2005[1]
July 2005[1]
June 2005[2]
May 2005[1]
April 2005[3]
March 2005[1]
December 2004[2]
October 2004[2]
September 2004[1]

Valid XHTML 1.0!

Template theme : aura
Powered by myBloggie Copyright © 2004 2006
-- myWebland --