mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
add model for the gray-matter libary to js/code-injection
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
---
|
||||
category: minorAnalysis
|
||||
---
|
||||
* The `gray-matter` library is now modeled as a sink for the `js/code-injection` query.
|
||||
@@ -51,6 +51,11 @@ module CodeInjection {
|
||||
}
|
||||
}
|
||||
|
||||
/** An expression parsed by the `gray-matter` library. */
|
||||
class GrayMatterSink extends Sink {
|
||||
GrayMatterSink() { this = DataFlow::moduleImport("gray-matter").getACall().getArgument(0) }
|
||||
}
|
||||
|
||||
/**
|
||||
* A template tag occurring in JS code, viewed as a code injection sink.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user