René's URL Explorer Experiment


Title: Golang : Add Query To Detect PAM Authorization Bugs · Pull Request #709 · github/codeql-go · GitHub

Open Graph Title: Golang : Add Query To Detect PAM Authorization Bugs · Pull Request #709 · github/codeql-go

X Title: Golang : Add Query To Detect PAM Authorization Bugs · Pull Request #709 · github/codeql-go

Description: The CodeQL extractor and libraries for Go. Contribute to github/codeql-go development by creating an account on GitHub.

Open Graph Description: Using merely pam_authneticate call to grant access to a user can cause security issue. The pam_authenticate call only checks if the username and the password match. It does not check if the account...

X Description: Using merely pam_authneticate call to grant access to a user can cause security issue. The pam_authenticate call only checks if the username and the password match. It does not check if the account...

Opengraph URL: https://github.com/github/codeql-go/pull/709

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:5abff4e2-998c-5408-5f66-a257f323084e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id89D2:352AFE:C89170:10D1D04:6A4D47FA
html-safe-nonce92fa9f7a5577c1bcdaeae715e9a44d3a376fc9d4de2cc08eedbdd3e9eb105def
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUQyOjM1MkFGRTpDODkxNzA6MTBEMUQwNDo2QTRENDdGQSIsInZpc2l0b3JfaWQiOiIxMzkzNTIxMDgxNzc2NDI0OTU0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac19b4bd11c901e08dbe01648b5532899e49555336a119f0746dfeb0f935864c92
hovercard-subject-tagpull_request:892867005
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/github/codeql-go/709/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/a95f3765bb67dc7b3c4ca2188e4f262b472bf93d7895d6d2b413547270b1d137/github/codeql-go/pull/709
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a95f3765bb67dc7b3c4ca2188e4f262b472bf93d7895d6d2b413547270b1d137/github/codeql-go/pull/709
og:image:altUsing merely pam_authneticate call to grant access to a user can cause security issue. The pam_authenticate call only checks if the username and the password match. It does not check if the account...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6
turbo-cache-controlno-cache
go-importgithub.com/github/codeql-go git https://github.com/github/codeql-go.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id218150891
octolytics-dimension-repository_nwogithub/codeql-go
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id218150891
octolytics-dimension-repository_network_root_nwogithub/codeql-go
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release56fc8347865a14e2ec811533d68f929cf4e0ec19
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql-go/pull/709#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-go%2Fpull%2F709
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-go%2Fpull%2F709
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=github%2Fcodeql-go
Reloadhttps://github.com/github/codeql-go/pull/709
Reloadhttps://github.com/github/codeql-go/pull/709
Reloadhttps://github.com/github/codeql-go/pull/709
Please reload this pagehttps://github.com/github/codeql-go/pull/709
github https://github.com/github
codeql-gohttps://github.com/github/codeql-go
Notifications https://github.com/login?return_to=%2Fgithub%2Fcodeql-go
Fork 128 https://github.com/login?return_to=%2Fgithub%2Fcodeql-go
Star 470 https://github.com/login?return_to=%2Fgithub%2Fcodeql-go
Code https://github.com/github/codeql-go
Issues 1 https://github.com/github/codeql-go/issues
Pull requests 6 https://github.com/github/codeql-go/pulls
Actions https://github.com/github/codeql-go/actions
Projects https://github.com/github/codeql-go/projects
Models https://github.com/github/codeql-go/models
Security and quality 0 https://github.com/github/codeql-go/security
Insights https://github.com/github/codeql-go/pulse
Code https://github.com/github/codeql-go
Issues https://github.com/github/codeql-go/issues
Pull requests https://github.com/github/codeql-go/pulls
Actions https://github.com/github/codeql-go/actions
Projects https://github.com/github/codeql-go/projects
Models https://github.com/github/codeql-go/models
Security and quality https://github.com/github/codeql-go/security
Insights https://github.com/github/codeql-go/pulse
ghosthttps://github.com/ghost
mainhttps://github.com/github/codeql-go/tree/main
Conversationhttps://github.com/github/codeql-go/pull/709
Commits1 (1)https://github.com/github/codeql-go/pull/709/commits
Checkshttps://github.com/github/codeql-go/pull/709/checks
Files changedhttps://github.com/github/codeql-go/pull/709/files
Golang : Add Query To Detect PAM Authorization Bugshttps://github.com/github/codeql-go/pull/709#top
ghosthttps://github.com/ghost
mainhttps://github.com/github/codeql-go/tree/main
https://github.com/ghost
ghosthttps://github.com/ghost
Mar 29, 2022https://github.com/github/codeql-go/pull/709#issue-1184652850
Please reload this pagehttps://github.com/github/codeql-go/pull/709
gogs/gogshttps://www.github.com/gogs/gogs
go-gitea/giteahttps://www.github.com/go-gitea/gitea
CVE-2022-0871https://nvd.nist.gov/vuln/detail/CVE-2022-0871
CVE-2022-0905https://nvd.nist.gov/vuln/detail/CVE-2022-0905
global taint flowhttps://lgtm.com/query/8603256578345367962/
local data flowhttps://lgtm.com/query/5088026685932206344/
Please reload this pagehttps://github.com/github/codeql-go/pull/709
code ownerhttps://github.com/github/codeql-go/blob/be412b1b5d4abada88f6de1f70b72ba027778a75/CODEOWNERS#L1
March 29, 2022 10:30https://github.com/github/codeql-go/pull/709#event-6325428668
https://github.com/smowton
smowtonhttps://github.com/smowton
Mar 29, 2022https://github.com/github/codeql-go/pull/709#issuecomment-1082078880
Please reload this pagehttps://github.com/github/codeql-go/pull/709
Mar 29, 2022 https://github.com/github/codeql-go/pull/709#ref-issue-1185351317
Golang : Add Query To Detect PAM Authorization Bugs github/securitylab#562 https://github.com/github/securitylab/issues/562
Golang : Add Query To Detect PAM Authorization Bugshttps://github.com/github/codeql-go/pull/709/commits/1264180503ee3e1a7add3420e8d7faae67b2fef3
1264180https://github.com/github/codeql-go/pull/709/commits/1264180503ee3e1a7add3420e8d7faae67b2fef3
https://www.github.com/gogs/gogshttps://www.github.com/gogs/gogs
https://www.github.com/go-gitea/giteahttps://www.github.com/go-gitea/gitea
CVE-2022-0871https://github.com/advisories/GHSA-gw5h-h6hj-f56g
https://nvd.nist.gov/vuln/detail/CVE-2022-0871https://nvd.nist.gov/vuln/detail/CVE-2022-0871
CVE-2022-0905https://github.com/advisories/GHSA-jr9c-h74f-2v28
https://nvd.nist.gov/vuln/detail/CVE-2022-0905https://nvd.nist.gov/vuln/detail/CVE-2022-0905
https://lgtm.com/query/8603256578345367962/https://lgtm.com/query/8603256578345367962/
https://lgtm.com/query/5088026685932206344/https://lgtm.com/query/5088026685932206344/
Apr 19, 2022 https://github.com/github/codeql-go/pull/709#ref-pullrequest-1208290358
CPP: PAM Authorization Bypass github/codeql#8775 https://github.com/github/codeql/pull/8775
Security Vulnerability Found rtgnx/PAMAuthd#2 https://github.com/rtgnx/PAMAuthd/issues/2
Security Vulnerability Found rtgnx/PAMAuthd#3 https://github.com/rtgnx/PAMAuthd/issues/3
Security Vulnerability Found emersion/webpass#10 https://github.com/emersion/webpass/issues/10
Security Vulnerability Found hsukvn/go-gin-graphql-template#3 https://github.com/hsukvn/go-gin-graphql-template/issues/3
Security Vulnerability Found inoc603/go-sshd#1 https://github.com/inoc603/go-sshd/issues/1
Security Vulnerability Found metrumresearchgroup/tekmor#1 https://github.com/metrumresearchgroup/tekmor/issues/1
Security Vulnerability Found nDenerserve/SmartPi#120 https://github.com/nDenerserve/SmartPi/issues/120
Security Vulnerability Found netsec-ethz/scion-apps#228 https://github.com/netsec-ethz/scion-apps/issues/228
Security Vulnerability Found scusi/spipe#1 https://github.com/scusi/spipe/issues/1
emersionhttps://github.com/emersion
May 24, 2022 https://github.com/github/codeql-go/pull/709#ref-commit-1f543fd
https://github.com/emersion
# Authorization Bypass due to incorrect usage of PAM libraryhttps://github.com/emersion/webpass/commit/1f543fdea8adee31c13b9cba5980a7985de84a50
1f543fdhttps://github.com/emersion/webpass/commit/1f543fdea8adee31c13b9cba5980a7985de84a50
https://lgtm.com/projects/g/emersion/webpass/snapshot/c3217efc9100880b960b1e085c30d5f95c3d3471/files/config/auth_pam.go#x72bc4d6069cdb224:1https://lgtm.com/projects/g/emersion/webpass/snapshot/c3217efc9100880b960b1e085c30d5f95c3d3471/files/config/auth_pam.go#x72bc4d6069cdb224:1
https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L&version=3.1https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L&version=3.1
https://man7.org/linux/man-pages/man3/pam_acct_mgmt.3.htmlhttps://man7.org/linux/man-pages/man3/pam_acct_mgmt.3.html
http://cwe.mitre.org/data/definitions/863.htmlhttp://cwe.mitre.org/data/definitions/863.html
http://cwe.mitre.org/data/definitions/285.htmlhttp://cwe.mitre.org/data/definitions/285.html
github/securitylab#561https://github.com/github/securitylab/issues/561
github/codeql-go#709https://github.com/github/codeql-go/pull/709
https://codeql.github.com/)*https://codeql.github.com/)*
Authorization Bypass due to incorrect usage of PAM library nethesis/nethvoice-report#172 https://github.com/nethesis/nethvoice-report/pull/172
Authorization Bypass due to incorrect usage of PAM library linuxdeepin/dde-daemon#202 https://github.com/linuxdeepin/dde-daemon/pull/202
matzfhttps://github.com/matzf
May 27, 2022 https://github.com/github/codeql-go/pull/709#ref-commit-ad219e2
sshd: fix authorization bypass due to incorrect usage of PAM library (https://github.com/netsec-ethz/scion-apps/commit/ad219e27ae84473c95bc78728b5a1f8e0cc6996d
#…https://github.com/netsec-ethz/scion-apps/pull/229
ad219e2https://github.com/netsec-ethz/scion-apps/commit/ad219e27ae84473c95bc78728b5a1f8e0cc6996d
…229https://github.com/netsec-ethz/scion-apps/pull/229
https://lgtm.com/projects/g/netsec-ethz/scion-apps/snapshot/52ffbbafc507ba067d56eb9ec482b41c19fc84ed/files/ssh/server/ssh/authcallbacks.go#xecf1a4150da8e10d:1https://lgtm.com/projects/g/netsec-ethz/scion-apps/snapshot/52ffbbafc507ba067d56eb9ec482b41c19fc84ed/files/ssh/server/ssh/authcallbacks.go#xecf1a4150da8e10d:1
https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L&version=3.1https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L&version=3.1
https://man7.org/linux/man-pages/man3/pam_acct_mgmt.3.htmlhttps://man7.org/linux/man-pages/man3/pam_acct_mgmt.3.html
http://cwe.mitre.org/data/definitions/863.htmlhttp://cwe.mitre.org/data/definitions/863.html
http://cwe.mitre.org/data/definitions/285.htmlhttp://cwe.mitre.org/data/definitions/285.html
github/securitylab#561https://github.com/github/securitylab/issues/561
github/codeql-go#709https://github.com/github/codeql-go/pull/709
https://codeql.github.com/)*https://codeql.github.com/)*
edospadonihttps://github.com/edospadoni
May 27, 2022 https://github.com/github/codeql-go/pull/709#ref-commit-2f69d7e
Not using pam_acct_mgmt after pam_authenticate to check the valid…https://github.com/nethesis/nethvoice-report/commit/2f69d7ec62c56b3fedbdb09e3fd653a672a81714
2f69d7ehttps://github.com/nethesis/nethvoice-report/commit/2f69d7ec62c56b3fedbdb09e3fd653a672a81714
#172https://github.com/nethesis/nethvoice-report/pull/172
https://lgtm.com/projects/g/nethesis/nethvoice-report/snapshot/4c37ee73a69564895b9db44ec2959766f0fa7bfe/files/api/methods/auth.go#x4b20c1ca54cad81d:1https://lgtm.com/projects/g/nethesis/nethvoice-report/snapshot/4c37ee73a69564895b9db44ec2959766f0fa7bfe/files/api/methods/auth.go#x4b20c1ca54cad81d:1
https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L&version=3.1https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L&version=3.1
https://man7.org/linux/man-pages/man3/pam_acct_mgmt.3.htmlhttps://man7.org/linux/man-pages/man3/pam_acct_mgmt.3.html
http://cwe.mitre.org/data/definitions/863.htmlhttp://cwe.mitre.org/data/definitions/863.html
http://cwe.mitre.org/data/definitions/285.htmlhttp://cwe.mitre.org/data/definitions/285.html
github/securitylab#561https://github.com/github/securitylab/issues/561
github/codeql-go#709https://github.com/github/codeql-go/pull/709
https://github.com/smowton
smowtonhttps://github.com/smowton
May 30, 2022 https://github.com/github/codeql-go/pull/709#pullrequestreview-989629176
View reviewed changes https://github.com/github/codeql-go/pull/709/files/1264180503ee3e1a7add3420e8d7faae67b2fef3
smowtonhttps://github.com/smowton
https://github.com/github/codeql-go/pull/709#pullrequestreview-989629176
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://github.com/github/codeql/tree/main/gohttps://github.com/github/codeql/tree/main/go
Please reload this pagehttps://github.com/github/codeql-go/pull/709
ql/src/experimental/CWE-285/PamAuthBypass.qlhttps://github.com/github/codeql-go/pull/709/files/1264180503ee3e1a7add3420e8d7faae67b2fef3#diff-7dd4cbba0ced3be6482be143cd2493f2641d464c16a79b815f16bfbb95330b69
Please reload this pagehttps://github.com/github/codeql-go/pull/709
ql/src/experimental/CWE-285/PamAuthBypass.qlhttps://github.com/github/codeql-go/pull/709/files/1264180503ee3e1a7add3420e8d7faae67b2fef3#diff-7dd4cbba0ced3be6482be143cd2493f2641d464c16a79b815f16bfbb95330b69
Please reload this pagehttps://github.com/github/codeql-go/pull/709
ql/src/experimental/CWE-285/PamAuthBypassLocal.qlhttps://github.com/github/codeql-go/pull/709/files/1264180503ee3e1a7add3420e8d7faae67b2fef3#diff-f39b5b0071a9d0cf7cae0ade77b00863609b08a68ea3794b53a8d69ec2a36e50
smowtonhttps://github.com/smowton
May 30, 2022https://github.com/github/codeql-go/pull/709#discussion_r885037953
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/github/codeql-go/pull/709
ghosthttps://github.com/ghost
May 30, 2022https://github.com/github/codeql-go/pull/709#discussion_r885048561
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/github/codeql-go/pull/709
May 30, 2022 https://github.com/github/codeql-go/pull/709#ref-pullrequest-1253082442
Golang : Add Query To Detect PAM Authorization Bugs github/codeql#9377 https://github.com/github/codeql/pull/9377
https://github.com/ghost
ghosthttps://github.com/ghost
May 30, 2022https://github.com/github/codeql-go/pull/709#issuecomment-1141448489
@smowtonhttps://github.com/smowton
github/codeql#9377https://github.com/github/codeql/pull/9377
Please reload this pagehttps://github.com/github/codeql-go/pull/709
May 30, 2022https://github.com/github/codeql-go/pull/709#event-6705000274
May 30, 2022 20:04https://github.com/github/codeql-go/pull/709#event-6705003160
https://github.co/hiddenchars
https://github.com/github/codeql-go/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-go%2Fpull%2F709
Please reload this pagehttps://github.com/github/codeql-go/pull/709
https://github.com/smowton
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.