Skip to content

πŸ›‘οΈ Sentinel: [MEDIUM] Fix missing input length limits (DoS risk) - #72

Merged
schmug merged 1 commit into
mainfrom
sentinel-input-limits-8725521994027387483
Apr 29, 2026
Merged

schmug merged 1 commit into
mainfrom
sentinel-input-limits-8725521994027387483

Conversation

@schmug

@schmug schmug commented Apr 29, 2026

Copy link
Copy Markdown
Owner

This PR adds maxLength={100} to the search input fields within the ProjectsApp, BlogApp, and Launcher components 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

🚨 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>
@google-labs-jules

Copy link
Copy Markdown
Contributor

πŸ‘‹ 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@schmug
schmug merged commit c676f6e into main Apr 29, 2026
2 checks passed
@schmug
schmug deleted the sentinel-input-limits-8725521994027387483 branch April 29, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant