Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Insight] Website should be protected against XSSVulnerability - in src/Acme/…/views/layout.html.twig, line 34 #8

Open
hajri-aymen opened this issue Apr 16, 2015 · 0 comments

Comments

@hajri-aymen
Copy link

in src/Acme/DemoBundle/Resources/views/layout.html.twig, line 34

Using the |raw filter or the {% autoescape false %} block in a Twig template exposes users to Cross-Site Scripting (XSS) attacks

    </div>

    {% if code is defined %}
        <h2>Code behind this page</h2><div class="block"><div class="symfony-content">{{ code|raw }}</div></div>
    {% endif %}
{% endblock %}

Posted from SensioLabsInsight

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

No branches or pull requests

1 participant