Skip to content

Security Finding (Informational) SEC-028: Twig Template Uses |raw Filter for Menu Rendering #185

Description

@DyanGalih

Finding ID: SEC-028
Location: templates/layout/main.html.twig

Template uses {{ render_menu() | raw }}, rendering menu output without escaping. If MenuExtension::renderMenu() does not properly escape user-controlled content, this may lead to stored XSS.

Impact: Potential stored XSS via menu names/URLs.

Remediation (short): Ensure MenuExtension::renderMenu() properly escapes dynamic content or avoid |raw and rely on Twig escaping.

Reference: SECURITY_REVIEW.md

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions