summaryrefslogtreecommitdiff
path: root/roundcubemail/tests/src/htmlxss.txt
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-03-02 14:46:12 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-03-02 14:46:12 +0000
commit8cca782e9d0cc388bc3fe3edd66c879a7f9216ab (patch)
tree6f7105c7f996cc4ffc3db700bad4e1ffd0ca92dc /roundcubemail/tests/src/htmlxss.txt
parent9ce66dd16c281d6fb3f927edaa16ec32c656a0a8 (diff)
Create some basic unit tests based in simpletest.org
git-svn-id: https://svn.roundcube.net/trunk@2323 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/tests/src/htmlxss.txt')
-rw-r--r--roundcubemail/tests/src/htmlxss.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/roundcubemail/tests/src/htmlxss.txt b/roundcubemail/tests/src/htmlxss.txt
new file mode 100644
index 000000000..60ceb944e
--- /dev/null
+++ b/roundcubemail/tests/src/htmlxss.txt
@@ -0,0 +1,22 @@
+<html>
+<body>
+
+<p><img onLoad.="alert(document.cookie)" src="skins/default/images/roundcube_logo.png" /></p>
+
+<p><a href="javascript:alert(document.cookie)">mail me!</a>
+<a href="http://roundcube.net" target="_self">roundcube.net</a>
+<a href="http://roundcube.net" \onmouseover="alert('XSS')">roundcube.net (2)</a>
+
+</p>
+
+<div>Brilliant!</div>
+
+<table><tbody><tr><td background="javascript:alert('XSS')">BBBBBB</td></tr></tbody></table>
+
+<p>
+Have a nice Christmas time.<br />
+Thomas
+</p>
+
+</body>
+</html>