JavaScript Code injection -> Time slider

15 views
Skip to first unread message

NineBerry

unread,
Apr 11, 2010, 4:19:39 PM4/11/10
to EtherPad Open Source Discussion
Hi

There is a vulnerability in the Timeline slider code. It is possible
to inject javascript code by choosing the appropriate user name.

When using the username "<script>alert(0)</script>", the alert
function will be executed when viewing the timeline slider.

Quick fix: Change broadcast_slider.js and change the line

nametd.html(author.name || "unnamed");

to

nametd.text(author.name || "unnamed");

i.e. have JQuery escape possible html code in the username.

Reply all
Reply to author
Forward
0 new messages