mirror of
https://github.com/hohn/codeql-dataflow-sql-injection.git
synced 2025-12-18 19:13:04 +01:00
Compare commits
6 Commits
db-for-ana
...
workshop-2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
92a678414d | ||
|
|
00bd07be2b | ||
|
|
ea0311f339 | ||
|
|
ade70e9b32 | ||
|
|
03c38d3c89 | ||
|
|
c532be53d4 |
@@ -15,7 +15,7 @@ module SqliFlowConfig implements DataFlow::ConfigSig {
|
||||
// count = read(STDIN_FILENO, buf, BUFSIZE);
|
||||
exists(FunctionCall read |
|
||||
read.getTarget().getName() = "read" and
|
||||
read.getArgument(1) = source.(DataFlow::PostUpdateNode).getPreUpdateNode().asExpr()
|
||||
read.getArgument(1) = source.(DataFlow::PostUpdateNode).getPreUpdateNode().asIndirectArgument()
|
||||
)
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ module SqliFlowConfig implements DataFlow::ConfigSig {
|
||||
// #endif
|
||||
exists(FunctionCall printf |
|
||||
printf.getTarget().getName().matches("%snprintf%") and
|
||||
printf.getArgument(0) = out.(DataFlow::PostUpdateNode).getPreUpdateNode().asExpr() and
|
||||
printf.getArgument(0) = out.(DataFlow::PostUpdateNode).getPreUpdateNode().asIndirectArgument() and
|
||||
// very specific: shifted index for macro.
|
||||
printf.getArgument(6) = into.asExpr()
|
||||
)
|
||||
|
||||
BIN
cpp-sqli-3fe610d-1.zip
(Stored with Git LFS)
BIN
cpp-sqli-3fe610d-1.zip
(Stored with Git LFS)
Binary file not shown.
@@ -1 +0,0 @@
|
||||
{"languages":{"cpp":{"displayName":"C/C++","files":["add-user.c"],"linesOfCode":78,"name":"cpp"}}}
|
||||
@@ -1,11 +0,0 @@
|
||||
---
|
||||
sourceLocationPrefix: /Users/hohn/local/codeql-dataflow-sql-injection
|
||||
baselineLinesOfCode: 78
|
||||
unicodeNewlines: false
|
||||
columnKind: utf8
|
||||
primaryLanguage: cpp
|
||||
creationMetadata:
|
||||
sha: c1b3c8d901eacddbb7949a8ca3b8acc11ffbda86
|
||||
cliVersion: 2.20.0
|
||||
creationTime: 2025-02-18T01:07:10.558137Z
|
||||
finalised: true
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +0,0 @@
|
||||
20190805:20220702:20240828:20241116
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user