Skip to content

Commit 0f8e85f

Browse files
committed
JS: Accept alerts for InsufficientKeySize
1 parent fc95702 commit 0f8e85f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

javascript/ql/test/query-tests/Security/CWE-326/tst.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var bad9 = forge.cipher.createDecipher('3DES-CBC', key3); // $ Alert
3232
var key4 = myBuffer.getBytes(16);
3333
var good5 = forge.cipher.createDecipher('AES-CBC', key4);
3434

35-
var bad10 = crypto.createDiffieHellman(512);
35+
var bad10 = crypto.createDiffieHellman(512); // $ Alert
3636
var good6 = crypto.createDiffieHellman(2048);
3737

3838
const NodeRSA = require('node-rsa');
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const crypto = $.require("crypto");
22

3-
const bad1 = crypto.generateKeyPairSync("rsa", { modulusLength: 1024 }); // NOT OK
3+
const bad1 = crypto.generateKeyPairSync("rsa", { modulusLength: 1024 }); // $ Alert
44

55
const good1 = crypto.generateKeyPairSync("rsa", { modulusLength: 4096 }); // OK

0 commit comments

Comments
 (0)