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(postgres): prevent path traversal attacks in database names
Add validateDatabase() function to prevent URL-encoded forward slashes
and path traversal patterns in database names. This blocks the reported
attack vector %2f..%2f..%2f and other similar injection attempts.
Security improvements:
- Block URL-encoded forward slashes (%2f, %2F)
- Block literal path traversal patterns (../, ..\)
- Block other problematic URL-encoded characters
- Maintain postgresql:// URL format as required
Co-authored-by: Anguel <modelorona@users.noreply.github.com>
0 commit comments