-
Notifications
You must be signed in to change notification settings - Fork 24
Unsafe constantize #36
Copy link
Copy link
Open
Description
field.singularize.classify.constantize
can cause arbitrary class loading or potential exploitation / unexpected behavior
model_class = ALLOWED_ASSOCIATIONS[field.to_sym]
fail %(Association "#{field}" not allowed) unless model_class
filter_result = parse_filters(data, safe, model_class)
fix to this
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels