diff options
Diffstat (limited to 'meta/recipes-support/curl/curl/CVE-2014-8150.patch')
-rw-r--r-- | meta/recipes-support/curl/curl/CVE-2014-8150.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-support/curl/curl/CVE-2014-8150.patch b/meta/recipes-support/curl/curl/CVE-2014-8150.patch new file mode 100644 index 0000000000..9a0828076c --- /dev/null +++ b/meta/recipes-support/curl/curl/CVE-2014-8150.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 4e2ac2afa94f014a2a015c48c678e2367a63ae82 Mon Sep 17 00:00:00 2001 | ||
2 | From: Daniel Stenberg <daniel@haxx.se> | ||
3 | Date: Thu, 25 Dec 2014 23:55:03 +0100 | ||
4 | Subject: [PATCH] url-parsing: reject CRLFs within URLs | ||
5 | |||
6 | Bug: http://curl.haxx.se/docs/adv_20150108B.html | ||
7 | Reported-by: Andrey Labunets | ||
8 | --- | ||
9 | lib/url.c | 7 +++++++ | ||
10 | 1 file changed, 7 insertions(+) | ||
11 | |||
12 | Index: curl-7.37.1/lib/url.c | ||
13 | =================================================================== | ||
14 | --- curl-7.37.1.orig/lib/url.c | ||
15 | +++ curl-7.37.1/lib/url.c | ||
16 | @@ -3756,6 +3756,13 @@ static CURLcode parseurlandfillconn(stru | ||
17 | |||
18 | *prot_missing = FALSE; | ||
19 | |||
20 | + /* We might pass the entire URL into the request so we need to make sure | ||
21 | + * there are no bad characters in there.*/ | ||
22 | + if(strpbrk(data->change.url, "\r\n")) { | ||
23 | + failf(data, "Illegal characters found in URL"); | ||
24 | + return CURLE_URL_MALFORMAT; | ||
25 | + } | ||
26 | + | ||
27 | /************************************************************* | ||
28 | * Parse the URL. | ||
29 | * | ||