Skip to content

Commit 1b3f857

Browse files
committed
Python: Promote ClickHouse SQL models
1 parent eb1da15 commit 1b3f857

File tree

14 files changed

+9
-6
lines changed

14 files changed

+9
-6
lines changed

docs/codeql/support/reusables/frameworks.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ Python built-in support
162162
fabric, Utility library
163163
invoke, Utility library
164164
idna, Utility library
165+
aioch, Database
166+
clickhouse-driver, Database
165167
mysql-connector-python, Database
166168
MySQLdb, Database
167169
psycopg2, Database
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lgtm,codescanning
2+
* Added model of SQL execution in `clickhouse-driver` and `aioch` PyPI packages, resulting in additional sinks for the SQL Injection query (`py/sql-injection`). This modeling was originally [submitted as a contribution by @japroc](https://github.com/github/codeql/pull/5889).

python/ql/src/semmle/python/Frameworks.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
// If you add modeling of a new framework/library, remember to add it it to the docs in
66
// `docs/codeql/support/reusables/frameworks.rst`
7+
private import semmle.python.frameworks.Aioch
8+
private import semmle.python.frameworks.ClickhouseDriver
79
private import semmle.python.frameworks.Cryptodome
810
private import semmle.python.frameworks.Cryptography
911
private import semmle.python.frameworks.Dill

python/ql/src/experimental/semmle/python/frameworks/Aioch.qll renamed to python/ql/src/semmle/python/frameworks/Aioch.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ private import python
99
private import semmle.python.Concepts
1010
private import semmle.python.ApiGraphs
1111
private import semmle.python.frameworks.PEP249
12-
private import experimental.semmle.python.frameworks.ClickhouseDriver
12+
private import semmle.python.frameworks.ClickhouseDriver
1313

1414
/**
1515
* INTERNAL: Do not use.

python/ql/test/experimental/semmle/python/frameworks/clickhouse_driver/ConceptsTest.ql

Lines changed: 0 additions & 3 deletions
This file was deleted.

python/ql/test/experimental/semmle/python/frameworks/options

Lines changed: 0 additions & 1 deletion
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
import python
22
import experimental.meta.ConceptsTest
3-
import experimental.semmle.python.frameworks.Aioch

0 commit comments

Comments
 (0)