fix(security): close remaining security audit items 3 & 4 (CWE-918, CWE-209)#552
Open
LuisMIguelFurlanettoSousa wants to merge 8 commits intoCrosstalk-Solutions:mainfrom
Conversation
Collaborator
Collaborator
|
UPDATE: Roadmap item planned for a future version |
chriscrosstalk
approved these changes
Apr 10, 2026
Collaborator
chriscrosstalk
left a comment
There was a problem hiding this comment.
Thanks for closing out the remaining audit items. The approach is exactly right:
- Item 3 (SSRF): Using the existing
assertNotPrivateUrl()validator is the clean way to extend coverage to the map download paths. Scope is correct — loopback/link-local blocked, RFC1918 preserved for LAN mirror use cases. - Item 4 (verbose errors): Structured
logger.error({ err: error }, ...)with sanitized client-facing strings is the right pattern for pino. Coverage across controllers and services looks thorough.
Two things before this can merge:
- Base branch should be
dev, notmain. Please rebase againstdev. - Status is currently CONFLICTING — the rebase should resolve this.
I'm also going to swap the label from Roadmap Item to Next Release — security hardening shouldn't live in the roadmap bucket, and closing out the audit items is the kind of work that should land in the next cycle rather than drift.
Approving in principle pending the rebase. Once that's sorted, this is ready to ship. Thanks for sticking with the contribution pattern — you've submitted several PRs recently and the test/security discipline is appreciated.
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes remaining medium-priority items from the pre-launch security audit (issue #211):
Item 3 — Content Update URL Injection (CWE-918): Added
assertNotPrivateUrl()SSRF validation tomap_service.tsdownload flows. Previously, URLs from the cached manifest could bypass validation. Now loopback/link-local addresses are blocked at the download boundary, while RFC1918 (LAN) addresses remain allowed for LAN appliance use.Item 4 — Verbose Error Messages (CWE-209): Sanitized 21+ locations across 8 files where raw
error.messageleaked to HTTP responses or WebSocket broadcasts. Internal details (paths, stack traces, Docker errors, DB connection strings) are now logged server-side only via structuredlogger.error(). Clients receive generic, descriptive error messages.Files Changed
map_service.tsdownloadCollection()+preflightRemoteDownload()rag_controller.tsdetails: error.messagefrom responsebenchmark_controller.tssystem_controller.tschats_controller.tsdocker_service.tssystem_update_service.tscollection_update_service.tsRelated Issues
Addresses items 3 and 4 from #211
Test Plan