From 55cd82008e9b35b9a03a80e06d5a4c4601320211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vytautas=20=C5=A0altenis?= Date: Wed, 22 Jan 2014 01:14:35 +0200 Subject: [PATCH] Rewrite protection against JavaScript injection This drops the naive approach at \n", - "

alert()

\n", + "alert()\n", "\n", - "

\n", + "\n", + + "\n", + "\n", "zz \n", "

zz

\n", "zz \n", "

zz

\n", + + ``, + "\n", + + `'';!--"=&{()}`, + "

'';!--"=&{()}

\n", + + "", + "

\n", + + "", + "

\n", + + ``, + "

\n", + + "", + "

\n", + + "", + "

\n", + + "", + "

\n", + + `xss link`, + "

xss link

\n", + + "xss link", + "

xss link

\n", + + // XXX: this doesn't pass yet + //`">`, + //"

\n", + + "", + "

\n", + + ``, + "

\n", + + ``, + "

\n", + + ``, + "

\n", + + "", + "

\n", + + "", + "

\n", + + "", + "

\n", + + ``, + "

\n", + + ``, + "

\n", + + ``, + "

\n", + + ``, + "

\n", + + ``, + "

\n", + + ``, + "

\n", + + // XXX: this doesn't pass yet + //"", + //"\n", + + ``, + "

\n", + + // XXX: this doesn't pass yet + //`<`, + //"", + + "