File tree Expand file tree Collapse file tree 11 files changed +27
-27
lines changed
Expand file tree Collapse file tree 11 files changed +27
-27
lines changed Original file line number Diff line number Diff line change @@ -116,10 +116,10 @@ module FileSystemAccess {
116116 }
117117}
118118
119- private class DefaultFileSystemAccess extends FileSystemAccess:: Range , DataFlow:: CallNode {
119+ private class ExternalFileSystemAccess extends FileSystemAccess:: Range , DataFlow:: CallNode {
120120 DataFlow:: ArgumentNode pathArgument ;
121121
122- DefaultFileSystemAccess ( ) {
122+ ExternalFileSystemAccess ( ) {
123123 sinkNode ( pathArgument , "path-injection" ) and
124124 this = pathArgument .getCall ( )
125125 }
@@ -394,10 +394,10 @@ module LoggerCall {
394394 }
395395}
396396
397- private class DefaultLoggerCall extends LoggerCall:: Range , DataFlow:: CallNode {
397+ private class ExternalLoggerCall extends LoggerCall:: Range , DataFlow:: CallNode {
398398 DataFlow:: ArgumentNode messageComponent ;
399399
400- DefaultLoggerCall ( ) {
400+ ExternalLoggerCall ( ) {
401401 sinkNode ( messageComponent , "log-injection" ) and
402402 this = messageComponent .getCall ( )
403403 }
Original file line number Diff line number Diff line change @@ -320,11 +320,11 @@ module Http {
320320 )
321321 }
322322
323- private class DefaultHttpRedirect extends Range , DataFlow:: CallNode {
323+ private class ExternalHttpRedirect extends Range , DataFlow:: CallNode {
324324 DataFlow:: ArgumentNode url ;
325325 int rw ;
326326
327- DefaultHttpRedirect ( ) {
327+ ExternalHttpRedirect ( ) {
328328 this = url .getCall ( ) and
329329 exists ( string kind |
330330 sinkKindInfo ( kind , rw ) and
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ module NoSql {
2424 */
2525 abstract class Range extends DataFlow:: Node { }
2626
27- private class DefaultQueryString extends Range {
28- DefaultQueryString ( ) {
27+ private class ExternalQueryString extends Range {
28+ ExternalQueryString ( ) {
2929 exists ( DataFlow:: ArgumentNode arg | sinkNode ( arg , "nosql-injection" ) |
3030 this = arg .getACorrespondingSyntacticArgument ( )
3131 )
Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ module SQL {
6767 */
6868 abstract class Range extends DataFlow:: Node { }
6969
70- private class DefaultQueryString extends Range {
71- DefaultQueryString ( ) {
70+ private class ExternalQueryString extends Range {
71+ ExternalQueryString ( ) {
7272 exists ( DataFlow:: ArgumentNode arg | sinkNode ( arg , "sql-injection" ) |
7373 not arg instanceof DataFlow:: ImplicitVarargsSlice and
7474 this = arg
Original file line number Diff line number Diff line change 55
66import go
77
8- private class DefaultSystemCommandExecution extends SystemCommandExecution:: Range ,
8+ private class ExternalSystemCommandExecution extends SystemCommandExecution:: Range ,
99 DataFlow:: CallNode
1010{
1111 DataFlow:: ArgumentNode commandName ;
1212
13- DefaultSystemCommandExecution ( ) {
13+ ExternalSystemCommandExecution ( ) {
1414 sinkNode ( commandName , "command-injection" ) and
1515 this = commandName .getCall ( )
1616 }
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ module XPath {
2525 */
2626 abstract class Range extends DataFlow:: Node { }
2727
28- private class DefaultXPathExpressionString extends Range {
29- DefaultXPathExpressionString ( ) { sinkNode ( this , "xpath-injection" ) }
28+ private class ExternalXPathExpressionString extends Range {
29+ ExternalXPathExpressionString ( ) { sinkNode ( this , "xpath-injection" ) }
3030 }
3131 }
3232
Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ module Regexp {
3939 )
4040 }
4141
42- private class DefaultRegexpPattern extends RegexpPattern:: Range , DataFlow:: ArgumentNode {
42+ private class ExternalRegexpPattern extends RegexpPattern:: Range , DataFlow:: ArgumentNode {
4343 int strArg ;
4444
45- DefaultRegexpPattern ( ) {
45+ ExternalRegexpPattern ( ) {
4646 exists ( string kind |
4747 regexSinkKindInfo ( kind , strArg ) and
4848 sinkNode ( this , kind )
@@ -61,12 +61,12 @@ module Regexp {
6161 }
6262 }
6363
64- private class DefaultRegexpMatchFunction extends RegexpMatchFunction:: Range , Function {
64+ private class ExternalRegexpMatchFunction extends RegexpMatchFunction:: Range , Function {
6565 int patArg ;
6666 int strArg ;
6767
68- DefaultRegexpMatchFunction ( ) {
69- exists ( DefaultRegexpPattern drp , string kind |
68+ ExternalRegexpMatchFunction ( ) {
69+ exists ( ExternalRegexpPattern drp , string kind |
7070 drp .getCall ( ) = this .getACall ( ) and
7171 sinkNode ( drp , kind )
7272 |
Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ module HardcodedCredentials {
4343 }
4444
4545 /** A use of a credential. */
46- private class CredentialsSink extends Sink {
47- CredentialsSink ( ) { exists ( string s | s .matches ( "credentials-%" ) | sinkNode ( this , s ) ) }
46+ private class ExternalCredentialsSink extends Sink {
47+ ExternalCredentialsSink ( ) { exists ( string s | s .matches ( "credentials-%" ) | sinkNode ( this , s ) ) }
4848 }
4949
5050 /** A use of a credential. */
Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ module MissingJwtSignatureCheck {
5151
5252 private class DefaultSource extends Source instanceof ActiveThreatModelSource { }
5353
54- private class DefaultSink extends Sink {
55- DefaultSink ( ) { sinkNode ( this , "jwt" ) }
54+ private class ExternalSink extends Sink {
55+ ExternalSink ( ) { sinkNode ( this , "jwt" ) }
5656 }
5757
5858 private class ExternalSanitizer extends Sanitizer {
Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ module RequestForgery {
4444 */
4545 private class ThreatModelFlowAsSource extends Source instanceof ActiveThreatModelSource { }
4646
47- private class DefaultRequestForgerySink extends Sink {
47+ private class ExternalRequestForgerySink extends Sink {
4848 string kind ;
4949
50- DefaultRequestForgerySink ( ) {
50+ ExternalRequestForgerySink ( ) {
5151 exists ( string modelKind | sinkNode ( this , modelKind ) |
5252 modelKind = "request-forgery" and kind = "URL"
5353 or
You can’t perform that action at this time.
0 commit comments