• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

XOOPS Cube Legacy base repository


Commit MetaInfo

Revision0533227a209e2cb48323585b2007f2d9ae6a6117 (tree)
Zeit2009-04-02 16:00:30
Autortom_g3x <tom_g3x@704c...>
Commitertom_g3x

Log Message

marged XCL 2.1.16a(Security Release)

git-svn-id: https://xoopscube.svn.sourceforge.net/svnroot/xoopscube/Package_Legacy/trunk@108 704cf05f-ae62-4b0e-a484-234ee0250e75

Ändern Zusammenfassung

Diff

--- a/docs/CHANGES.txt
+++ b/docs/CHANGES.txt
@@ -4,7 +4,6 @@ XOOPS Cube Legacy "Package_Legacy" & "XCube core" Changelog
44 2009/03/?: Package Revision 2.1.7
55 ----------------------------------------
66 [Bug Fix - From Bug Tracker]
7-- Fix Bug #2350320 - Possibility of script injection in ErrorHandler::show.
87 - Fix Bug #2491813 - SmileEditAction include multi byte comment.
98 - Fix Bug #2491817 - SmileEditAction cannnot delete old file.
109 - Fix Bug #2591041 - Typo Legacy_PublicControllerStrategy.class.php.
@@ -49,6 +48,15 @@ XOOPS Cube Legacy "Package_Legacy" & "XCube core" Changelog
4948 - Tohokuaiki
5049 - Tom_G3X
5150
51+
52+----------------------------------------
53+2009/04/02: Package Revision 2.1.6a
54+----------------------------------------
55+[Bug Fix - From Bug Tracker]
56+- Fix Bug IPA#74747784 / JPCERT#95042060 - XSS weakness
57+- Fix Bug #2350320 - Possibility of script injection in ErrorHandler::show.
58+
59+
5260 ----------------------------------------
5361 2008/11/21: Package Revision 2.1.6
5462 ----------------------------------------
--- a/html/modules/legacy/actions/ImageListAction.class.php
+++ b/html/modules/legacy/actions/ImageListAction.class.php
@@ -92,7 +92,7 @@ class Legacy_ImageListAction extends Legacy_AbstractListAction
9292 $render->setAttribute('hasUploadPerm', $hasUploadPerm);
9393 $render->setAttribute("category", $this->mCategory);
9494
95- $render->setAttribute('target', xoops_getrequest('target'));
95+ $render->setAttribute('target', htmlspecialchars(xoops_getrequest('target'), ENT_QUOTES));
9696 }
9797
9898 function executeViewError(&$controller, &$xoopsUser, &$render)
--- a/html/modules/legacy/actions/MiscSmiliesAction.class.php
+++ b/html/modules/legacy/actions/MiscSmiliesAction.class.php
@@ -39,7 +39,10 @@ class Legacy_MiscSmiliesAction extends Legacy_AbstractListAction
3939
4040 function getDefaultView(&$controller, &$xoopsUser)
4141 {
42- $this->mTargetName = xoops_getrequest('target');
42+ $this->mTargetName = trim(xoops_getrequest('target'));
43+ if ($this->mTargetName == '' || !preg_match('/^[a-zA-Z]\w*$/', $this->mTargetName)) {
44+ return LEGACY_FRAME_VIEW_ERROR;
45+ }
4346 return parent::getDefaultView($controller, $xoopsUser);
4447 }
4548
@@ -56,6 +59,11 @@ class Legacy_MiscSmiliesAction extends Legacy_AbstractListAction
5659 $render->setAttribute("pageNavi", $this->mFilter->mNavi);
5760 $render->setAttribute("targetName", $this->mTargetName);
5861 }
62+
63+ function executeViewError(&$controller, &$xoopsUser, &$render)
64+ {
65+ $render->setTemplateName("legacy_dummy.html");
66+ }
5967 }
6068
6169 ?>
--- a/html/modules/legacy/admin/theme/admin_theme.html
+++ b/html/modules/legacy/admin/theme/admin_theme.html
@@ -12,7 +12,7 @@
1212
1313 <script type="text/javascript">
1414 <!-- <![CDATA[
15-var cid = <{if $smarty.get.fct == "preferences" && $smarty.get.mod > 0}><{$smarty.get.mod}><{else}><{$currentModule->mXoopsModule->get('mid')}><{/if}>;
15+var cid = <{if $smarty.get.fct == "preferences" && $smarty.get.mod > 0}><{$smarty.get.mod|intval}><{else}><{$currentModule->mXoopsModule->get('mid')}><{/if}>;
1616 function ccToggle(id)
1717 {
1818 if (!xoopsGetElementById('c' + id)) return;