mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
10 lines
303 B
TypeScript
10 lines
303 B
TypeScript
import { Connection } from "@example/mysql";
|
|
|
|
function submit(connection: Connection, q: string) {
|
|
connection.query(q); // <-- add 'q' as a SQL injection sink
|
|
}
|
|
|
|
import { getConnection } from "@example/db";
|
|
let connection = getConnection();
|
|
connection.query(q); // <-- add 'q' as a SQL injection sink
|