Skip to content

gosql-sqli rule:ExecContent should be ExecContext #3694

@LBxiaobai

Description

@LBxiaobai

Describe the bug:
In the gosql-sqli rule, on line 36, the regex ^(Exec|ExecContent|Query|QueryContext|QueryRow|QueryRowContext)$ contains ExecContent, which should be ExecContext.

url:
https://github.com/semgrep/semgrep-rules/blob/develop/go/lang/security/audit/sqli/gosql-sqli.yaml

36 Line:
regex: ^(Exec|ExecContent|Query|QueryContext|QueryRow|QueryRowContext)$
ExecContent should be ExecContext

fix: regex: ^(Exec|ExecContext|Query|QueryContext|QueryRow|QueryRowContext)$

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions