httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r682868 - /httpd/httpd/trunk/modules/proxy/mod_proxy_ftp.c
Date Tue, 05 Aug 2008 19:00:05 GMT
Author: rpluem
Date: Tue Aug  5 12:00:04 2008
New Revision: 682868

URL: http://svn.apache.org/viewvc?rev=682868&view=rev
Log:
* Prevent XSS attacks when using wildcards in the path of the FTP URL
  (CVE-2008-2939). Discovered by Marc Bevand of Rapid7.

Modified:
    httpd/httpd/trunk/modules/proxy/mod_proxy_ftp.c

Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_ftp.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_ftp.c?rev=682868&r1=682867&r2=682868&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_proxy_ftp.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_proxy_ftp.c Tue Aug  5 12:00:04 2008
@@ -390,6 +390,7 @@
                                                            c->bucket_alloc));
         }
         if (wildcard != NULL) {
+            wildcard = ap_escape_html(p, wildcard);
             APR_BRIGADE_INSERT_TAIL(out, apr_bucket_pool_create(wildcard,
                                                            strlen(wildcard), p,
                                                            c->bucket_alloc));



Mime
View raw message