mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
Promote template injection sinks for each framework covered
`Cheetah` was excluded as it was last updated 15 years ago and its documentation links are dead.
This commit is contained in:
26
python/ql/lib/semmle/python/frameworks/Chameleon.qll
Normal file
26
python/ql/lib/semmle/python/frameworks/Chameleon.qll
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* Provides classes modeling security-relevant aspects of the `chameleon` PyPI package.
|
||||
* See https://chameleon.readthedocs.io/en/latest/.
|
||||
*/
|
||||
|
||||
private import python
|
||||
private import semmle.python.dataflow.new.DataFlow
|
||||
private import semmle.python.ApiGraphs
|
||||
private import semmle.python.Concepts
|
||||
|
||||
/**
|
||||
* INTERNAL: Do not use.
|
||||
*
|
||||
* Provides classes modeling security-relevant aspects of the `chameleon` PyPI package.
|
||||
* See https://chameleon.readthedocs.io/en/latest/.
|
||||
*/
|
||||
module Chameleon {
|
||||
/** A call to `chameleon.PageTemplate`. */
|
||||
private class ChameleonTemplateConstruction extends TemplateConstruction::Range, API::CallNode {
|
||||
ChameleonTemplateConstruction() {
|
||||
this = API::moduleImport("chameleon").getMember("PageTemplate").getACall()
|
||||
}
|
||||
|
||||
override DataFlow::Node getSourceArg() { result = this.getArg(0) }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user