XSS Vulnerability after Editing Tags

Issue #2495 resolved
Daniel Zoller created an issue

After successfully editing tags (e.g. adding <script>alert("hallo")</script> as tag) using the modal fast editing dialog, a "hallo" message pops up. Please fix.

Comments (13)

  1. Former user Account Deleted

    I double-checked this. On two different browsers I don't get alerts. hg status is clear and there are no outgoing changesets in eclipse. I definetely changed the right file.

    However I don't get alerts on Biblicious either. So if my changes are not yet on biblicious there could still be something wrong with my setup.

  2. Jennifer Häfner

    I changed the signs "<" and ">" to "<" and ">", later they get changed back. This way no alerts appear.

  3. Daniel Zoller reporter

    I would suggest to use jqueries .text() method which escapes the text by default. No need to use the string replace method.

  4. Log in to comment