René's URL Explorer Experiment


Title: Java: CWE-552 Query to detect configuration file/source code exposure from unsafe request dispatcher by luchua-bc · Pull Request #6251 · github/codeql · GitHub

Open Graph Title: Java: CWE-552 Query to detect configuration file/source code exposure from unsafe request dispatcher by luchua-bc · Pull Request #6251 · github/codeql

X Title: Java: CWE-552 Query to detect configuration file/source code exposure from unsafe request dispatcher by luchua-bc · Pull Request #6251 · github/codeql

Description: Directly incorporating user input into HTTP requests dispatched from the Java EE RequestDispatcher without validating the input can allow any web application resource such as configuration files and source code to be disclosed. As stated in the Java API doc, when using a Java EE RequestDispatcher, requests may be dispatched to any part of the web application bypassing both implicit (no direct access to WEB-INF or META-INF) and explicit (defined by the web application) security constraints. Unsanitized user provided data must not be used to construct the path passed to the RequestDispatcher as it is very likely to create a security vulnerability in the application. This query detects unsafe invocations of RequestDispatcher with user controlled input. Please consider to merge the PR. Thanks.

Open Graph Description: Directly incorporating user input into HTTP requests dispatched from the Java EE RequestDispatcher without validating the input can allow any web application resource such as configuration files a...

X Description: Directly incorporating user input into HTTP requests dispatched from the Java EE RequestDispatcher without validating the input can allow any web application resource such as configuration files a...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:adffdf13-376e-65b1-8339-32d52c18bfe2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA0A4:2630A2:23E7883:32B2138:6A4CE2A1
html-safe-noncef95ee0fc41e144eaa05e68cb530be84d524e75289022179016e7d24afd53bed4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMEE0OjI2MzBBMjoyM0U3ODgzOjMyQjIxMzg6NkE0Q0UyQTEiLCJ2aXNpdG9yX2lkIjoiODIzMzY2ODQ5OTY4OTIzNTEwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacfb8e99f796258631b45d1234f461dda7830dc086f89c639206c7273566bf469f
hovercard-subject-tagpull_request:687391566
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/6251/files
twitter:imagehttps://avatars.githubusercontent.com/u/37377780?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/37377780?s=400&v=4
og:image:altDirectly incorporating user input into HTTP requests dispatched from the Java EE RequestDispatcher without validating the input can allow any web application resource such as configuration files a...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None299b43bca6e02ad35197ffeba30d2466846d5fb02ab96fbced5b5e6cec589fb8
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
releasec5a57f04eeb310f57c73fd6d751d957e2ca27ed2
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql/pull/6251/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F6251%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%2F6251%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/6251/files
Reloadhttps://github.com/github/codeql/pull/6251/files
Reloadhttps://github.com/github/codeql/pull/6251/files
Please reload this pagehttps://github.com/github/codeql/pull/6251/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
luchua-bchttps://github.com/luchua-bc
github:mainhttps://github.com/github/codeql/tree/main
luchua-bc:java/unsafe-request-dispatchhttps://github.com/luchua-bc/ql/tree/java/unsafe-request-dispatch
Conversation 3 https://github.com/github/codeql/pull/6251
Findings https://github.com/github/codeql/pull/6251/findings
Commits 2 https://github.com/github/codeql/pull/6251/commits
Checks 0 https://github.com/github/codeql/pull/6251/checks
Files changed https://github.com/github/codeql/pull/6251/files
Please reload this pagehttps://github.com/github/codeql/pull/6251/files
Java: CWE-552 Query to detect configuration file/source code exposure from unsafe request dispatcher https://github.com/github/codeql/pull/6251/files#top
Show all changes 2 commits https://github.com/github/codeql/pull/6251/files
be830de Query to detect unsafe request dispatcher luchua-bc Jul 11, 2021 https://github.com/github/codeql/pull/6251/commits/be830de2f9586821de6de81de6d3b869f1b58676
93ab08b Add query for Java EE resource loading check luchua-bc Jul 18, 2021 https://github.com/github/codeql/pull/6251/commits/93ab08b50206ef7a4cbbdf050bb8ab4331dd215a
Clear filters https://github.com/github/codeql/pull/6251/files
Please reload this pagehttps://github.com/github/codeql/pull/6251/files
Please reload this pagehttps://github.com/github/codeql/pull/6251/files
UnsafeRequestDispatch.java https://github.com/github/codeql/pull/6251/files#diff-32042470073401d2365f4d06be22bab549c2ac019e47912168d44373e029c0bd
UnsafeRequestDispatch.qhelp https://github.com/github/codeql/pull/6251/files#diff-1c676b425fbe98a98aa532ef1735da7f398ed830be3b995db4b0177e2058b20d
UnsafeRequestDispatch.ql https://github.com/github/codeql/pull/6251/files#diff-ceed36aa8075d7d1b3acd99c109d28731927df36543551c24ace10b00041b189
UnsafeResourceLoad.ql https://github.com/github/codeql/pull/6251/files#diff-5eabd4257dfa4ae8c92f2deae74808b066ae7d94992d306200293c03f1bfef22
UnsafeRequestDispatch.expected https://github.com/github/codeql/pull/6251/files#diff-65b884432556d451286c9af7d0fb8606c322834470b890624187e394596c77ea
UnsafeRequestDispatch.java https://github.com/github/codeql/pull/6251/files#diff-70226f5429ab359672ee62c43ed115c38da2fee44368e6c0a812f29619f056f1
UnsafeRequestDispatch.qlref https://github.com/github/codeql/pull/6251/files#diff-e3e8aa5fd961a34291cd48a4348fbbee476de7a99765f0964010c748b3fcf8b8
UnsafeResourceLoad.expected https://github.com/github/codeql/pull/6251/files#diff-79b70d4d7bc55f4cbd8203339fd1de9160a1feecd0c6b553c5b523145060a4f4
UnsafeResourceLoad.java https://github.com/github/codeql/pull/6251/files#diff-15a0a9c079ba8279ce4837bdf2d51574b89e1c7dcb8aa998aab5eaa3ff53e2f1
UnsafeResourceLoad.qlref https://github.com/github/codeql/pull/6251/files#diff-ddd53c253bea15db374470263db7568ea925a6a68b6a0554c782c1e3598d69ef
options https://github.com/github/codeql/pull/6251/files#diff-a23d6723ceb9ac152050ee8f7d948a8b29e6f3b36a0143e4f85a7272e62e5d0c
HttpServletRequest.java https://github.com/github/codeql/pull/6251/files#diff-0ae0fe89484194157999bd5737ef73e8574ec491cdcc5bc708b980b0537a07e4
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/src/experimental/Security/CWE/CWE-552/UnsafeRequestDispatch.javahttps://github.com/github/codeql/pull/6251/files#diff-32042470073401d2365f4d06be22bab549c2ac019e47912168d44373e029c0bd
View file https://github.com/luchua-bc/ql/blob/93ab08b50206ef7a4cbbdf050bb8ab4331dd215a/java/ql/src/experimental/Security/CWE/CWE-552/UnsafeRequestDispatch.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6251/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/src/experimental/Security/CWE/CWE-552/UnsafeRequestDispatch.qhelphttps://github.com/github/codeql/pull/6251/files#diff-1c676b425fbe98a98aa532ef1735da7f398ed830be3b995db4b0177e2058b20d
View file https://github.com/luchua-bc/ql/blob/93ab08b50206ef7a4cbbdf050bb8ab4331dd215a/java/ql/src/experimental/Security/CWE/CWE-552/UnsafeRequestDispatch.qhelp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6251/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/src/experimental/Security/CWE/CWE-552/UnsafeRequestDispatch.qlhttps://github.com/github/codeql/pull/6251/files#diff-ceed36aa8075d7d1b3acd99c109d28731927df36543551c24ace10b00041b189
View file https://github.com/luchua-bc/ql/blob/93ab08b50206ef7a4cbbdf050bb8ab4331dd215a/java/ql/src/experimental/Security/CWE/CWE-552/UnsafeRequestDispatch.ql
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6251/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/src/experimental/Security/CWE/CWE-552/UnsafeResourceLoad.qlhttps://github.com/github/codeql/pull/6251/files#diff-5eabd4257dfa4ae8c92f2deae74808b066ae7d94992d306200293c03f1bfef22
View file https://github.com/luchua-bc/ql/blob/93ab08b50206ef7a4cbbdf050bb8ab4331dd215a/java/ql/src/experimental/Security/CWE/CWE-552/UnsafeResourceLoad.ql
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6251/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/test/experimental/query-tests/security/CWE-552/UnsafeRequestDispatch.expectedhttps://github.com/github/codeql/pull/6251/files#diff-65b884432556d451286c9af7d0fb8606c322834470b890624187e394596c77ea
View file https://github.com/luchua-bc/ql/blob/93ab08b50206ef7a4cbbdf050bb8ab4331dd215a/java/ql/test/experimental/query-tests/security/CWE-552/UnsafeRequestDispatch.expected
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6251/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/test/experimental/query-tests/security/CWE-552/UnsafeRequestDispatch.javahttps://github.com/github/codeql/pull/6251/files#diff-70226f5429ab359672ee62c43ed115c38da2fee44368e6c0a812f29619f056f1
View file https://github.com/luchua-bc/ql/blob/93ab08b50206ef7a4cbbdf050bb8ab4331dd215a/java/ql/test/experimental/query-tests/security/CWE-552/UnsafeRequestDispatch.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6251/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/test/experimental/query-tests/security/CWE-552/UnsafeRequestDispatch.qlrefhttps://github.com/github/codeql/pull/6251/files#diff-e3e8aa5fd961a34291cd48a4348fbbee476de7a99765f0964010c748b3fcf8b8
View file https://github.com/luchua-bc/ql/blob/93ab08b50206ef7a4cbbdf050bb8ab4331dd215a/java/ql/test/experimental/query-tests/security/CWE-552/UnsafeRequestDispatch.qlref
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6251/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/test/experimental/query-tests/security/CWE-552/UnsafeResourceLoad.expectedhttps://github.com/github/codeql/pull/6251/files#diff-79b70d4d7bc55f4cbd8203339fd1de9160a1feecd0c6b553c5b523145060a4f4
View file https://github.com/luchua-bc/ql/blob/93ab08b50206ef7a4cbbdf050bb8ab4331dd215a/java/ql/test/experimental/query-tests/security/CWE-552/UnsafeResourceLoad.expected
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6251/{{ revealButtonHref }}
Please reload this pagehttps://github.com/github/codeql/pull/6251/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.