π‘οΈ Sentinel: [HIGH] Fix DoS risk and Info Leak in forge-logs API - #217
π‘οΈ Sentinel: [HIGH] Fix DoS risk and Info Leak in forge-logs API#217bobdivx wants to merge 1 commit into
Conversation
- Replaced synchronous `execSync` with asynchronous `execFile` (promisified) to prevent event loop blocking in API routes. - Added parameter validation to prevent argument injection. - Replaced error messages containing system `stderr` or `stdout` outputs with a purely generic fallback to prevent absolute server paths from leaking to the client. - Logged findings in `.jules/sentinel.md` as required. Co-authored-by: bobdivx <6737167+bobdivx@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. |
π¨ Severity: HIGH
π‘ Vulnerability: Event loop blocking via `execSync` and information leakage via uncaught error messages in the logs API endpoint.
π― Impact: An attacker could potentially cause a Denial of Service by repeatedly calling the endpoint, blocking the Node.js event loop. Additionally, server absolute paths could be exposed via error messages if system commands fail.
π§ Fix: Replaced synchronous `execSync` with asynchronous `execFile` to prevent event loop blocking. Replaced leaked error messages with a purely generic fallback.
β Verification: Verified via automated tests and type checks (
pnpm check && pnpm test).PR created automatically by Jules for task 9490418225248684565 started by @bobdivx