Blame SOURCES/0063-curl-7.29.0-CVE-2018-1000120.patch

9d7d3f
From 5452fdc5ae93f3571074c591fdf28cdf630796a0 Mon Sep 17 00:00:00 2001
9d7d3f
From: Daniel Stenberg <daniel@haxx.se>
9d7d3f
Date: Tue, 12 Sep 2017 09:29:01 +0200
9d7d3f
Subject: [PATCH 1/3] FTP: URL decode path for dir listing in nocwd mode
9d7d3f
9d7d3f
Reported-by: Zenju on github
9d7d3f
9d7d3f
Test 244 added to verify
9d7d3f
Fixes #1974
9d7d3f
Closes #1976
9d7d3f
9d7d3f
Upstream-commit: ecf21c551fa3426579463abe34b623111b8d487c
9d7d3f
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
9d7d3f
---
9d7d3f
 lib/ftp.c              | 93 +++++++++++++++++++++++---------------------------
9d7d3f
 tests/data/Makefile.am |  3 +-
9d7d3f
 tests/data/test244     | 54 +++++++++++++++++++++++++++++
9d7d3f
 3 files changed, 99 insertions(+), 51 deletions(-)
9d7d3f
 create mode 100644 tests/data/test244
9d7d3f
9d7d3f
diff --git a/lib/ftp.c b/lib/ftp.c
9d7d3f
index bcba6bb..fb3a716 100644
9d7d3f
--- a/lib/ftp.c
9d7d3f
+++ b/lib/ftp.c
9d7d3f
@@ -1003,7 +1003,7 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
9d7d3f
     char *port_start = NULL;
9d7d3f
     char *port_sep = NULL;
9d7d3f
 
9d7d3f
-    addr = calloc(addrlen+1, 1);
9d7d3f
+    addr = calloc(addrlen + 1, 1);
9d7d3f
     if(!addr)
9d7d3f
       return CURLE_OUT_OF_MEMORY;
9d7d3f
 
9d7d3f
@@ -1041,7 +1041,7 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
9d7d3f
     /* parse the port */
9d7d3f
     if(ip_end != NULL) {
9d7d3f
       if((port_start = strchr(ip_end, ':')) != NULL) {
9d7d3f
-        port_min = curlx_ultous(strtoul(port_start+1, NULL, 10));
9d7d3f
+        port_min = curlx_ultous(strtoul(port_start + 1, NULL, 10));
9d7d3f
         if((port_sep = strchr(port_start, '-')) != NULL) {
9d7d3f
           port_max = curlx_ultous(strtoul(port_sep + 1, NULL, 10));
9d7d3f
         }
9d7d3f
@@ -1469,25 +1469,22 @@ static CURLcode ftp_state_post_listtype(struct connectdata *conn)
9d7d3f
      then just do LIST (in that case: nothing to do here)
9d7d3f
   */
9d7d3f
   char *cmd,*lstArg,*slashPos;
9d7d3f
+  const char *inpath = data->state.path;
9d7d3f
 
9d7d3f
   lstArg = NULL;
9d7d3f
   if((data->set.ftp_filemethod == FTPFILE_NOCWD) &&
9d7d3f
-     data->state.path &&
9d7d3f
-     data->state.path[0] &&
9d7d3f
-     strchr(data->state.path,'/')) {
9d7d3f
-
9d7d3f
-    lstArg = strdup(data->state.path);
9d7d3f
-    if(!lstArg)
9d7d3f
-      return CURLE_OUT_OF_MEMORY;
9d7d3f
+     inpath && inpath[0] && strchr(inpath, '/')) {
9d7d3f
+    size_t n = strlen(inpath);
9d7d3f
 
9d7d3f
     /* Check if path does not end with /, as then we cut off the file part */
9d7d3f
-    if(lstArg[strlen(lstArg) - 1] != '/')  {
9d7d3f
-
9d7d3f
+    if(inpath[n - 1] != '/') {
9d7d3f
       /* chop off the file part if format is dir/dir/file */
9d7d3f
-      slashPos = strrchr(lstArg,'/');
9d7d3f
-      if(slashPos)
9d7d3f
-        *(slashPos+1) = '\0';
9d7d3f
+      slashPos = strrchr(inpath, '/');
9d7d3f
+      n = slashPos - inpath;
9d7d3f
     }
9d7d3f
+    result = Curl_urldecode(data, inpath, n, &lstArg, NULL, FALSE);
9d7d3f
+    if(result)
9d7d3f
+      return result;
9d7d3f
   }
9d7d3f
 
9d7d3f
   cmd = aprintf( "%s%s%s",
9d7d3f
@@ -3328,12 +3325,10 @@ static CURLcode ftp_done(struct connectdata *conn, CURLcode status,
9d7d3f
   }
9d7d3f
 
9d7d3f
   /* get the "raw" path */
9d7d3f
-  path = curl_easy_unescape(data, path_to_use, 0, NULL);
9d7d3f
-  if(!path) {
9d7d3f
+  result = Curl_urldecode(data, path_to_use, 0, &path, NULL, FALSE);
9d7d3f
+  if(result) {
9d7d3f
     /* out of memory, but we can limp along anyway (and should try to
9d7d3f
      * since we may already be in the out of memory cleanup path) */
9d7d3f
-    if(!result)
9d7d3f
-      result = CURLE_OUT_OF_MEMORY;
9d7d3f
     ftpc->ctl_valid = FALSE; /* mark control connection as bad */
9d7d3f
     conn->bits.close = TRUE; /* mark for connection closure */
9d7d3f
     ftpc->prevpath = NULL; /* no path remembering */
9d7d3f
@@ -3644,7 +3639,7 @@ static CURLcode ftp_range(struct connectdata *conn)
9d7d3f
     }
9d7d3f
     else {
9d7d3f
       /* X-Y */
9d7d3f
-      data->req.maxdownload = (to-from)+1; /* include last byte */
9d7d3f
+      data->req.maxdownload = (to - from) + 1; /* include last byte */
9d7d3f
       data->state.resume_from = from;
9d7d3f
       DEBUGF(infof(conn->data, "FTP RANGE from %" FORMAT_OFF_T
9d7d3f
                    " getting %" FORMAT_OFF_T " bytes\n",
9d7d3f
@@ -4333,20 +4328,22 @@ CURLcode ftp_parse_url_path(struct connectdata *conn)
9d7d3f
     }
9d7d3f
     slash_pos=strrchr(cur_pos, '/');
9d7d3f
     if(slash_pos || !*cur_pos) {
9d7d3f
+      CURLcode result;
9d7d3f
       ftpc->dirs = calloc(1, sizeof(ftpc->dirs[0]));
9d7d3f
       if(!ftpc->dirs)
9d7d3f
         return CURLE_OUT_OF_MEMORY;
9d7d3f
 
9d7d3f
-      ftpc->dirs[0] = curl_easy_unescape(conn->data, slash_pos ? cur_pos : "/",
9d7d3f
-                                         slash_pos ?
9d7d3f
-                                         curlx_sztosi(slash_pos-cur_pos) : 1,
9d7d3f
-                                         NULL);
9d7d3f
-      if(!ftpc->dirs[0]) {
9d7d3f
+      result = Curl_urldecode(conn->data, slash_pos ? cur_pos : "/",
9d7d3f
+                              slash_pos ?
9d7d3f
+                              curlx_sztosi(slash_pos-cur_pos) : 1,
9d7d3f
+                              &ftpc->dirs[0], NULL,
9d7d3f
+                              FALSE);
9d7d3f
+      if(result) {
9d7d3f
         freedirs(ftpc);
9d7d3f
-        return CURLE_OUT_OF_MEMORY;
9d7d3f
+        return result;
9d7d3f
       }
9d7d3f
       ftpc->dirdepth = 1; /* we consider it to be a single dir */
9d7d3f
-      filename = slash_pos ? slash_pos+1 : cur_pos; /* rest is file name */
9d7d3f
+      filename = slash_pos ? slash_pos + 1 : cur_pos; /* rest is file name */
9d7d3f
     }
9d7d3f
     else
9d7d3f
       filename = cur_pos;  /* this is a file name only */
9d7d3f
@@ -4378,18 +4375,15 @@ CURLcode ftp_parse_url_path(struct connectdata *conn)
9d7d3f
           /* we skip empty path components, like "x//y" since the FTP command
9d7d3f
              CWD requires a parameter and a non-existent parameter a) doesn't
9d7d3f
              work on many servers and b) has no effect on the others. */
9d7d3f
-          int len = curlx_sztosi(slash_pos - cur_pos + absolute_dir);
9d7d3f
-          ftpc->dirs[ftpc->dirdepth] =
9d7d3f
-            curl_easy_unescape(conn->data, cur_pos - absolute_dir, len, NULL);
9d7d3f
-          if(!ftpc->dirs[ftpc->dirdepth]) { /* run out of memory ... */
9d7d3f
-            failf(data, "no memory");
9d7d3f
-            freedirs(ftpc);
9d7d3f
-            return CURLE_OUT_OF_MEMORY;
9d7d3f
-          }
9d7d3f
-          if(isBadFtpString(ftpc->dirs[ftpc->dirdepth])) {
9d7d3f
+          size_t len = slash_pos - cur_pos + absolute_dir;
9d7d3f
+          CURLcode result =
9d7d3f
+            Curl_urldecode(conn->data, cur_pos - absolute_dir, len,
9d7d3f
+                           &ftpc->dirs[ftpc->dirdepth], NULL,
9d7d3f
+                           TRUE);
9d7d3f
+          if(result) {
9d7d3f
             free(ftpc->dirs[ftpc->dirdepth]);
9d7d3f
             freedirs(ftpc);
9d7d3f
-            return CURLE_URL_MALFORMAT;
9d7d3f
+            return result;
9d7d3f
           }
9d7d3f
         }
9d7d3f
         else {
9d7d3f
@@ -4416,15 +4410,12 @@ CURLcode ftp_parse_url_path(struct connectdata *conn)
9d7d3f
   } /* switch */
9d7d3f
 
9d7d3f
   if(filename && *filename) {
9d7d3f
-    ftpc->file = curl_easy_unescape(conn->data, filename, 0, NULL);
9d7d3f
-    if(NULL == ftpc->file) {
9d7d3f
-      freedirs(ftpc);
9d7d3f
-      failf(data, "no memory");
9d7d3f
-      return CURLE_OUT_OF_MEMORY;
9d7d3f
-    }
9d7d3f
-    if(isBadFtpString(ftpc->file)) {
9d7d3f
+    CURLcode result =
9d7d3f
+      Curl_urldecode(conn->data, filename, 0,  &ftpc->file, NULL, TRUE);
9d7d3f
+
9d7d3f
+    if(result) {
9d7d3f
       freedirs(ftpc);
9d7d3f
-      return CURLE_URL_MALFORMAT;
9d7d3f
+      return result;
9d7d3f
     }
9d7d3f
   }
9d7d3f
   else
9d7d3f
@@ -4442,15 +4433,17 @@ CURLcode ftp_parse_url_path(struct connectdata *conn)
9d7d3f
   if(ftpc->prevpath) {
9d7d3f
     /* prevpath is "raw" so we convert the input path before we compare the
9d7d3f
        strings */
9d7d3f
-    int dlen;
9d7d3f
-    char *path = curl_easy_unescape(conn->data, data->state.path, 0, &dlen);
9d7d3f
-    if(!path) {
9d7d3f
+    size_t dlen;
9d7d3f
+    char *path;
9d7d3f
+    CURLcode result =
9d7d3f
+      Curl_urldecode(conn->data, data->state.path, 0, &path, &dlen, FALSE);
9d7d3f
+    if(result) {
9d7d3f
       freedirs(ftpc);
9d7d3f
-      return CURLE_OUT_OF_MEMORY;
9d7d3f
+      return result;
9d7d3f
     }
9d7d3f
 
9d7d3f
-    dlen -= ftpc->file?curlx_uztosi(strlen(ftpc->file)):0;
9d7d3f
-    if((dlen == curlx_uztosi(strlen(ftpc->prevpath))) &&
9d7d3f
+    dlen -= ftpc->file?strlen(ftpc->file):0;
9d7d3f
+    if((dlen == strlen(ftpc->prevpath)) &&
9d7d3f
        strnequal(path, ftpc->prevpath, dlen)) {
9d7d3f
       infof(data, "Request has same path as previous transfer\n");
9d7d3f
       ftpc->cwddone = TRUE;
9d7d3f
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
9d7d3f
index 56cb286..e7955ee 100644
9d7d3f
--- a/tests/data/Makefile.am
9d7d3f
+++ b/tests/data/Makefile.am
9d7d3f
@@ -28,7 +28,8 @@ test200 test201 test202 test203 test204 test205 test206 test207 test208	\
9d7d3f
 test209 test210 test211 test212 test213 test214 test215 test216 test217	\
9d7d3f
 test218 test220 test221 test222 test223 test224 test225 test226 test227	\
9d7d3f
 test228 test229 test231 test233 test234 test235 test236 test237 test238	\
9d7d3f
-test239 test240 test241 test242 test243 test245 test246 test247 test248	\
9d7d3f
+test239 test240 test241 test242 test243	\
9d7d3f
+test244 test245 test246 test247 test248	\
9d7d3f
 test249 test250 test251 test252 test253 test254 test255 test256 test257	\
9d7d3f
 test258 test259 test260 test261 test262 test263 test264 test265 test266	\
9d7d3f
 test267 test268 test269 test270 test271 test272 test273 test274 test275	\
9d7d3f
diff --git a/tests/data/test244 b/tests/data/test244
9d7d3f
new file mode 100644
9d7d3f
index 0000000..8ce4b63
9d7d3f
--- /dev/null
9d7d3f
+++ b/tests/data/test244
9d7d3f
@@ -0,0 +1,54 @@
9d7d3f
+<testcase>
9d7d3f
+<info>
9d7d3f
+<keywords>
9d7d3f
+FTP
9d7d3f
+PASV
9d7d3f
+CWD
9d7d3f
+--ftp-method
9d7d3f
+nocwd
9d7d3f
+</keywords>
9d7d3f
+</info>
9d7d3f
+#
9d7d3f
+# Server-side
9d7d3f
+<reply>
9d7d3f
+<data mode="text">
9d7d3f
+total 20
9d7d3f
+drwxr-xr-x   8 98       98           512 Oct 22 13:06 .
9d7d3f
+drwxr-xr-x   8 98       98           512 Oct 22 13:06 ..
9d7d3f
+drwxr-xr-x   2 98       98           512 May  2  1996 .NeXT
9d7d3f
+-r--r--r--   1 0        1             35 Jul 16  1996 README
9d7d3f
+lrwxrwxrwx   1 0        1              7 Dec  9  1999 bin -> usr/bin
9d7d3f
+dr-xr-xr-x   2 0        1            512 Oct  1  1997 dev
9d7d3f
+drwxrwxrwx   2 98       98           512 May 29 16:04 download.html
9d7d3f
+dr-xr-xr-x   2 0        1            512 Nov 30  1995 etc
9d7d3f
+drwxrwxrwx   2 98       1            512 Oct 30 14:33 pub
9d7d3f
+dr-xr-xr-x   5 0        1            512 Oct  1  1997 usr
9d7d3f
+</data>
9d7d3f
+</reply>
9d7d3f
+
9d7d3f
+# Client-side
9d7d3f
+<client>
9d7d3f
+<server>
9d7d3f
+ftp
9d7d3f
+</server>
9d7d3f
+ <name>
9d7d3f
+FTP dir listing with nocwd and URL encoded path
9d7d3f
+ </name>
9d7d3f
+ <command>
9d7d3f
+--ftp-method nocwd ftp://%HOSTIP:%FTPPORT/fir%23t/th%69rd/244/
9d7d3f
+</command>
9d7d3f
+</client>
9d7d3f
+
9d7d3f
+# Verify data after the test has been "shot"
9d7d3f
+<verify>
9d7d3f
+<protocol>
9d7d3f
+USER anonymous
9d7d3f
+PASS ftp@example.com
9d7d3f
+PWD
9d7d3f
+EPSV
9d7d3f
+TYPE A
9d7d3f
+LIST fir#t/third/244/
9d7d3f
+QUIT
9d7d3f
+</protocol>
9d7d3f
+</verify>
9d7d3f
+</testcase>
9d7d3f
-- 
9d7d3f
2.14.3
9d7d3f
9d7d3f
9d7d3f
From 295fc8b0dc5c94a1cbf6688bfba768128b13cde6 Mon Sep 17 00:00:00 2001
9d7d3f
From: Daniel Stenberg <daniel@haxx.se>
9d7d3f
Date: Wed, 2 Nov 2016 07:22:27 +0100
9d7d3f
Subject: [PATCH 2/3] ftp_done: don't clobber the passed in error code
9d7d3f
9d7d3f
Coverity CID 1374359 pointed out the unused result value.
9d7d3f
9d7d3f
Upstream-commit: f81a8364618caf99b4691ffd494a9b2d4c9fb1f6
9d7d3f
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
9d7d3f
---
9d7d3f
 lib/ftp.c | 9 +++++----
9d7d3f
 1 file changed, 5 insertions(+), 4 deletions(-)
9d7d3f
9d7d3f
diff --git a/lib/ftp.c b/lib/ftp.c
9d7d3f
index 9da5a24..0259a14 100644
9d7d3f
--- a/lib/ftp.c
9d7d3f
+++ b/lib/ftp.c
9d7d3f
@@ -3324,11 +3324,12 @@ static CURLcode ftp_done(struct connectdata *conn, CURLcode status,
9d7d3f
     ftpc->known_filesize = -1;
9d7d3f
   }
9d7d3f
 
9d7d3f
-  /* get the "raw" path */
9d7d3f
-  result = Curl_urldecode(data, path_to_use, 0, &path, NULL, FALSE);
9d7d3f
+  if(!result)
9d7d3f
+    /* get the "raw" path */
9d7d3f
+    result = Curl_urldecode(data, path_to_use, 0, &path, NULL, FALSE);
9d7d3f
   if(result) {
9d7d3f
-    /* out of memory, but we can limp along anyway (and should try to
9d7d3f
-     * since we may already be in the out of memory cleanup path) */
9d7d3f
+    /* We can limp along anyway (and should try to since we may already be in
9d7d3f
+     * the error path) */
9d7d3f
     ftpc->ctl_valid = FALSE; /* mark control connection as bad */
9d7d3f
     conn->bits.close = TRUE; /* mark for connection closure */
9d7d3f
     ftpc->prevpath = NULL; /* no path remembering */
9d7d3f
-- 
9d7d3f
2.14.4
9d7d3f
9d7d3f
9d7d3f
From 9534442aae1da4e6cf2ce815e47dbcd82695c3d4 Mon Sep 17 00:00:00 2001
9d7d3f
From: Daniel Stenberg <daniel@haxx.se>
9d7d3f
Date: Wed, 31 Jan 2018 08:40:11 +0100
9d7d3f
Subject: [PATCH 3/3] FTP: reject path components with control codes
9d7d3f
9d7d3f
Refuse to operate when given path components featuring byte values lower
9d7d3f
than 32.
9d7d3f
9d7d3f
Previously, inserting a %00 sequence early in the directory part when
9d7d3f
using the 'singlecwd' ftp method could make curl write a zero byte
9d7d3f
outside of the allocated buffer.
9d7d3f
9d7d3f
Test case 340 verifies.
9d7d3f
9d7d3f
CVE-2018-1000120
9d7d3f
Reported-by: Duy Phan Thanh
9d7d3f
Bug: https://curl.haxx.se/docs/adv_2018-9cd6.html
9d7d3f
9d7d3f
Upstream-commit: 535432c0adb62fe167ec09621500470b6fa4eb0f
9d7d3f
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
9d7d3f
---
9d7d3f
 lib/ftp.c              |  8 ++++----
9d7d3f
 tests/data/Makefile.am |  1 +
9d7d3f
 tests/data/test340     | 40 ++++++++++++++++++++++++++++++++++++++++
9d7d3f
 3 files changed, 45 insertions(+), 4 deletions(-)
9d7d3f
 create mode 100644 tests/data/test340
9d7d3f
9d7d3f
diff --git a/lib/ftp.c b/lib/ftp.c
9d7d3f
index fb3a716..268efdd 100644
9d7d3f
--- a/lib/ftp.c
9d7d3f
+++ b/lib/ftp.c
9d7d3f
@@ -1482,7 +1482,7 @@ static CURLcode ftp_state_post_listtype(struct connectdata *conn)
9d7d3f
       slashPos = strrchr(inpath, '/');
9d7d3f
       n = slashPos - inpath;
9d7d3f
     }
9d7d3f
-    result = Curl_urldecode(data, inpath, n, &lstArg, NULL, FALSE);
9d7d3f
+    result = Curl_urldecode(data, inpath, n, &lstArg, NULL, TRUE);
9d7d3f
     if(result)
9d7d3f
       return result;
9d7d3f
   }
9d7d3f
@@ -3326,7 +3326,7 @@ static CURLcode ftp_done(struct connectdata *conn, CURLcode status,
9d7d3f
 
9d7d3f
   if(!result)
9d7d3f
     /* get the "raw" path */
9d7d3f
-    result = Curl_urldecode(data, path_to_use, 0, &path, NULL, FALSE);
9d7d3f
+    result = Curl_urldecode(data, path_to_use, 0, &path, NULL, TRUE);
9d7d3f
   if(result) {
9d7d3f
     /* We can limp along anyway (and should try to since we may already be in
9d7d3f
      * the error path) */
9d7d3f
@@ -4338,7 +4338,7 @@ CURLcode ftp_parse_url_path(struct connectdata *conn)
9d7d3f
                               slash_pos ?
9d7d3f
                               curlx_sztosi(slash_pos-cur_pos) : 1,
9d7d3f
                               &ftpc->dirs[0], NULL,
9d7d3f
-                              FALSE);
9d7d3f
+                              TRUE);
9d7d3f
       if(result) {
9d7d3f
         freedirs(ftpc);
9d7d3f
         return result;
9d7d3f
@@ -4437,7 +4437,7 @@ CURLcode ftp_parse_url_path(struct connectdata *conn)
9d7d3f
     size_t dlen;
9d7d3f
     char *path;
9d7d3f
     CURLcode result =
9d7d3f
-      Curl_urldecode(conn->data, data->state.path, 0, &path, &dlen, FALSE);
9d7d3f
+      Curl_urldecode(conn->data, data->state.path, 0, &path, &dlen, TRUE);
9d7d3f
     if(result) {
9d7d3f
       freedirs(ftpc);
9d7d3f
       return result;
9d7d3f
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
9d7d3f
index e7955ee..910db5b 100644
9d7d3f
--- a/tests/data/Makefile.am
9d7d3f
+++ b/tests/data/Makefile.am
9d7d3f
@@ -39,6 +39,7 @@ test294 test295 test296 test297 test298 test299 test300 test301 test302	\
9d7d3f
 test303 test304 test305 test306 test307 test308 test309 test310 test311	\
9d7d3f
 test312 test313 test317 test318 \
9d7d3f
 test320 test321 test322 test323 test324 test350 test351	\
9d7d3f
+test340	\
9d7d3f
 test352 test353 test354 test400 test401 test402 test403 test404 test405	\
9d7d3f
 test406 test407 test408 test409 test500 test501 test502 test503 test504	\
9d7d3f
 test505 test506 test507 test508 test510 test511 test512 test513 test514	\
9d7d3f
diff --git a/tests/data/test340 b/tests/data/test340
9d7d3f
new file mode 100644
9d7d3f
index 0000000..d834d76
9d7d3f
--- /dev/null
9d7d3f
+++ b/tests/data/test340
9d7d3f
@@ -0,0 +1,40 @@
9d7d3f
+<testcase>
9d7d3f
+<info>
9d7d3f
+<keywords>
9d7d3f
+FTP
9d7d3f
+PASV
9d7d3f
+CWD
9d7d3f
+--ftp-method
9d7d3f
+singlecwd
9d7d3f
+</keywords>
9d7d3f
+</info>
9d7d3f
+#
9d7d3f
+# Server-side
9d7d3f
+<reply>
9d7d3f
+</reply>
9d7d3f
+
9d7d3f
+# Client-side
9d7d3f
+<client>
9d7d3f
+<server>
9d7d3f
+ftp
9d7d3f
+</server>
9d7d3f
+ <name>
9d7d3f
+FTP using %00 in path with singlecwd
9d7d3f
+ </name>
9d7d3f
+ <command>
9d7d3f
+--ftp-method singlecwd ftp://%HOSTIP:%FTPPORT/%00first/second/third/340
9d7d3f
+</command>
9d7d3f
+</client>
9d7d3f
+
9d7d3f
+# Verify data after the test has been "shot"
9d7d3f
+<verify>
9d7d3f
+<protocol>
9d7d3f
+USER anonymous
9d7d3f
+PASS ftp@example.com
9d7d3f
+PWD
9d7d3f
+</protocol>
9d7d3f
+<errorcode>
9d7d3f
+3
9d7d3f
+</errorcode>
9d7d3f
+</verify>
9d7d3f
+</testcase>
9d7d3f
-- 
9d7d3f
2.14.3
9d7d3f