File: 017CVE-2008-5113.dpatch

package info (click to toggle)
wordpress 2.0.10-1etch6
  • links: PTS
  • area: main
  • in suites: etch
  • size: 3,040 kB
  • ctags: 7,377
  • sloc: php: 26,382; sh: 4,645; makefile: 23
file content (20 lines) | stat: -rw-r--r-- 900 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh /usr/share/dpatch/dpatch-run
## 017CVE-2008-5113.dpatch by Giuseppe Iuculano <giuseppe@iuculano.it>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fixed CVE-2008-5113: Force REQUEST to be GET + POST.  If SERVER, COOKIE, or ENV are needed, use those superglobals directly. (Closes: #504771)

@DPATCH@
diff -urNad wordpress~/wp-settings.php wordpress/wp-settings.php
--- wordpress~/wp-settings.php	2009-08-15 16:00:19.000000000 +0200
+++ wordpress/wp-settings.php	2009-08-15 16:17:25.000000000 +0200
@@ -22,6 +22,9 @@
 
 unset( $wp_filter, $cache_userdata, $cache_lastcommentmodified, $cache_lastpostdate, $cache_settings, $category_cache, $cache_categories );
 
+// Force REQUEST to be GET + POST.  If SERVER, COOKIE, or ENV are needed, use those superglobals directly. 
+$_REQUEST = array_merge($_GET, $_POST);
+
 if ( ! isset($blog_id) )
 	$blog_id = 1;