diff options
author | lev <lev@FreeBSD.org> | 2006-01-04 01:31:56 +0800 |
---|---|---|
committer | lev <lev@FreeBSD.org> | 2006-01-04 01:31:56 +0800 |
commit | 8208102b04d2879008f4d88e0a3e53e988136432 (patch) | |
tree | f2740715ce31daf1cab609e0060c4248f9f352a3 /russian | |
parent | dd868d86f9983d2cf55d3fa5fcd9723c7d38e9e1 (diff) | |
download | freebsd-ports-graphics-8208102b04d2879008f4d88e0a3e53e988136432.tar.gz freebsd-ports-graphics-8208102b04d2879008f4d88e0a3e53e988136432.tar.zst freebsd-ports-graphics-8208102b04d2879008f4d88e0a3e53e988136432.zip |
Fix CAN-2005-3352 (http://www.FreeBSD.org/ports/portaudit/9fff8dc8-7aa7-11da-bf72-00123f589060.html).
Patch was borrowed from `www/apache13' port.
Diffstat (limited to 'russian')
-rw-r--r-- | russian/apache13-modssl/Makefile | 1 | ||||
-rw-r--r-- | russian/apache13-modssl/files/patch-secfix-CAN-2005-3352 | 35 |
2 files changed, 36 insertions, 0 deletions
diff --git a/russian/apache13-modssl/Makefile b/russian/apache13-modssl/Makefile index fd6f9dca2a2..40d2e8e2588 100644 --- a/russian/apache13-modssl/Makefile +++ b/russian/apache13-modssl/Makefile @@ -7,6 +7,7 @@ PORTNAME= apache+mod_ssl PORTVERSION= ${VERSION_APACHE}+${VERSION_RA}+${VERSION_MODSSL} +PORTREVISION?= 1 CATEGORIES= russian www security MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD} \ ${MASTER_SITES_MODSSL:S/$/:modssl/} \ diff --git a/russian/apache13-modssl/files/patch-secfix-CAN-2005-3352 b/russian/apache13-modssl/files/patch-secfix-CAN-2005-3352 new file mode 100644 index 00000000000..8febc0e5893 --- /dev/null +++ b/russian/apache13-modssl/files/patch-secfix-CAN-2005-3352 @@ -0,0 +1,35 @@ +--- src/main/util.c (original) ++++ src/main/util.c Mon Dec 12 08:36:54 2005 +@@ -1722,6 +1722,8 @@ + j += 3; + else if (s[i] == '&') + j += 4; ++ else if (s[i] == '"') ++ j += 5; + + if (j == 0) + return ap_pstrndup(p, s, i); +@@ -1739,6 +1741,10 @@ + else if (s[i] == '&') { + memcpy(&x[j], "&", 5); + j += 4; ++ } ++ else if (s[i] == '"') { ++ memcpy(&x[j], """, 6); ++ j += 5; + } + else + x[j] = s[i]; + +--- src/modules/standard/mod_imap.c (original) ++++ src/modules/standard/mod_imap.c Mon Dec 12 08:36:54 2005 +@@ -328,7 +328,7 @@ + if (!strcasecmp(value, "referer")) { + referer = ap_table_get(r->headers_in, "Referer"); + if (referer && *referer) { +- return ap_pstrdup(r->pool, referer); ++ return ap_escape_html(r->pool, referer); + } + else { + /* XXX: This used to do *value = '\0'; ... which is totally bogus + |