Skip to content

Non-parameterized SQL queries constructed from untrusted data #2067

@gainsley

Description

@gainsley

SQL queries should use parameterized statements, rather than inline arguments.
Locations:
https://github.com/mobiledgex/edge-cloudinfra/blob/master/mc/orm/orgcloudletpools.go#L69
https://github.com/mobiledgex/edge-cloudinfra/blob/master/mc/rbac/adapter.go#L99-L104
https://github.com/mobiledgex/edge-cloudinfra/blob/master/mc/rbac/adapter.go#L38-L143

These are not currently exploitable, due to the fact that the string arguments are subject to input format checks, but best practice should be to avoid inline arguments.

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