-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
This is vulnerable to sql-injection as-is, need to try converting to a proc because you can't use parameters in code blocks like below.
var sql = @$"
DO $$
BEGIN
IF EXISTS
( SELECT 1
FROM information_schema.tables
WHERE table_schema = '{_schema}'
AND table_name = '{_table}'
)
THEN
DELETE FROM {SchemaAndTable}
WHERE
key = '{key}'
AND
etag = '{etag}';
END IF;
END
$$;";
Metadata
Metadata
Assignees
Labels
No labels