Skip to content

Fix SQL injection in MSSQL password rotation#2153

Merged
sk-keeper merged 1 commit into
releasefrom
fix/sql-injection-via-pwd-rotation
Jun 16, 2026
Merged

Fix SQL injection in MSSQL password rotation#2153
sk-keeper merged 1 commit into
releasefrom
fix/sql-injection-via-pwd-rotation

Conversation

@amangalampalli-ks

Copy link
Copy Markdown
Contributor

Summary

Fixes SQL injection in MSSQL password rotation via rotate --password and adds defense-in-depth validation for user-supplied rotation passwords.

Changes

  • MSSQL plugin — Use parameterized ALTER LOGIN (%s) and validate/bracket-quote login names
  • rotate command — Reject unsafe --password characters (', ", ;, \, --) with a clear error naming the offending character(s)
  • Plugin manager — Read login/password from labeled typed record fields

* Fix SQL injection in MSSQL password rotation and reject unsafe --password input

* allow / and . in login regex
@amangalampalli-ks amangalampalli-ks self-assigned this Jun 16, 2026
@amangalampalli-ks amangalampalli-ks marked this pull request as ready for review June 16, 2026 06:15
@sk-keeper sk-keeper merged commit 8eff5c5 into release Jun 16, 2026
4 checks passed
@sk-keeper sk-keeper deleted the fix/sql-injection-via-pwd-rotation branch June 16, 2026 14:59
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.

2 participants