summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/curl/curl/CVE-2014-8150.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/curl/curl/CVE-2014-8150.patch')
-rw-r--r--meta/recipes-support/curl/curl/CVE-2014-8150.patch36
1 files changed, 36 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..b5945fbf18
--- /dev/null
+++ b/meta/recipes-support/curl/curl/CVE-2014-8150.patch
@@ -0,0 +1,36 @@
1From 4e2ac2afa94f014a2a015c48c678e2367a63ae82 Mon Sep 17 00:00:00 2001
2From: Daniel Stenberg <daniel@haxx.se>
3Date: Thu, 25 Dec 2014 23:55:03 +0100
4Subject: [PATCH] url-parsing: reject CRLFs within URLs
5
6Bug: http://curl.haxx.se/docs/adv_20150108B.html
7Reported-by: Andrey Labunets
8---
9 lib/url.c | 7 +++++++
10 1 file changed, 7 insertions(+)
11
12diff --git a/lib/url.c b/lib/url.c
13index 788f048..d3bb5e0 100644
14--- a/lib/url.c
15+++ b/lib/url.c
16@@ -3840,10 +3840,17 @@ static CURLcode parseurlandfillconn(struct SessionHandle *data,
17 CURLcode result;
18 bool rebuild_url = FALSE;
19
20 *prot_missing = FALSE;
21
22+ /* We might pass the entire URL into the request so we need to make sure
23+ * there are no bad characters in there.*/
24+ if(strpbrk(data->change.url, "\r\n")) {
25+ failf(data, "Illegal characters found in URL");
26+ return CURLE_URL_MALFORMAT;
27+ }
28+
29 /*************************************************************
30 * Parse the URL.
31 *
32 * We need to parse the url even when using the proxy, because we will need
33 * the hostname and port in case we are trying to SSL connect through the
34--
352.1.4
36