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

Security issue #67

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Security issue #67

wants to merge 5 commits into from

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.

None yet

2 participants