@@ -36,8 +36,8 @@ class PamStartFunc extends Function {
36
36
PamStartFunc ( ) { this .hasQualifiedName ( "github.com/msteinert/pam" , [ "StartFunc" , "Start" ] ) }
37
37
}
38
38
39
- class PamAuthBypassConfiguration extends TaintTracking:: Configuration {
40
- PamAuthBypassConfiguration ( ) { this = "PAM auth bypass" }
39
+ class PamStartToAcctMgmtConfig extends TaintTracking:: Configuration {
40
+ PamStartToAcctMgmtConfig ( ) { this = "PAM auth bypass (Start to AcctMgmt) " }
41
41
42
42
override predicate isSource ( DataFlow:: Node source ) {
43
43
exists ( PamStartFunc p | p .getACall ( ) .getResult ( 0 ) = source )
@@ -48,8 +48,8 @@ class PamAuthBypassConfiguration extends TaintTracking::Configuration {
48
48
}
49
49
}
50
50
51
- class PamAuthBypassConfig extends TaintTracking:: Configuration {
52
- PamAuthBypassConfig ( ) { this = "PAM auth bypass2 " }
51
+ class PamStartToAuthenticateConfig extends TaintTracking:: Configuration {
52
+ PamStartToAuthenticateConfig ( ) { this = "PAM auth bypass (Start to Authenticate) " }
53
53
54
54
override predicate isSource ( DataFlow:: Node source ) {
55
55
exists ( PamStartFunc p | p .getACall ( ) .getResult ( 0 ) = source )
@@ -61,9 +61,9 @@ class PamAuthBypassConfig extends TaintTracking::Configuration {
61
61
}
62
62
63
63
from
64
- PamAuthBypassConfiguration config , PamAuthBypassConfig config2 , DataFlow:: Node source ,
64
+ PamStartToAcctMgmtConfig acctMgmtConfig , PamStartToAuthenticateConfig authConfig , DataFlow:: Node source ,
65
65
DataFlow:: Node sink
66
66
where
67
67
not isInTestFile ( source .asExpr ( ) ) and
68
- ( config2 .hasFlow ( source , sink ) and not config .hasFlow ( source , _) )
68
+ ( authConfig .hasFlow ( source , sink ) and not acctMgmtConfig .hasFlow ( source , _) )
69
69
select source , "This Pam transaction may not be secure."
0 commit comments