fix(installer): validate nuclei ignore file downloads - #7658
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. WalkthroughThe installer now validates downloaded ChangesIgnore file validation
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to Ignore-file downloads now reject invalid responses while preserving the existing configuration, preventing corrupted updates from causing later parsing failures. No merge-blocking risk is currently identified. Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Neo - PR Security ReviewNo exploitable vulnerabilities in this commit — the only change is a one-line test assertion fix with no production code touched. Hardening Notes
What Neo reviewed
Comment |
Summary
Fixes #7651.
Prevent invalid responses from the nuclei-ignore update endpoint from replacing the local
.nuclei-ignorefile.UpdateIgnoreFilepreviously wrote the response body directly to disk. Corporate filtering proxies can return an HTML block page instead of the ignore file, including with a successful HTTP response, leaving.nuclei-ignorecorrupted and causing parse errors on subsequent runs.Changes
tagsorfilesshape before writing it.nuclei-ignorewhen validation failsValidation
make vetmake buildmake testValidation passed on Linux, Windows, and macOS.
Summary by CodeRabbit
Bug Fixes
Tests