mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-15 20:05:13 +02:00
feat(dynamic): add synthetic-fallback handling for partial confirmations and improve validation propagation
This commit is contained in:
parent
1ebeb233c4
commit
5615074177
9 changed files with 261 additions and 8 deletions
|
|
@ -288,6 +288,11 @@ pub static RULES: &[LabelRule] = &[
|
|||
case_sensitive: true,
|
||||
},
|
||||
// SQL injection: sqlite3 / SQLAlchemy / generic DB connection execute.
|
||||
// `cur` / `cursor` are the canonical psycopg2 / aiopg / aiosqlite cursor
|
||||
// aliases; `cur.execute(q)` on a DB cursor is unambiguous and was a recall
|
||||
// gap (dvpwa blind-SQLi uses `cur.execute`). `match_suffix_cs` is
|
||||
// word-boundary anchored, so `cur.execute` does not collide with
|
||||
// `cursor.execute`.
|
||||
LabelRule {
|
||||
matchers: &[
|
||||
"conn.execute",
|
||||
|
|
@ -295,6 +300,10 @@ pub static RULES: &[LabelRule] = &[
|
|||
"session.execute",
|
||||
"engine.execute",
|
||||
"db.execute",
|
||||
"cur.execute",
|
||||
"cur.executemany",
|
||||
"cursor.executescript",
|
||||
"cur.executescript",
|
||||
],
|
||||
label: DataLabel::Sink(Cap::SQL_QUERY),
|
||||
case_sensitive: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue