René's URL Explorer Experiment


Title: C#: Make `StartsWith` and `EndsWith` sanitizers on normalized paths by MathiasVP · Pull Request #106 · microsoft/codeql · GitHub

Open Graph Title: C#: Make `StartsWith` and `EndsWith` sanitizers on normalized paths by MathiasVP · Pull Request #106 · microsoft/codeql

X Title: C#: Make `StartsWith` and `EndsWith` sanitizers on normalized paths by MathiasVP · Pull Request #106 · microsoft/codeql

Description: CodeQL: the libraries and queries that power security researchers around the world, as well as code scanning in GitHub Advanced Security - C#: Make `StartsWith` and `EndsWith` sanitizers on normalized paths by MathiasVP · Pull Request #106 · microsoft/codeql

Open Graph Description: The current cs/path-injection query explicitly disables String.StartsWith and String.EndsWith as sanitizers. Presumably because a prefix check such as path.StartsWith("C:/Foo") doesn'...

X Description: The current cs/path-injection query explicitly disables String.StartsWith and String.EndsWith as sanitizers. Presumably because a prefix check such as path.StartsWith("C:/Foo") do...

Opengraph URL: https://github.com/microsoft/codeql/pull/106

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
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:5601f1aa-4652-984a-c992-7d614c42b857
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCA2A:186C54:15A3F01:1C93CB9:6AF89A61
html-safe-nonce8e931898aa08a734721c8e44155f8a3a1a0049f8bd381c3ed80a8995a4a38f85
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTJBOjE4NkM1NDoxNUEzRjAxOjFDOTNDQjk6NkFGODlBNjEiLCJ2aXNpdG9yX2lkIjoiNDY1ODM0NjYxMzY0NTI4NTk4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac1986de06ce881bbaafb548e4d8aa76a76dd22d4a9ce30942e74cfd300ebb6329
hovercard-subject-tagpull_request:2101219900
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/microsoft/codeql/106/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/5d9eec27c891033e9ca56d6b54ea75640acc30b0ad697bdc211f88b861c5fc30/microsoft/codeql/pull/106
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5d9eec27c891033e9ca56d6b54ea75640acc30b0ad697bdc211f88b861c5fc30/microsoft/codeql/pull/106
og:image:altThe current cs/path-injection query explicitly disables String.StartsWith and String.EndsWith as sanitizers. Presumably because a prefix check such as path.StartsWith("C:/Foo") doesn'...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMathiasVP
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
turbo-cache-controlno-cache
go-importgithub.com/microsoft/codeql git https://github.com/microsoft/codeql.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id566523451
octolytics-dimension-repository_nwomicrosoft/codeql
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id143040428
octolytics-dimension-repository_parent_nwogithub/codeql
octolytics-dimension-repository_network_root_id143040428
octolytics-dimension-repository_network_root_nwogithub/codeql
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
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/microsoft/codeql/pull/106#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fcodeql%2Fpull%2F106
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fcodeql%2Fpull%2F106
Sign uphttps://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=microsoft%2Fcodeql
Reloadhttps://github.com/microsoft/codeql/pull/106
Reloadhttps://github.com/microsoft/codeql/pull/106
Reloadhttps://github.com/microsoft/codeql/pull/106
microsofthttps://github.com/microsoft
codeqlhttps://github.com/microsoft/codeql
Codehttps://github.com/microsoft/codeql
Issues15 (15)https://github.com/microsoft/codeql/issues
Pull requests28 (28)https://github.com/microsoft/codeql/pulls
Actionshttps://github.com/microsoft/codeql/actions
Projectshttps://github.com/microsoft/codeql/projects
Security and qualityhttps://github.com/microsoft/codeql/security
Insightshttps://github.com/microsoft/codeql/pulse
https://github.com/microsoft/codeql
Mathias Vorreiter Pedersen (MathiasVP)https://github.com/MathiasVP
mainhttps://github.com/microsoft/codeql/tree/main
tainted-path-barrier-with-statehttps://github.com/microsoft/codeql/tree/tainted-path-barrier-with-state
Conversationhttps://github.com/microsoft/codeql/pull/106
Commits4 (4)https://github.com/microsoft/codeql/pull/106/commits
Checkshttps://github.com/microsoft/codeql/pull/106/checks
Files changedhttps://github.com/microsoft/codeql/pull/106/files
C#: Make StartsWith and EndsWith sanitizers on normalized pathshttps://github.com/microsoft/codeql/pull/106#top
Mathias Vorreiter Pedersen (MathiasVP)https://github.com/MathiasVP
mainhttps://github.com/microsoft/codeql/tree/main
tainted-path-barrier-with-statehttps://github.com/microsoft/codeql/tree/tainted-path-barrier-with-state
https://github.com/MathiasVP
Mathias Vorreiter Pedersen (MathiasVP)https://github.com/MathiasVP
Oct 1, 2024https://github.com/microsoft/codeql/pull/106#issue-2558989534
Please reload this pagehttps://github.com/microsoft/codeql/pull/106
Please reload this pagehttps://github.com/microsoft/codeql/pull/106
Mathias Vorreiter Pedersen (MathiasVP)https://github.com/MathiasVP
October 1, 2024 12:26https://github.com/microsoft/codeql/pull/106#commits-pushed-864bde2
https://github.com/MathiasVP
C#: Add a FP testcase.https://github.com/microsoft/codeql/pull/106/commits/864bde242f95fc802c822c02430331b00f9427fa
864bde2https://github.com/microsoft/codeql/pull/106/commits/864bde242f95fc802c822c02430331b00f9427fa
https://github.com/MathiasVP
C#: Add a flow state to represent whether the path is normalized.https://github.com/microsoft/codeql/pull/106/commits/9457e5305e229c03fc21f9e2ad136dd85917a830
9457e53https://github.com/microsoft/codeql/pull/106/commits/9457e5305e229c03fc21f9e2ad136dd85917a830
https://github.com/MathiasVP
C#: Allow 'StartsWith' and 'EndsWith' to be barriers when the path is…https://github.com/microsoft/codeql/pull/106/commits/89bdcfb53dc6684b5193ff15c557880cb0bc0cef
89bdcfbhttps://github.com/microsoft/codeql/pull/106/commits/89bdcfb53dc6684b5193ff15c557880cb0bc0cef
https://github.com/MathiasVP
C#: Accept test changes.https://github.com/microsoft/codeql/pull/106/commits/758196ed8d3f7d4ee0687c324efef50342139b94
758196ehttps://github.com/microsoft/codeql/pull/106/commits/758196ed8d3f7d4ee0687c324efef50342139b94
https://github.com/MathiasVP
Mathias Vorreiter Pedersen (MathiasVP)https://github.com/MathiasVP
953bd09https://github.com/microsoft/codeql/commit/953bd09c1ce5be18fd4dcbbccd9a24b27489622e
Oct 2, 2024https://github.com/microsoft/codeql/pull/106#event-14490981638
Ben Rodes (bdrodes)https://github.com/bdrodes
Jan 9, 2025 https://github.com/microsoft/codeql/pull/106#ref-commit-6a1e814
https://github.com/boveus
Merge pull requesthttps://github.com/microsoft/codeql/commit/6a1e814cde291b7df77f0222add5a9829cb1c749
#106https://github.com/microsoft/codeql/pull/106
from github/advanced-confighttps://github.com/microsoft/codeql/commit/6a1e814cde291b7df77f0222add5a9829cb1c749
6a1e814https://github.com/microsoft/codeql/commit/6a1e814cde291b7df77f0222add5a9829cb1c749
https://github.com/MathiasVP
Mathias Vorreiter Pedersen (MathiasVP)https://github.com/MathiasVP
May 27, 2025 https://github.com/microsoft/codeql/pull/106#ref-pullrequest-3094726988
C#: Fix FPs (and a small FN) in cs/path-injection #237 https://github.com/microsoft/codeql/pull/237
https://github.co/hiddenchars
https://github.com/microsoft/codeql/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fcodeql%2Fpull%2F106
Please reload this pagehttps://github.com/microsoft/codeql/pull/106
Please reload this pagehttps://github.com/microsoft/codeql/pull/106
https://github.com/MathiasVP
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.