René's URL Explorer Experiment


Title: Python: CWE-117 Log injection by haby0 · Pull Request #6182 · github/codeql · GitHub

Open Graph Title: Python: CWE-117 Log injection by haby0 · Pull Request #6182 · github/codeql

X Title: Python: CWE-117 Log injection by haby0 · Pull Request #6182 · github/codeql

Description: If unsanitized user input is written to a log entry, a malicious user may be able to forge new log entries.

Open Graph Description: If unsanitized user input is written to a log entry, a malicious user may be able to forge new log entries.

X Description: If unsanitized user input is written to a log entry, a malicious user may be able to forge new log entries.

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9265e81c-6c8c-412e-3681-dd15dec324e9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB2A4:313128:20D44F:2D8D3D:6A4D2092
html-safe-nonce42b6925f78133d192100621058ea3fd37bba7d1c3211d93b88e177391ef67ad9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkE0OjMxMzEyODoyMEQ0NEY6MkQ4RDNEOjZBNEQyMDkyIiwidmlzaXRvcl9pZCI6IjU0NTIzNDE4MzczNjc2ODExNzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacefcb0c95b09a9eb243ef27334a336a7cb5ed99af1bfebfbd1d69ce5c24929195
hovercard-subject-tagpull_request:679947803
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/6182/files
twitter:imagehttps://avatars.githubusercontent.com/u/29876502?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/29876502?s=400&v=4
og:image:altIf unsanitized user input is written to a log entry, a malicious user may be able to forge new log entries.
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6
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
release93f17a978ee60bc4668e1d7b90e6bd2d622261fd
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql/pull/6182/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F6182%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%2F6182%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/6182/files
Reloadhttps://github.com/github/codeql/pull/6182/files
Reloadhttps://github.com/github/codeql/pull/6182/files
Please reload this pagehttps://github.com/github/codeql/pull/6182/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 424 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
yoffhttps://github.com/yoff
github:mainhttps://github.com/github/codeql/tree/main
Conversation 29 https://github.com/github/codeql/pull/6182
Findings https://github.com/github/codeql/pull/6182/findings
Commits 5 https://github.com/github/codeql/pull/6182/commits
Checks 0 https://github.com/github/codeql/pull/6182/checks
Files changed https://github.com/github/codeql/pull/6182/files
Please reload this pagehttps://github.com/github/codeql/pull/6182/files
Python: CWE-117 Log injection https://github.com/github/codeql/pull/6182/files#top
Show all changes 5 commits https://github.com/github/codeql/pull/6182/files
c60eded Fix conflicting haby0 Sep 15, 2021 https://github.com/github/codeql/pull/6182/commits/c60eded2de54ceb614feccb64be8db23d5065cce
9916753 Modify sinks haby0 Sep 17, 2021 https://github.com/github/codeql/pull/6182/commits/99167539fb0291805b26ec2f9daefe99a1944992
6c07a3e Apply @yoff's suggestion haby0 Sep 22, 2021 https://github.com/github/codeql/pull/6182/commits/6c07a3e260724df620467f3e05045fab56e9441b
29ddc76 Update python/ql/test/experimental/query-tests/Security/CWE-117/LogIn… haby0 Oct 11, 2021 https://github.com/github/codeql/pull/6182/commits/29ddc76e2fda9706ff8e92e31d27a12d29995e8a
d52f95d Auto Formatting haby0 Oct 12, 2021 https://github.com/github/codeql/pull/6182/commits/d52f95d24de53c99d52662cb4abb96b956fdf3f0
Clear filters https://github.com/github/codeql/pull/6182/files
Please reload this pagehttps://github.com/github/codeql/pull/6182/files
Please reload this pagehttps://github.com/github/codeql/pull/6182/files
LogInjection.qhelp https://github.com/github/codeql/pull/6182/files#diff-a65bc8246ed45b152f9fd3a92a34cd2df8f5684771892dff7aea569b7708047c
LogInjection.ql https://github.com/github/codeql/pull/6182/files#diff-fa75bbcd40a1a144932073b084bcc16404414884428fcc5044451696f21c34cc
LogInjectionBad.py https://github.com/github/codeql/pull/6182/files#diff-e2ecbb058786d5ad6f09b7e564e7ec12497d0712f8e5f7aa692a36b8d3fec507
LogInjectionGood.py https://github.com/github/codeql/pull/6182/files#diff-e3345dd0934c364a0a432060ecb6d515b223f8acc7b6241dd6eaf35924569d01
Concepts.qll https://github.com/github/codeql/pull/6182/files#diff-07631b7f3489bbd6603ecbc9149f5919406181361b1bd04a53e048f531a4986a
Frameworks.qll https://github.com/github/codeql/pull/6182/files#diff-912ff00fff24c4b7e46c7e8d7e6179e1e4df2aa3d0f5e937a13bab60568e9ec8
Log.qll https://github.com/github/codeql/pull/6182/files#diff-36a642ca8704b28d1a42eea77e11d9f7f133fbaa0b4fe15d5d28f12a09749dad
LogInjection.qll https://github.com/github/codeql/pull/6182/files#diff-e3c055960760dfbe99ca6e2f7b9093a195dd884dfbc0bad36cfc3a8555dbff5e
LogInjection.expected https://github.com/github/codeql/pull/6182/files#diff-7890abdac1a4702fdbd58add1de79ebacade0b0f651b152cffdb4167263b6369
LogInjection.qlref https://github.com/github/codeql/pull/6182/files#diff-75939e1275b396fdac8b04ac306de8e525f532e7081a424e74a04b57913ae321
LogInjectionBad.py https://github.com/github/codeql/pull/6182/files#diff-063d46608bcec2f2801c4f06bae4abb36c3089b06d6f26984c1ba71b4fbe2740
LogInjectionGood.py https://github.com/github/codeql/pull/6182/files#diff-edabc914097528f4304f78f0766c0de3f290575d8f63aef3d3e66db0210255f2
https://github.com/github/codeql/blob/main/CODEOWNERS#L19
python/ql/src/experimental/Security/CWE-117/LogInjection.qhelphttps://github.com/github/codeql/pull/6182/files#diff-a65bc8246ed45b152f9fd3a92a34cd2df8f5684771892dff7aea569b7708047c
View file https://github.com/github/codeql/blob/d52f95d24de53c99d52662cb4abb96b956fdf3f0/python/ql/src/experimental/Security/CWE-117/LogInjection.qhelp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6182/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L19
python/ql/src/experimental/Security/CWE-117/LogInjection.qlhttps://github.com/github/codeql/pull/6182/files#diff-fa75bbcd40a1a144932073b084bcc16404414884428fcc5044451696f21c34cc
View file https://github.com/github/codeql/blob/d52f95d24de53c99d52662cb4abb96b956fdf3f0/python/ql/src/experimental/Security/CWE-117/LogInjection.ql
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6182/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L19
python/ql/src/experimental/Security/CWE-117/LogInjectionBad.pyhttps://github.com/github/codeql/pull/6182/files#diff-e2ecbb058786d5ad6f09b7e564e7ec12497d0712f8e5f7aa692a36b8d3fec507
View file https://github.com/github/codeql/blob/d52f95d24de53c99d52662cb4abb96b956fdf3f0/python/ql/src/experimental/Security/CWE-117/LogInjectionBad.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6182/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L19
python/ql/src/experimental/Security/CWE-117/LogInjectionGood.pyhttps://github.com/github/codeql/pull/6182/files#diff-e3345dd0934c364a0a432060ecb6d515b223f8acc7b6241dd6eaf35924569d01
View file https://github.com/github/codeql/blob/d52f95d24de53c99d52662cb4abb96b956fdf3f0/python/ql/src/experimental/Security/CWE-117/LogInjectionGood.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6182/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L19
python/ql/src/experimental/semmle/python/Concepts.qllhttps://github.com/github/codeql/pull/6182/files#diff-07631b7f3489bbd6603ecbc9149f5919406181361b1bd04a53e048f531a4986a
View file https://github.com/github/codeql/blob/d52f95d24de53c99d52662cb4abb96b956fdf3f0/python/ql/src/experimental/semmle/python/Concepts.qll
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6182/{{ revealButtonHref }}
https://github.com/github/codeql/pull/6182/files#diff-07631b7f3489bbd6603ecbc9149f5919406181361b1bd04a53e048f531a4986a
https://github.com/github/codeql/pull/6182/files#diff-07631b7f3489bbd6603ecbc9149f5919406181361b1bd04a53e048f531a4986a
https://github.com/github/codeql/blob/main/CODEOWNERS#L19
python/ql/src/experimental/semmle/python/Frameworks.qllhttps://github.com/github/codeql/pull/6182/files#diff-912ff00fff24c4b7e46c7e8d7e6179e1e4df2aa3d0f5e937a13bab60568e9ec8
View file https://github.com/github/codeql/blob/d52f95d24de53c99d52662cb4abb96b956fdf3f0/python/ql/src/experimental/semmle/python/Frameworks.qll
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6182/{{ revealButtonHref }}
https://github.com/github/codeql/pull/6182/files#diff-912ff00fff24c4b7e46c7e8d7e6179e1e4df2aa3d0f5e937a13bab60568e9ec8
https://github.com/github/codeql/blob/main/CODEOWNERS#L19
python/ql/src/experimental/semmle/python/frameworks/Log.qllhttps://github.com/github/codeql/pull/6182/files#diff-36a642ca8704b28d1a42eea77e11d9f7f133fbaa0b4fe15d5d28f12a09749dad
View file https://github.com/github/codeql/blob/d52f95d24de53c99d52662cb4abb96b956fdf3f0/python/ql/src/experimental/semmle/python/frameworks/Log.qll
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6182/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L19
python/ql/src/experimental/semmle/python/security/injection/LogInjection.qllhttps://github.com/github/codeql/pull/6182/files#diff-e3c055960760dfbe99ca6e2f7b9093a195dd884dfbc0bad36cfc3a8555dbff5e
View file https://github.com/github/codeql/blob/d52f95d24de53c99d52662cb4abb96b956fdf3f0/python/ql/src/experimental/semmle/python/security/injection/LogInjection.qll
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6182/{{ revealButtonHref }}
yoffhttps://github.com/yoff
Sep 15, 2021https://github.com/github/codeql/pull/6182/files#r709199054
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
herehttps://github.com/github/codeql/blob/main/python/ql/lib/semmle/python/security/dataflow/CodeInjectionCustomizations.qll#L54
Please reload this pagehttps://github.com/github/codeql/pull/6182/files
haby0https://github.com/haby0
Sep 17, 2021https://github.com/github/codeql/pull/6182/files#r710904620
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/github/codeql/pull/6182/files
yoffhttps://github.com/yoff
Sep 22, 2021https://github.com/github/codeql/pull/6182/files#r713804218
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/github/codeql/pull/6182/files
yoffhttps://github.com/yoff
Sep 22, 2021https://github.com/github/codeql/pull/6182/files#r713804784
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/github/codeql/pull/6182/files
haby0https://github.com/haby0
Sep 22, 2021https://github.com/github/codeql/pull/6182/files#r713820781
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/github/codeql/pull/6182/files
haby0https://github.com/haby0
Sep 24, 2021https://github.com/github/codeql/pull/6182/files#r715318511
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@yoffhttps://github.com/yoff
Please reload this pagehttps://github.com/github/codeql/pull/6182/files
yoffhttps://github.com/yoff
Oct 4, 2021https://github.com/github/codeql/pull/6182/files#r721121801
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
thishttps://lgtm.com/projects/g/mfojtik/openshift-docker-registry/snapshot/47414aaed1f5d635b9aebb1c26fba67749b325d9/files/docker_registry/images.py?sort=name&dir=ASC&mode=heatmap#L287
Please reload this pagehttps://github.com/github/codeql/pull/6182/files
https://github.com/github/codeql/blob/main/CODEOWNERS#L19
python/ql/test/experimental/query-tests/Security/CWE-117/LogInjection.expectedhttps://github.com/github/codeql/pull/6182/files#diff-7890abdac1a4702fdbd58add1de79ebacade0b0f651b152cffdb4167263b6369
View file https://github.com/github/codeql/blob/d52f95d24de53c99d52662cb4abb96b956fdf3f0/python/ql/test/experimental/query-tests/Security/CWE-117/LogInjection.expected
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6182/{{ revealButtonHref }}
Please reload this pagehttps://github.com/github/codeql/pull/6182/files
https://github.com/github/codeql/blob/main/CODEOWNERS#L19
python/ql/test/experimental/query-tests/Security/CWE-117/LogInjection.qlrefhttps://github.com/github/codeql/pull/6182/files#diff-75939e1275b396fdac8b04ac306de8e525f532e7081a424e74a04b57913ae321
View file https://github.com/github/codeql/blob/d52f95d24de53c99d52662cb4abb96b956fdf3f0/python/ql/test/experimental/query-tests/Security/CWE-117/LogInjection.qlref
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6182/{{ revealButtonHref }}
Please reload this pagehttps://github.com/github/codeql/pull/6182/files
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.