Skip to content

code-gen: fix sql injection in sqlWhereClauseUnsafe template #126

@tjonger

Description

@tjonger

Issue with inline params, instead of binded/prepared once. This was due an issue in the vendor postgres library. (porsager/postgres#58)

Should be done right (packages/code-gen/src/generators/sql/templates/sqlWhereClauseUnsafe.tmpl):
query += ANY (ARRAY['${where.{{= it.name }}.join("\', \'")}']::uuid[]); L22

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions