goinstant / chat

The GoInstant Chat widget provides real-time chat to users inside a room of your application.. This repo will no longer be updated. GoInstant will be discontinued as of August 31, 2014. Read our blog for more details.
https://goinstant.com
BSD 3-Clause "New" or "Revised" License
16 stars 10 forks source link

template: avatarUrl susceptible to XSS #7

Closed gavinuhma closed 10 years ago

gavinuhma commented 10 years ago

The avatarUrl var in the message-template is susceptible to XSS, since it is inserted into our CSS without sanitation and users have permission the set the avatarUrl to anything.

This should be moved out of the template to use DOM instead. Similar to message text.