@@ -46,39 +46,39 @@ module FrameworkCandidatesImpl implements SharedCharacteristics::CandidateSig {
4646
4747 RelatedLocation asLocation ( Endpoint e ) { result = e .asParameter ( ) }
4848
49- predicate isKnownLabel ( string label , string humanReadableLabel , EndpointType type ) {
50- label = "read-file" and
51- humanReadableLabel = "read file" and
49+ predicate isKnownKind ( string kind , string humanReadableKind , EndpointType type ) {
50+ kind = "read-file" and
51+ humanReadableKind = "read file" and
5252 type instanceof AutomodelEndpointTypes:: TaintedPathSinkType
5353 or
54- label = "create-file" and
55- humanReadableLabel = "create file" and
54+ kind = "create-file" and
55+ humanReadableKind = "create file" and
5656 type instanceof AutomodelEndpointTypes:: TaintedPathSinkType
5757 or
58- label = "sql" and
59- humanReadableLabel = "mad modeled sql" and
58+ kind = "sql" and
59+ humanReadableKind = "mad modeled sql" and
6060 type instanceof AutomodelEndpointTypes:: SqlSinkType
6161 or
62- label = "open-url" and
63- humanReadableLabel = "open url" and
62+ kind = "open-url" and
63+ humanReadableKind = "open url" and
6464 type instanceof AutomodelEndpointTypes:: RequestForgerySinkType
6565 or
66- label = "jdbc-url" and
67- humanReadableLabel = "jdbc url" and
66+ kind = "jdbc-url" and
67+ humanReadableKind = "jdbc url" and
6868 type instanceof AutomodelEndpointTypes:: RequestForgerySinkType
6969 or
70- label = "command-injection" and
71- humanReadableLabel = "command injection" and
70+ kind = "command-injection" and
71+ humanReadableKind = "command injection" and
7272 type instanceof AutomodelEndpointTypes:: CommandInjectionSinkType
7373 }
7474
75- predicate isSink ( Endpoint e , string label ) {
75+ predicate isSink ( Endpoint e , string kind ) {
7676 exists (
7777 string package , string type , boolean subtypes , string name , string signature , string ext ,
7878 string input
7979 |
8080 sinkSpec ( e , package , type , subtypes , name , signature , ext , input ) and
81- ExternalFlow:: sinkModel ( package , type , subtypes , name , [ signature , "" ] , ext , input , label , _)
81+ ExternalFlow:: sinkModel ( package , type , subtypes , name , [ signature , "" ] , ext , input , kind , _)
8282 )
8383 }
8484
0 commit comments