René's URL Explorer Experiment


Title: CPP: PAM Authorization Bypass · Pull Request #8775 · github/codeql · GitHub

Open Graph Title: CPP: PAM Authorization Bypass · Pull Request #8775 · github/codeql

X Title: CPP: PAM Authorization Bypass · Pull Request #8775 · github/codeql

Description: This PR is similar to my other PRs for Python and Golang. This PR aims to detect instances were an initiated PAM Transaction invokes the pam_authenticate method but does not call the pam_acct_mgmt method. This is bad as a call to pam_authenticate only verifies the users credentials. It does not check if the user account is still is a valid state. If only a call to pam_authenticate is used to verify the user, a user with an expired account password would still be able to login. This can be prevented by calling the pam_acct_mgmt function after a pam_authenticate function.

Open Graph Description: This PR is similar to my other PRs for Python and Golang. This PR aims to detect instances were an initiated PAM Transaction invokes the pam_authenticate method but does not call the pam_acct_mgmt ...

X Description: This PR is similar to my other PRs for Python and Golang. This PR aims to detect instances were an initiated PAM Transaction invokes the pam_authenticate method but does not call the pam_acct_mgmt ...

Opengraph URL: https://github.com/github/codeql/pull/8775

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:ffc9f48d-12c5-655c-53a5-d7ef24fa77c0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCAB2:20C9D0:7CCDF6:ABA433:6A4DD63E
html-safe-nonce58a589786e263bc32e2ea7444aefc01a44954e53b63ba3a68b083319b9f66cd4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQUIyOjIwQzlEMDo3Q0NERjY6QUJBNDMzOjZBNERENjNFIiwidmlzaXRvcl9pZCI6IjkwMzIxOTE1NTk1NTA3NTIzMTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac560e3c5ba9a5b68a087d19ff3ac2d6d3e06d3a5d17d124050a793eddbf6c4d3c
hovercard-subject-tagpull_request:913051946
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/github/codeql/pull/8775/files
twitter:imagehttps://avatars.githubusercontent.com/u/10137?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/10137?s=400&v=4
og:image:altThis PR is similar to my other PRs for Python and Golang. This PR aims to detect instances were an initiated PAM Transaction invokes the pam_authenticate method but does not call the pam_acct_mgmt ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/github/codeql git https://github.com/github/codeql.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id143040428
octolytics-dimension-repository_nwogithub/codeql
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id143040428
octolytics-dimension-repository_network_root_nwogithub/codeql
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql/pull/8775/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F8775%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F8775%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=github%2Fcodeql
Reloadhttps://github.com/github/codeql/pull/8775/files
Reloadhttps://github.com/github/codeql/pull/8775/files
Reloadhttps://github.com/github/codeql/pull/8775/files
Please reload this pagehttps://github.com/github/codeql/pull/8775/files
github https://github.com/github
codeqlhttps://github.com/github/codeql
Notifications https://github.com/login?return_to=%2Fgithub%2Fcodeql
Fork 2k https://github.com/login?return_to=%2Fgithub%2Fcodeql
Star 9.8k https://github.com/login?return_to=%2Fgithub%2Fcodeql
Code https://github.com/github/codeql
Issues 987 https://github.com/github/codeql/issues
Pull requests 426 https://github.com/github/codeql/pulls
Discussions https://github.com/github/codeql/discussions
Actions https://github.com/github/codeql/actions
Projects https://github.com/github/codeql/projects
Models https://github.com/github/codeql/models
Security and quality 0 https://github.com/github/codeql/security
Insights https://github.com/github/codeql/pulse
Code https://github.com/github/codeql
Issues https://github.com/github/codeql/issues
Pull requests https://github.com/github/codeql/pulls
Discussions https://github.com/github/codeql/discussions
Actions https://github.com/github/codeql/actions
Projects https://github.com/github/codeql/projects
Models https://github.com/github/codeql/models
Security and quality https://github.com/github/codeql/security
Insights https://github.com/github/codeql/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fgithub%2Fcodeql%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgithub%2Fcodeql%2Fissues%2Fnew%2Fchoose
geoffw0https://github.com/geoffw0
github:mainhttps://github.com/github/codeql/tree/main
Conversation 10 https://github.com/github/codeql/pull/8775
Findings https://github.com/github/codeql/pull/8775/findings
Commits 2 https://github.com/github/codeql/pull/8775/commits
Checks 0 https://github.com/github/codeql/pull/8775/checks
Files changed https://github.com/github/codeql/pull/8775/files
Please reload this pagehttps://github.com/github/codeql/pull/8775/files
CPP: PAM Authorization Bypass https://github.com/github/codeql/pull/8775/files#top
Show all changes 2 commits https://github.com/github/codeql/pull/8775/files
85c751c CPP: PAM Authorization Bypass Apr 3, 2022 https://github.com/github/codeql/pull/8775/commits/85c751cb7fc44f2d993c109b5b94f0a17265ae78
06edb3f fix formatting issues Apr 20, 2022 https://github.com/github/codeql/pull/8775/commits/06edb3f3a1e4714c9d4b7074f98425fb3faa03ee
Clear filters https://github.com/github/codeql/pull/8775/files
Please reload this pagehttps://github.com/github/codeql/pull/8775/files
Please reload this pagehttps://github.com/github/codeql/pull/8775/files
PamAuthorization.qhelp https://github.com/github/codeql/pull/8775/files#diff-3a86857104d8a305c7bc250fe82dc1910367a8e241d583da89c2ba4a65f2b1c2
PamAuthorization.ql https://github.com/github/codeql/pull/8775/files#diff-bac72cd077e737450d7334c6a8634d15bf2aa527e044afe1112725a558bc3367
PamAuthorizationBad.cpp https://github.com/github/codeql/pull/8775/files#diff-3c7406aa489179302901fa4fe9e2daff811dccebace01ac6ddffa51f95d505eb
PamAuthorizationGood.cpp https://github.com/github/codeql/pull/8775/files#diff-757b577c7ce96b332a514a5f6f6d39c817c0ed2eabfd2f26d70de994c0f76ccc
PamAuthorization.expected https://github.com/github/codeql/pull/8775/files#diff-4cc44cd2721761d69db69b0176e2d8a060547ae9df0fe2df413636598c52848d
PamAuthorization.qlref https://github.com/github/codeql/pull/8775/files#diff-caa28578cf2b3c22c8df5e305e4d1df4681daf649e70fb7d0d9e96cc03aa6af1
test.cpp https://github.com/github/codeql/pull/8775/files#diff-27c283228fc19c67c870e1d4618dbf88cee7e65e1cf0cd138c8a07e68ac66d7c
https://github.com/github/codeql/blob/main/CODEOWNERS#L6
cpp/ql/src/experimental/Security/CWE/CWE-285/PamAuthorization.qhelphttps://github.com/github/codeql/pull/8775/files#diff-3a86857104d8a305c7bc250fe82dc1910367a8e241d583da89c2ba4a65f2b1c2
View file https://github.com/github/codeql/blob/06edb3f3a1e4714c9d4b7074f98425fb3faa03ee/cpp/ql/src/experimental/Security/CWE/CWE-285/PamAuthorization.qhelp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/8775/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L6
cpp/ql/src/experimental/Security/CWE/CWE-285/PamAuthorization.qlhttps://github.com/github/codeql/pull/8775/files#diff-bac72cd077e737450d7334c6a8634d15bf2aa527e044afe1112725a558bc3367
View file https://github.com/github/codeql/blob/06edb3f3a1e4714c9d4b7074f98425fb3faa03ee/cpp/ql/src/experimental/Security/CWE/CWE-285/PamAuthorization.ql
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/8775/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L6
cpp/ql/src/experimental/Security/CWE/CWE-285/PamAuthorizationBad.cpphttps://github.com/github/codeql/pull/8775/files#diff-3c7406aa489179302901fa4fe9e2daff811dccebace01ac6ddffa51f95d505eb
View file https://github.com/github/codeql/blob/06edb3f3a1e4714c9d4b7074f98425fb3faa03ee/cpp/ql/src/experimental/Security/CWE/CWE-285/PamAuthorizationBad.cpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/8775/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L6
cpp/ql/src/experimental/Security/CWE/CWE-285/PamAuthorizationGood.cpphttps://github.com/github/codeql/pull/8775/files#diff-757b577c7ce96b332a514a5f6f6d39c817c0ed2eabfd2f26d70de994c0f76ccc
View file https://github.com/github/codeql/blob/06edb3f3a1e4714c9d4b7074f98425fb3faa03ee/cpp/ql/src/experimental/Security/CWE/CWE-285/PamAuthorizationGood.cpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/8775/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L6
cpp/ql/test/experimental/query-tests/Security/CWE/CWE-285/PamAuthorization.expectedhttps://github.com/github/codeql/pull/8775/files#diff-4cc44cd2721761d69db69b0176e2d8a060547ae9df0fe2df413636598c52848d
View file https://github.com/github/codeql/blob/06edb3f3a1e4714c9d4b7074f98425fb3faa03ee/cpp/ql/test/experimental/query-tests/Security/CWE/CWE-285/PamAuthorization.expected
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/8775/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L6
cpp/ql/test/experimental/query-tests/Security/CWE/CWE-285/PamAuthorization.qlrefhttps://github.com/github/codeql/pull/8775/files#diff-caa28578cf2b3c22c8df5e305e4d1df4681daf649e70fb7d0d9e96cc03aa6af1
View file https://github.com/github/codeql/blob/06edb3f3a1e4714c9d4b7074f98425fb3faa03ee/cpp/ql/test/experimental/query-tests/Security/CWE/CWE-285/PamAuthorization.qlref
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/8775/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L6
cpp/ql/test/experimental/query-tests/Security/CWE/CWE-285/test.cpphttps://github.com/github/codeql/pull/8775/files#diff-27c283228fc19c67c870e1d4618dbf88cee7e65e1cf0cd138c8a07e68ac66d7c
View file https://github.com/github/codeql/blob/06edb3f3a1e4714c9d4b7074f98425fb3faa03ee/cpp/ql/test/experimental/query-tests/Security/CWE/CWE-285/test.cpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/8775/{{ revealButtonHref }}
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.