You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2010/11/04 13:10:10 UTC
svn commit: r1030894 - in /httpd/mod_fcgid/trunk: CHANGES-FCGID
modules/fcgid/fcgid_bucket.c
Author: trawick
Date: Thu Nov 4 12:10:10 2010
New Revision: 1030894
URL: http://svn.apache.org/viewvc?rev=1030894&view=rev
Log:
SECURITY: CVE-2010-3872 (cve.mitre.org)
Fix possible stack buffer overwrite.
PR: 49406
Reported and diagnosed by: Edgar Frank <ef-lists email.de>
Modified:
httpd/mod_fcgid/trunk/CHANGES-FCGID
httpd/mod_fcgid/trunk/modules/fcgid/fcgid_bucket.c
Modified: httpd/mod_fcgid/trunk/CHANGES-FCGID
URL: http://svn.apache.org/viewvc/httpd/mod_fcgid/trunk/CHANGES-FCGID?rev=1030894&r1=1030893&r2=1030894&view=diff
==============================================================================
--- httpd/mod_fcgid/trunk/CHANGES-FCGID [utf8] (original)
+++ httpd/mod_fcgid/trunk/CHANGES-FCGID [utf8] Thu Nov 4 12:10:10 2010
@@ -1,6 +1,10 @@
-*- coding: utf-8 -*-
Changes with mod_fcgid 2.3.6
+ *) SECURITY: CVE-2010-3872 (cve.mitre.org)
+ Fix possible stack buffer overwrite. Diagnosed by the reporter.
+ PR 49406. [Edgar Frank <ef-lists email.de>]
+
*) Change the default for FcgidMaxRequestLen from 1GB to 128K.
Administrators should change this to an appropriate value based on
site requirements. [Jeff Trawick]
Modified: httpd/mod_fcgid/trunk/modules/fcgid/fcgid_bucket.c
URL: http://svn.apache.org/viewvc/httpd/mod_fcgid/trunk/modules/fcgid/fcgid_bucket.c?rev=1030894&r1=1030893&r2=1030894&view=diff
==============================================================================
--- httpd/mod_fcgid/trunk/modules/fcgid/fcgid_bucket.c (original)
+++ httpd/mod_fcgid/trunk/modules/fcgid/fcgid_bucket.c Thu Nov 4 12:10:10 2010
@@ -96,7 +96,7 @@ static apr_status_t fcgid_header_bucket_
/* Initialize header */
putsize = fcgid_min(bufferlen, sizeof(header) - hasread);
- memcpy(&header + hasread, buffer, putsize);
+ memcpy((apr_byte_t *)&header + hasread, buffer, putsize);
hasread += putsize;
/* Ignore the bytes that have read */