You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Implement proper PostgreSQL connection parameter escaping and validation
- Replace improper backslash escaping with PostgreSQL libpq standard (double single quotes, double backslashes)
- Add comprehensive validation for connection parameters to prevent injection attacks
- Validate against null bytes and dangerous control characters
- Fix extra options handling in gorm plugin to avoid URL escaping for PostgreSQL
- Add parameter key validation for extra options
- Ensure all connection parameters (hostname, username, password, database) are properly escaped and validated
Follows PostgreSQL libpq connection string standards for security and compatibility.
Co-authored-by: Anguel <modelorona@users.noreply.github.com>
0 commit comments