mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-22 14:01:42 +03:00
The database name, account and server address are prefilled from URL query parameters and were pasted into the script as is, so a crafted link could add statements to the SQL a user copies and runs (e.g. a database name containing `` `; DROP DATABASE prod; -- ``). A password containing `'` also produced invalid SQL. - Quote identifiers and string literals per dialect. - PostgreSQL passwords containing a backslash are emitted as E'' strings, which parse the same whatever standard_conforming_strings is set to. - Oracle has no escape for `"` in quoted names or passwords, so either one containing `"` shows a validation error instead of generating SQL. Plain Oracle names stay unquoted since quoting makes them case-sensitive. - Newlines in values that land in SQL comments are flattened. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>