mirror of
https://github.com/hohn/codeql-lab.git
synced 2025-12-15 17:43:04 +01:00
19 lines
482 B
Plaintext
19 lines
482 B
Plaintext
/**
|
|
* @name Illustrations
|
|
* @description Illustrations of some codeql classes.
|
|
* @kind table
|
|
*/
|
|
|
|
import java
|
|
import semmle.code.java.dataflow.FlowSources
|
|
import semmle.code.java.security.SqlInjectionQuery
|
|
import QueryInjectionFlow::PathGraph
|
|
|
|
// Find starting points -- UserInput etc. -- from
|
|
// ../ql/java/ql/src/Security/CWE/CWE-089/SqlTainted.ql
|
|
|
|
// using QueryInjectionSink shows a sink. So we're missing a source.
|
|
|
|
from UserInput ui, QueryInjectionSink qsi
|
|
select ui, qsi
|