File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
cpp/ql/src/experimental/Security/CWE/CWE-285 Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 30
30
<code >chage -E0 `username` </code >
31
31
and then trying to log in.
32
32
</p >
33
- <sample src =" PamAuthorizationBad.c " />
33
+ <sample src =" PamAuthorizationBad.cpp " />
34
34
35
35
<p >
36
36
This can be avoided by calling
37
37
<code >pam_acct_mgmt</code >
38
38
call to verify access as has been done in the snippet shown below.
39
39
</p >
40
- <sample src =" PamAuthorizationGood.c " />
40
+ <sample src =" PamAuthorizationGood.cpp " />
41
41
</example >
42
42
43
43
<references >
Original file line number Diff line number Diff line change 7
7
* @tags security
8
8
* external/cwe/cwe-285
9
9
*/
10
+
10
11
import cpp
11
12
import semmle.code.cpp.dataflow.DataFlow
12
13
import semmle.code.cpp.valuenumbering.GlobalValueNumbering
You can’t perform that action at this time.
0 commit comments