mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-14 05:49:57 +00:00
09f5a2ac5a
Security Advisory
References
https://nvd.nist.gov/vuln/detail/CVE-2020-7070
https://bugs.php.net/patch-display.php?bug=79699&patch=fix-urldecode&revision=1600650364
https://github.com/php/php-src/blob/master/main/php_variables.c
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit aff8a1fefb)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
25 lines
663 B
Diff
25 lines
663 B
Diff
Subject: Patch fix-urldecode for HTTP related Bug #79699
|
|
|
|
---
|
|
main/php_variables.c | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/main/php_variables.c b/main/php_variables.c
|
|
index 1a40c2a1..cbdc7cf1 100644
|
|
--- a/main/php_variables.c
|
|
+++ b/main/php_variables.c
|
|
@@ -514,7 +514,9 @@ SAPI_API SAPI_TREAT_DATA_FUNC(php_default_treat_data)
|
|
}
|
|
|
|
val = estrndup(val, val_len);
|
|
- php_url_decode(var, strlen(var));
|
|
+ if (arg != PARSE_COOKIE) {
|
|
+ php_url_decode(var, strlen(var));
|
|
+ }
|
|
if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len)) {
|
|
php_register_variable_safe(var, val, new_val_len, &array);
|
|
}
|
|
--
|
|
2.25.1
|
|
|