You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(profiles): escape search (SQLi), guard bare filter names, robust date parse
Review fixes on the profiles behavioural filter:
- SECURITY (critical): escape `search` in the fuzzy ILIKE clause (list + count)
with sqlstring.escape — was interpolated raw, allowing SQL injection.
- SECURITY (major): reject non-identifier bare event-filter names in
eventFilterClauses before interpolating (column names can't be string-escaped).
- search + behavioural now applies the exact-window clamp + count threshold via
buildBehavioralV2Subquery, so results match the count (was silently dropped).
- last-seen-picker: parse persisted yyyy-MM-dd HH:mm:ss with date-fns instead of
new Date() (Safari returned Invalid Date, leaving the picker empty).
- drop the unrelated CLICKHOUSE_MAX_EXECUTION_TIME cap (separate concern).
0 commit comments