mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
JavaScript: Add support for annotation comments specifying additional sources and sinks.
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
| (parameter (member (root https://www.npmjs.com/package/infer-sources) hashPass) 0) | data | InsufficientPasswordHash |
|
||||
| (parameter (member (root https://www.npmjs.com/package/infer-sources) hashPass) 0) | taint | CodeInjection |
|
||||
| (parameter (member (root https://www.npmjs.com/package/infer-sources) hashPass) 0) | taint | InsufficientPasswordHash |
|
||||
| (parameter (member (root https://www.npmjs.com/package/infer-sources) mkdirp) 0) | taint | TaintedPath |
|
||||
| (parameter (member (root https://www.npmjs.com/package/infer-sources) multiple) 0) | data | CodeInjection |
|
||||
| (parameter (member (root https://www.npmjs.com/package/infer-sources) multiple) 0) | data | CommandInjection |
|
||||
| (parameter (member (root https://www.npmjs.com/package/infer-sources) multiple) 0) | taint | CodeInjection |
|
||||
|
||||
@@ -161,6 +161,10 @@ function h(y) {
|
||||
return y;
|
||||
}
|
||||
|
||||
function mkdirp(path) {
|
||||
path /* Semmle: sink: taint, TaintedPath */
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
codeInjection: codeInjection,
|
||||
commandInjection: commandInjection,
|
||||
@@ -183,5 +187,6 @@ module.exports = {
|
||||
notACookieSource: notACookieSource,
|
||||
invoke: invoke,
|
||||
g: g,
|
||||
h: h
|
||||
h: h,
|
||||
mkdirp: mkdirp
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user