Security fixes#3
Open
chicri wants to merge 2 commits into
Open
Conversation
- SQL injection protection: Enhanced keyword blacklist, improved pattern detection for UNION/OR injection, time-based blind injection, hex encoding. Comment stripping prevents SEL/**/ECT bypass. - Identifier escaping: All tools now consistently use escapeIdentifier() with bracket notation instead of quote escaping (get-foreign-keys, get-table-stats, list-views). - SSRF prevention: isValidCallbackUrl() restricts BLUE_PROMPT_CALLBACK_URL to localhost only (localhost, 127.0.0.1, ::1). - Credential handling: getConfig() redacts password with ********, username removed from startup logs. - trustServerCertificate defaults to false (was true). - New --test-connection CLI flag for debugging connectivity issues with helpful error suggestions. - 53 security tests covering all attack vectors. Co-Authored-By: MiniMax-M2.7 <model@minimax.io>
- Add Windows configuration via %USERPROFILE%\.claude.json - Add macOS/Linux JSON config alternative - Document --test-connection and -t flags for debugging - Add error type table with fixes for common connection issues - Restore troubleshooting checklist step for read permissions - Add SQLSERVER_PORT to config examples Co-Authored-By: MiniMax-M2.7 <model@minimax.io>
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.
Security Fixes
New Features
Documentation
Tests