瀏覽代碼

- Security: Possible cookie theft in src/redirect.php if
register_globals is enabled, and malicous site is running
in same domain.

jangliss 19 年之前
父節點
當前提交
19e3a7b32a
共有 2 個文件被更改,包括 4 次插入1 次删除
  1. 3 0
      ChangeLog
  2. 1 1
      functions/strings.php

+ 3 - 0
ChangeLog

@@ -15,6 +15,9 @@ Version 1.5.2 - CVS
   - Fixed View as HTML link so it doesn't forget it was part of a seach result.
   - Don't use delimiter in IMAP subscription command, when noselect folder is
     created.
+  - Security: Possible cookie theft in src/redirect.php if 
+    register_globals is enabled, and malicous site is running
+    in same domain.
   
 	
 Version 1.5.1 (branched on 2006-02-12)

+ 1 - 1
functions/strings.php

@@ -497,7 +497,7 @@ function sqm_baseuri(){
     /**
      * If it is in the session, just return it.
      */
-    if (isset($base_uri)){
+    if (sqgetGlobalVar('base_uri',$base_uri,SQ_SESSION)){
         return $base_uri;
     }
     $dirs = array('|src/.*|', '|plugins/.*|', '|functions/.*|');