8000 CPP: PAM Authorization Bypass · Pull Request #8775 · github/codeql · GitHub
[go: up one dir, main page]

Skip to content

CPP: PAM Authorization Bypass #8775

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from Apr 29, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix formatting issues
  • Loading branch information
Porcupiney Hairs committed Apr 20, 2022
commit 06edb3f3a1e4714c9d4b7074f98425fb3faa03ee
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
<code>chage -E0 `username` </code>
and then trying to log in.
</p>
<sample src="PamAuthorizationBad.c" />
<sample src="PamAuthorizationBad.cpp" />

<p>
This can be avoided by calling
<code>pam_acct_mgmt</code>
call to verify access as has been done in the snippet shown below.
</p>
<sample src="PamAuthorizationGood.c" />
<sample src="PamAuthorizationGood.cpp" />
</example>

<references>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @tags security
* external/cwe/cwe-285
*/

import cpp
import semmle.code.cpp.dataflow.DataFlow
import semmle.code.cpp.valuenumbering.GlobalValueNumbering
Expand Down
0