codes****@googl*****
codes****@googl*****
2009年 4月 16日 (木) 01:06:07 JST
Author: tacahi Date: Wed Apr 15 09:04:31 2009 New Revision: 1495 Modified: branches/geeklog-new-tree/CHANGES.jp branches/geeklog-new-tree/extended/release_jp.php branches/geeklog-new-tree/public_html/admin/install/index.php branches/geeklog-new-tree/public_html/docs/changed-files branches/geeklog-new-tree/public_html/docs/changes.html branches/geeklog-new-tree/public_html/docs/history branches/geeklog-new-tree/public_html/docs/history.html branches/geeklog-new-tree/public_html/siteconfig.php branches/geeklog-new-tree/release_jp.php branches/geeklog-new-tree/system/lib-webservices.php Log: trunkから以下にリビジョンをマージします。 r1485, r1486, r1489, r1490, r1491, r1493. Modified: branches/geeklog-new-tree/CHANGES.jp ============================================================================== --- branches/geeklog-new-tree/CHANGES.jp (original) +++ branches/geeklog-new-tree/CHANGES.jp Wed Apr 15 09:04:31 2009 @@ -1,5 +1,18 @@ $Id$ +2009-04-16 Takahiro Kambe <tacahi> + + * geeklog-1.5.2sr2, geeklog-1.5.2sr3の変更箇所の翻訳を改善しました。 + +2009-04-15 Tetsuko Komma <ivysoho> + + * インストーラのSpam-Xプラグインの本家の処理変更に対応しました。 + +2009-04-15 Tetsuko Komma <ivysoho> + + * geeklog-1.5.2sr3をマージして、セキュリティ修正を行いました。 + (http://www.geeklog.net/article.php/geeklog-1.5.2sr3) + 2009-04-05 Takahiro Kambe <tacahi> * geeklog-1.5.2sr2-jp-1.0をリリースします。 Modified: branches/geeklog-new-tree/extended/release_jp.php ============================================================================== --- branches/geeklog-new-tree/extended/release_jp.php (original) +++ branches/geeklog-new-tree/extended/release_jp.php Wed Apr 15 09:04:31 2009 @@ -1,4 +1,4 @@ <?php - $release_no = "1.0.99"; + $release_no = "0.0.99"; $release_date = "$Date$"; ?> Modified: branches/geeklog-new-tree/public_html/admin/install/index.php ============================================================================== --- branches/geeklog-new-tree/public_html/admin/install/index.php (original) +++ branches/geeklog-new-tree/public_html/admin/install/index.php Wed Apr 15 09:04:31 2009 @@ -48,7 +48,7 @@ define("LB", "\n"); } if (!defined('VERSION')) { - define('VERSION', '1.5.2sr2'); + define('VERSION', '1.5.2sr3'); } if (!defined('XHTML')) { define('XHTML', ' /'); @@ -216,6 +216,28 @@ break; } } + } + + return $retval; +} + + +/** +* Check if the Spam-X plugin is already installed +* +* Note: Needed for upgrades from old versions - don't remove. +* +* @return int 1 = is installed, 0 = not installed +* +*/ +function get_SPX_Ver() +{ + global $_TABLES; + + $retval = 0; + + if (DB_count($_TABLES['plugins'], 'pi_name', 'spamx') == 1) { + $retval = 1; } return $retval; Modified: branches/geeklog-new-tree/public_html/docs/changed-files ============================================================================== --- branches/geeklog-new-tree/public_html/docs/changed-files (original) +++ branches/geeklog-new-tree/public_html/docs/changed-files Wed Apr 15 09:04:31 2009 @@ -1,6 +1,6 @@ -geeklog-1.5.2sr2/public_html/admin/install/index.php -geeklog-1.5.2sr2/public_html/docs/changed-files -geeklog-1.5.2sr2/public_html/docs/changes.html -geeklog-1.5.2sr2/public_html/docs/history -geeklog-1.5.2sr2/public_html/siteconfig.php -geeklog-1.5.2sr2/system/lib-sessions.php +geeklog-1.5.2sr3/public_html/admin/install/index.php +geeklog-1.5.2sr3/public_html/docs/changed-files +geeklog-1.5.2sr3/public_html/docs/changes.html +geeklog-1.5.2sr3/public_html/docs/history +geeklog-1.5.2sr3/public_html/siteconfig.php +geeklog-1.5.2sr3/system/lib-webservices.php Modified: branches/geeklog-new-tree/public_html/docs/changes.html ============================================================================== --- branches/geeklog-new-tree/public_html/docs/changes.html (original) +++ branches/geeklog-new-tree/public_html/docs/changes.html Wed Apr 15 09:04:31 2009 @@ -17,10 +17,14 @@ <a href="history">ChangeLog</a>をご覧ください。 <tt>docs/changed-files</tt>には、前回リリース以来変更されたファイルの一覧が あります。</p> +<h2><a name="changes152sr3">Geeklog 1.5.2sr3</a></h2> + +<p>Nine Situations グループの Bookoo が、また別のSQLインジェクションの脆弱 性が webservices API に存在すると報告しました。前回の問題のように、攻撃者は 任意のアカウントのパスワードのハッシュ値を取得できる恐れがありましたが、この リリースで問題は修正されました。</p> + + <h2><a name="changes152sr2">Geeklog 1.5.2sr2</a></h2> -<p>Bookoo of the Nine Situations グループがglFusionに対してSQLインジェクシ ョンがあると報告しました。 -それはGeeklogにおいても同様です。この問題は,アタッカーがどのアカウントに対 してもパスワードハッシュを行うもので,このバージョンで修正されました。.</p> +<p>Nine Situations グループの Bookoo が glFusion に対してSQLインジェクショ ンの脆弱性を報告しましたが、これは Geeklog も該当していました。この問題によ り、攻撃者は任意のアカウントのパスワードのハッシュ値を取得できる恐れがありま したが、このリリースで問題は修正されました。</p> <h2><a name="changes152sr1">Geeklog 1.5.2sr1</a></h2> Modified: branches/geeklog-new-tree/public_html/docs/history ============================================================================== --- branches/geeklog-new-tree/public_html/docs/history (original) +++ branches/geeklog-new-tree/public_html/docs/history Wed Apr 15 09:04:31 2009 @@ -1,5 +1,20 @@ Geeklog History/Changes: +Apr 13, 2009 (1.5.2sr3) +------------ + +This release addresses the following security issue: + +Bookoo of the Nine Situations Group posted another SQL injection exploit, this +time targetting the webservices API. As with the previous issue, this allowed +an attacker to extract the password hash for any account and is fixed with this +release. + +Not security-related: +- Re-introduced function get_SPX_Ver in the install script, which is still + needed when upgrading from old Geeklog releases (reported by Sheila) [Dirk] + + Apr 4, 2009 (1.5.2sr2) ----------- @@ -32,7 +47,7 @@ [Dirk] - Display a message when sending the email for a new password failed [Dirk] -- Updated Estonian language file for the Calendar plugin, provided by Artur R舊p +- Updated Estonian language file for the Calendar plugin, provided by Artur R�pp - Updated Japanese language file, provided by the Geeklog.jp group Static Pages plugin @@ -177,7 +192,7 @@ set name was written in uppercase (bug #0000731) [Dirk] - Updated Hebrew language files, provided by LWC -- Updated Estonian language files, provided by Artur R舊p +- Updated Estonian language files, provided by Artur R�pp - Updated Japanese language files, provided by the Geeklog.jp group - Updated Slovenian language files, provided by gape @@ -337,12 +352,12 @@ when doing a database upgrade or re-running the install (reported by Mark Evans) [Dirk] - Links plugin: The word "Root" wasn't taken from the language file for the page - title of the public list of links (reported by Markus Wollschl臠er) [Dirk] + title of the public list of links (reported by Markus Wollschl�ger) [Dirk] - Fixed remaining places where the Admin panels had inconsistent layouts: Calendar list of events, Polls editor (bug #0000650) [Dirk] - Updated Hebrew language file, provided by LWC -- Updated German language files, provided by Markus Wollschl臠er +- Updated German language files, provided by Markus Wollschl�ger - Some Korean language files had a mixture of CR/LF and LF as line separators (bug #0000655) [Dirk] @@ -383,7 +398,7 @@ - Fixed problems with the text direction in the install script (reported by LWC) [Dirk] -- Updated Estonian language files, provided by Artur R舊p +- Updated Estonian language files, provided by Artur R�pp - Updated Hebrew language files, provided by LWC - Updated Japanese language files, provided by Takahiro Kambe, Tetsuko Komma, and the Geeklog.jp group @@ -411,7 +426,7 @@ future use (cf. bug #0000635) [Dirk] - Updated Chinese language files, provided by Samuel M. Stone -- Updated Estonian language files, provided by Artur R舊p +- Updated Estonian language files, provided by Artur R�pp - Updated Slovenian language file, provided by gape Calendar plugin @@ -446,7 +461,7 @@ - The URL sent in a user registration notification contained an & where it should have been a simple & [Dirk] -- Updated German language files, provided by Markus Wollschl臠er +- Updated German language files, provided by Markus Wollschl�ger Links plugin ------------ @@ -469,7 +484,7 @@ centerblock.thtml template file and defined the {lastupdate} and {hits} variables there (bug #0000628) [Dirk] - Removed an extra } from the Static Pages staticpage.thtml template file - (reported by Markus Wollschl臠er) [Dirk] + (reported by Markus Wollschl�ger) [Dirk] @@ -485,7 +500,7 @@ - Emails sent from Geeklog now have an X-Originating-IP header to help track spam or abuse [Dirk] - The topic editor allowed you to enter topic IDs with more than 20 characters - (reported by Markus Wollschl臠er) [Dirk] + (reported by Markus Wollschl�ger) [Dirk] - Ease restriction that email addresses have to be unique: Remote accounts can have non-unique addresses, on-site accounts can't [Dirk] - Bug: Email user form doesn't display correctly with " in subject when sending @@ -511,7 +526,7 @@ (patches provided by dengen from geeklog.jp) - Added batch admin feature to send out account reminders [Blaine] - Hide "Create Account" link in the story submission form when new account - registration has been disabled (reported by Markus Wollschl臠er) [Dirk] + registration has been disabled (reported by Markus Wollschl�ger) [Dirk] - Updated COM_startBlock to set a unique {blockid} template variable [Blaine] - Fixed checking of "Show Admin lists" in Group Admin when going to 2nd page of results [Oliver] @@ -696,7 +711,7 @@ - In lists created from the Links and Calendar plugins, use "links-new-plugin" as the CSS class name [Oliver] -- Updated Estonian language file, provided by Artur R舊p +- Updated Estonian language file, provided by Artur R�pp - Updated Russian language file, provided by Alexander Yurchenko - New Russian language file for the Calendar plugin, provided by Alexander Yurchenko @@ -852,7 +867,7 @@ display when a user doesn't have a userphoto [Dirk] - New Estonian language files for Geeklog and most of the plugins, provided - by Artur R舊p + by Artur R�pp - Updated Hebrew language file, provided by LWC - Updated Japanese language files for Geeklog and all the plugins, provided by the Geeklog Japanese group Modified: branches/geeklog-new-tree/public_html/docs/history.html ============================================================================== --- branches/geeklog-new-tree/public_html/docs/history.html (original) +++ branches/geeklog-new-tree/public_html/docs/history.html Wed Apr 15 09:04:31 2009 @@ -13,6 +13,20 @@ <h1>Geeklog History/Changes:</h1> +<h2>Apr 13, 2009 (1.5.2sr3)</h2> + +<ul> + <li>This release addresses the following security issue:</li> + <li>Bookoo of the Nine Situations Group posted another SQL injection exploit, this +time targetting the webservices API. As with the previous issue, this allowed +an attacker to extract the password hash for any account and is fixed with this +release.</li> + <li>Not security-related:</li> + <li>- Re-introduced function get_SPX_Ver in the install script, which is still + needed when upgrading from old Geeklog releases (reported by Sheila) [Dirk]</li> +</ul> + + <h2>Apr 4, 2009 (1.5.2sr2)</h2> <ul> Modified: branches/geeklog-new-tree/public_html/siteconfig.php ============================================================================== --- branches/geeklog-new-tree/public_html/siteconfig.php (original) +++ branches/geeklog-new-tree/public_html/siteconfig.php Wed Apr 15 09:04:31 2009 @@ -38,7 +38,7 @@ define('LB',"\n"); } if (!defined('VERSION')) { - define('VERSION', '1.5.2sr2'); + define('VERSION', '1.5.2sr3'); } ?> Modified: branches/geeklog-new-tree/release_jp.php ============================================================================== --- branches/geeklog-new-tree/release_jp.php (original) +++ branches/geeklog-new-tree/release_jp.php Wed Apr 15 09:04:31 2009 @@ -1,4 +1,4 @@ <?php - $release_no = "1.0.99"; + $release_no = "0.0.99"; $release_date = "$Date$"; ?> Modified: branches/geeklog-new-tree/system/lib-webservices.php ============================================================================== --- branches/geeklog-new-tree/system/lib-webservices.php (original) +++ branches/geeklog-new-tree/system/lib-webservices.php Wed Apr 15 09:04:31 2009 @@ -782,7 +782,7 @@ $status = -1; if (isset($_SERVER['PHP_AUTH_USER'])) { - $username = $_SERVER['PHP_AUTH_USER']; + $username = COM_applyBasicFilter($_SERVER['PHP_AUTH_USER']); $password = $_SERVER['PHP_AUTH_PW']; if ($WS_VERBOSE) { @@ -815,7 +815,7 @@ $key = trim($key); $val = trim($val, "\x22\x27"); if ($key == 'Username') { - $username = $val; + $username = COM_applyBasicFilter($val); } elseif ($key == 'PasswordDigest') { $pwdigest = $val; } elseif ($key == 'Created') { @@ -858,6 +858,7 @@ list($auth_type, $auth_data) = explode(' ', $_SERVER['REMOTE_USER']); list($username, $password) = explode(':', base64_decode($auth_data)); + $username = COM_applyBasicFilter($username); if ($WS_VERBOSE) { COM_errorLog("WS: Attempting to log in user '$username' (via \$_SERVER['REMOTE_USER'])");