We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
text
Brakeman version: 7.0.0 Rails version: 7.1.5.1 Ruby version: 3.3.7
The following code:
<%= render( "inventory_unit/shared/inventory_record", text: params.dig(:inventory_unit, :inventory_record, :comment) ) %>
Produces:
Confidence: High Category: Cross-Site Scripting Check: RenderInline Message: Unescaped parameter value rendered inline Code: render(text => params.dig(:inventory_unit, :inventory_record, :comment), {}) File: app/inventory/views/inventory_unit/new.html.erb Line: 86
However, changing the parameter name from text to comment doesn't produce a warning:
comment
<%= render( "inventory_unit/shared/inventory_record", comment: params.dig(:inventory_unit, :inventory_record, :comment) ) %>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Background
Brakeman version: 7.0.0
Rails version: 7.1.5.1
Ruby version: 3.3.7
Issue
The following code:
Produces:
However, changing the parameter name from
text
tocomment
doesn't produce a warning:The text was updated successfully, but these errors were encountered: