aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test1323
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2012-01-11 15:46:19 +0100
committerDaniel Stenberg <daniel@haxx.se>2012-01-24 08:54:26 +0100
commitc11c30a8c8d727dcf5634fa0cc6ee0b4b77ddc3d (patch)
treebb50ea23b104ba2f6d793903164364649fe11b9a /tests/data/test1323
parent75ca568fa1c19de4c5358fed246686de8467c238 (diff)
tests: test CRLF in URLs
Related to the security vulnerability: CVE-2012-0036 Bug: http://curl.haxx.se/docs/adv_20120124.html
Diffstat (limited to 'tests/data/test1323')
-rw-r--r--tests/data/test132329
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/data/test1323 b/tests/data/test1323
new file mode 100644
index 000000000..90eb88b7d
--- /dev/null
+++ b/tests/data/test1323
@@ -0,0 +1,29 @@
+<testcase>
+<info>
+<keywords>
+SMTP
+CRLF-in-URL
+</keywords>
+</info>
+
+# Client-side
+<client>
+<server>
+smtp
+</server>
+ <name>
+SMTP with URL-encoded CR LF in the URL
+ </name>
+ <command>
+smtp://%HOSTIP:%SMTPPORT/%0d%0a/1323
+</command>
+</client>
+
+#
+<verify>
+# 3 - CURLE_URL_MALFORMAT
+<errorcode>
+3
+</errorcode>
+</verify>
+</testcase>