Skip to content

Commit 6bf94e8

Browse files
committed
Added check to disabling certificate validation query
1 parent 0b9d16a commit 6bf94e8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

javascript/ql/src/Security/CWE-295/DisablingCertificateValidation.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ DataFlow::InvokeNode tlsInvocation() {
1919
or
2020
result = DataFlow::moduleMember("https", "Agent").getAnInstantiation()
2121
or
22+
result = DataFlow::moduleMember("https", "createServer").getACall()
23+
or
2224
exists(DataFlow::NewNode new |
2325
new = DataFlow::moduleMember("tls", "TLSSocket").getAnInstantiation()
2426
|
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: majorAnalysis
3+
---
4+
* The `DisablingCertificateValidation.ql` query has been updated to check `createServer` from `https` for disabled certificate validation.

0 commit comments

Comments
 (0)