π‘οΈ Sentinel: [MEDIUM] Fix missing input length limits (DoS risk) - #72
Conversation
π¨ Severity: MEDIUM
π‘ Vulnerability: Client-side Denial of Service (DoS). Unconstrained search/filter input fields across the application (ProjectsApp, BlogApp, Launcher) allowed excessively large string inputs to be parsed and filtered.
π― Impact: A user (or automated tool) pasting a massive string into these fields could cause the UI thread to hang during `useMemo` filtering and substring matching (`toLowerCase().includes()`), leading to an unresponsive tab.
π§ Fix: Added `maxLength={100}` attributes to the `<input>` fields to constrain maximum input size to a reasonable length.
β
Verification: Ran `pnpm lint`, `pnpm test`, `pnpm build`, and `pnpm test:e2e` to ensure no functionality is broken. Added an entry to `.jules/sentinel.md`.
Co-authored-by: schmug <38227427+schmug@users.noreply.github.com>
|
π Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a π emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
This PR adds
maxLength={100}to the search input fields within theProjectsApp,BlogApp, andLaunchercomponents to mitigate potential client-side Denial of Service (DoS) issues. Prior to this change, extremely large strings could be pasted into the inputs, which would hang the UI thread during subsequent filtering iterations.All checks and tests have been passing successfully.
PR created automatically by Jules for task 8725521994027387483 started by @schmug