mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
bugfix: ngx_http_static_module: the 'Locatoin' response header value was not properly encoded by URI rules.
This may impose security vulnerabilities for Location values from untrusted sources. The corresponding tests are in the lua-nginx-module repo.
This commit is contained in:
committed by
Yichun Zhang (agentzh)
parent
4568281eaf
commit
6985198d46
@ -443,6 +443,13 @@ fi
|
||||
|
||||
rm -f *.patch || exit 1
|
||||
|
||||
answer=`$root/util/ver-ge "$main_ver" 1.17.8`
|
||||
if [ "$answer" = "Y" ]; then
|
||||
echo "$info_txt applying the patch for nginx security issue https://hackerone.com/reports/513236"
|
||||
patch -p1 < $root/patches/nginx-$main_ver-static_mod_escape_loc_hdr.patch
|
||||
echo
|
||||
fi
|
||||
|
||||
echo "$info_txt applying the always_enable_cc_feature_tests patch to nginx"
|
||||
patch -p1 < $root/patches/nginx-$main_ver-always_enable_cc_feature_tests.patch
|
||||
echo
|
||||
|
Reference in New Issue
Block a user