Skip to content
This repository was archived by the owner on Jun 10, 2018. It is now read-only.

Conversation

cantino
Copy link

@cantino cantino commented Oct 24, 2014

Eco's default __escape implementation doesn't escape single quotes, which makes XSS attacks like the following possible:

<input type='text' value='<%= @value %>'>

with a @value of x'onmouseover='alert(document.domain), an XSS occurs.

This fork fixes the issue by using Underscore's escape.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants