Skip to content

Commit ef592e3

Browse files
Merge pull request #490 from AikidoSec/update-zen-internals
AIK-4113: Update Zen internals to v0.1.34
2 parents f386c7c + ef27c80 commit ef592e3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
INTERNALS_VERSION = v0.1.32
1+
INTERNALS_VERSION = v0.1.34
22
INTERNALS_URL = https://github.com/AikidoSec/zen-internals/releases/download/$(INTERNALS_VERSION)
33
TARBALL = zen_internals.tgz
44
CHECKSUM_FILE = zen_internals.tgz.sha256sum

library/vulnerabilities/sql-injection/detectSQLInjection.sqlite.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ t.test("It ignores postgres dollar signs", async () => {
2323
isNotSQLInjection("SELECT $tag$text$tag$", "$tag$text$tag$");
2424
});
2525

26+
t.test("$$ is treated as placeholder", async () => {
27+
isSqlInjection(
28+
"SELECT * FROM users WHERE id = '1' OR $$ IS NULL -- '",
29+
"1' OR $$ IS NULL -- "
30+
);
31+
});
32+
2633
function isSqlInjection(sql: string, input: string) {
2734
t.same(detectSQLInjection(sql, input, new SQLDialectSQLite()), true, sql);
2835
}

0 commit comments

Comments
 (0)