| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:696640ba-e944-69e1-c551-9eb8893b9459 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B58C:227D33:A44415:E10318:6A4C8CA7 |
| html-safe-nonce | dab24f81d2ad81f22928aef64020712edcd33b40235a68e9ba7b80c906a114e2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNThDOjIyN0QzMzpBNDQ0MTU6RTEwMzE4OjZBNEM4Q0E3IiwidmlzaXRvcl9pZCI6IjQyNjUwOTY0MTc1ODU3NTc4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5d4572912ae7a83bd9666c70ddf84db6a852782aefbb7486122d42b523c128b6 |
| hovercard-subject-tag | pull_request:793316929 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/github/codeql/pull/7286/files |
| twitter:image | https://avatars.githubusercontent.com/u/37377780?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/37377780?s=400&v=4 |
| og:image:alt | Directly incorporating user input into HTTP requests dispatched from the Java EE RequestDispatcher without proper validation of the input can allow any web application resource such as configuratio... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/github/codeql git https://github.com/github/codeql.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 143040428 |
| octolytics-dimension-repository_nwo | github/codeql |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 143040428 |
| octolytics-dimension-repository_network_root_nwo | github/codeql |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7a2dede45637df6b92ddcfe2a557e67d4b5854ae |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/github/codeql/pull/7286/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F7286%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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%2F7286%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 |
| Reload | https://github.com/github/codeql/pull/7286/files |
| Reload | https://github.com/github/codeql/pull/7286/files |
| Reload | https://github.com/github/codeql/pull/7286/files |
| Please reload this page | https://github.com/github/codeql/pull/7286/files |
|
github
| https://github.com/github |
| codeql | https://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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fgithub%2Fcodeql%2Fissues%2Fnew%2Fchoose |
| smowton | https://github.com/smowton |
| github:main | https://github.com/github/codeql/tree/main |
| luchua-bc:java/unsafe-url-forward-dispatch | https://github.com/luchua-bc/ql/tree/java/unsafe-url-forward-dispatch |
|
Conversation
67
| https://github.com/github/codeql/pull/7286 |
|
Findings
| https://github.com/github/codeql/pull/7286/findings |
|
Commits
17
| https://github.com/github/codeql/pull/7286/commits |
|
Checks
0
| https://github.com/github/codeql/pull/7286/checks |
|
Files changed
| https://github.com/github/codeql/pull/7286/files |
| Please reload this page | https://github.com/github/codeql/pull/7286/files |
|
Java: CWE-552 Query to detect unsafe request dispatcher usage
| https://github.com/github/codeql/pull/7286/files#top |
|
Show all changes
17 commits
| https://github.com/github/codeql/pull/7286/files |
|
8bcffc2
Query to detect unsafe request dispatcher usage
luchua-bc Dec 2, 2021
| https://github.com/github/codeql/pull/7286/commits/8bcffc2886f3c17d6083287d4177f053683e36db |
|
29ce0e9
Add sanitizer for virtual method calls
luchua-bc Dec 15, 2021
| https://github.com/github/codeql/pull/7286/commits/29ce0e9ef19a46bf756472b8a3956a19cda443be |
|
263dbd3
Optimize the query
luchua-bc Jan 12, 2022
| https://github.com/github/codeql/pull/7286/commits/263dbd33f6b908940e1b6d205652ccde050a35d6 |
|
cd9a485
Refactor NullOrEmptyCheckGuard
atorralba Jan 13, 2022
| https://github.com/github/codeql/pull/7286/commits/cd9a485c47a9ae8c4145fffaaba8e4bc435bdfdf |
|
81feaae
Refactor PathMatchGuard
atorralba Jan 13, 2022
| https://github.com/github/codeql/pull/7286/commits/81feaaec0270c7b9635d539eaa7f3877d34e9340 |
|
b6886b8
Move code to qll file
atorralba Jan 13, 2022
| https://github.com/github/codeql/pull/7286/commits/b6886b8e4385f5857f62d27395d85d1ee2fe4227 |
|
877c529
Remove the deprecated library keyword
luchua-bc Jan 14, 2022
| https://github.com/github/codeql/pull/7286/commits/877c52981ff3b333d13cdb802b7f3592e5d753bc |
|
136fefb
Apply suggestions from code review
atorralba Jan 14, 2022
| https://github.com/github/codeql/pull/7286/commits/136fefbab55fe4ec9f2cec51feeddbf2c37ec9fa |
|
fb1287d
Use dominance instead of getParent
atorralba Jan 14, 2022
| https://github.com/github/codeql/pull/7286/commits/fb1287d577d09cfd6710b51c466351e47fd624c4 |
|
eb1806c
Split PathMatchGuard into three guards
atorralba Jan 14, 2022
| https://github.com/github/codeql/pull/7286/commits/eb1806c0a92d23dbd87fcc9b62fb11d1c5370711 |
|
a2c98ba
Reordering
atorralba Jan 14, 2022
| https://github.com/github/codeql/pull/7286/commits/a2c98baf29941f171128f21e189b18b7604b8b68 |
|
978ef15
Update method names
luchua-bc Jan 16, 2022
| https://github.com/github/codeql/pull/7286/commits/978ef1570a7fcbefdedb5a75a5a484e33f45b323 |
|
4797fce
Update use cases and qldoc
luchua-bc Jan 16, 2022
| https://github.com/github/codeql/pull/7286/commits/4797fce48a3d78adc95223a25a027f5e992cf078 |
|
a3d65a8
Update recommendation in qldoc and make examples more comprehendible
luchua-bc Jan 18, 2022
| https://github.com/github/codeql/pull/7286/commits/a3d65a8ed0663b044f6c9d9828cc3f60db5395c9 |
|
748008a
Remove dangling reference to UnsafeRequestPath.java
smowton Jan 18, 2022
| https://github.com/github/codeql/pull/7286/commits/748008ad517be80dfff4de9a867b7d9e181a19ae |
|
d744cf9
Clean up guard logic:
smowton Jan 18, 2022
| https://github.com/github/codeql/pull/7286/commits/d744cf9053442a1067162ff75bef8028b686f270 |
|
1e32514
Avoid using `this` for a non-extending supertype, and remove needless…
smowton Jan 18, 2022
| https://github.com/github/codeql/pull/7286/commits/1e32514600132eb40d7a5c9944efb0ff926992c6 |
|
Clear filters
| https://github.com/github/codeql/pull/7286/files |
| Please reload this page | https://github.com/github/codeql/pull/7286/files |
| Please reload this page | https://github.com/github/codeql/pull/7286/files |
|
Servlets.qll
| https://github.com/github/codeql/pull/7286/files#diff-33368733f046f32b4d0f28bebe9c0451ca1ce54376de355f82992b8b82f63083 |
|
UnsafeServletRequestDispatch.java
| https://github.com/github/codeql/pull/7286/files#diff-805730cadcfe1d72986a16492864bb2a853e59d650ac947b163182cc8d6ecec3 |
|
UnsafeUrlForward.qhelp
| https://github.com/github/codeql/pull/7286/files#diff-3e5cfcc60b5abc0126d377789c00f2606f31d2cb303c412acca9c927e0a0d722 |
|
UnsafeUrlForward.ql
| https://github.com/github/codeql/pull/7286/files#diff-3caec98bb63246165cd000f9dbbac654f2cd460af72d62cc2b6c0001f62eaf5e |
|
UnsafeUrlForward.qll
| https://github.com/github/codeql/pull/7286/files#diff-171b613f67732add15b5c1b18e1c983ed4522338e7debe776016bcd4f13ffcba |
|
UnsafeRequestPath.java
| https://github.com/github/codeql/pull/7286/files#diff-5bd5df81382259b5c474e0903462951c316c4b034fa3c9415fb1c0e50df98eda |
|
UnsafeServletRequestDispatch.java
| https://github.com/github/codeql/pull/7286/files#diff-6bc44c5765a6e460db430d2c13a69b22afe818b46bc96d630508b5e1d1cd6eb1 |
|
UnsafeUrlForward.expected
| https://github.com/github/codeql/pull/7286/files#diff-cee29b69dfd9b0b1243fd0589f66ac94dfd0c3b43cd5de6892331df28db85f95 |
|
UnsafeUrlForward.java
| https://github.com/github/codeql/pull/7286/files#diff-5d1cb9b9bddca39c10c82f29297e86482034283701a68060207e54253793e3f3 |
|
HttpServletRequest.java
| https://github.com/github/codeql/pull/7286/files#diff-0ae0fe89484194157999bd5737ef73e8574ec491cdcc5bc708b980b0537a07e4 |
|
| https://github.com/github/codeql/blob/main/CODEOWNERS#L16 |
| java/ql/lib/semmle/code/java/frameworks/Servlets.qll | https://github.com/github/codeql/pull/7286/files#diff-33368733f046f32b4d0f28bebe9c0451ca1ce54376de355f82992b8b82f63083 |
|
View file
| https://github.com/luchua-bc/ql/blob/1e32514600132eb40d7a5c9944efb0ff926992c6/java/ql/lib/semmle/code/java/frameworks/Servlets.qll |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/github/codeql/pull/7286/{{ revealButtonHref }} |
|
| https://github.com/github/codeql/pull/7286/files#diff-33368733f046f32b4d0f28bebe9c0451ca1ce54376de355f82992b8b82f63083 |
|
| https://github.com/github/codeql/blob/main/CODEOWNERS#L16 |
| java/ql/src/experimental/Security/CWE/CWE-552/UnsafeServletRequestDispatch.java | https://github.com/github/codeql/pull/7286/files#diff-805730cadcfe1d72986a16492864bb2a853e59d650ac947b163182cc8d6ecec3 |
|
View file
| https://github.com/luchua-bc/ql/blob/1e32514600132eb40d7a5c9944efb0ff926992c6/java/ql/src/experimental/Security/CWE/CWE-552/UnsafeServletRequestDispatch.java |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/github/codeql/pull/7286/{{ revealButtonHref }} |
|
| https://github.com/github/codeql/blob/main/CODEOWNERS#L16 |
| java/ql/src/experimental/Security/CWE/CWE-552/UnsafeUrlForward.qhelp | https://github.com/github/codeql/pull/7286/files#diff-3e5cfcc60b5abc0126d377789c00f2606f31d2cb303c412acca9c927e0a0d722 |
|
View file
| https://github.com/luchua-bc/ql/blob/1e32514600132eb40d7a5c9944efb0ff926992c6/java/ql/src/experimental/Security/CWE/CWE-552/UnsafeUrlForward.qhelp |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/github/codeql/pull/7286/{{ revealButtonHref }} |
|
| https://github.com/github/codeql/pull/7286/files#diff-3e5cfcc60b5abc0126d377789c00f2606f31d2cb303c412acca9c927e0a0d722 |
| Please reload this page | https://github.com/github/codeql/pull/7286/files |
|
| https://github.com/github/codeql/blob/main/CODEOWNERS#L16 |
| java/ql/src/experimental/Security/CWE/CWE-552/UnsafeUrlForward.ql | https://github.com/github/codeql/pull/7286/files#diff-3caec98bb63246165cd000f9dbbac654f2cd460af72d62cc2b6c0001f62eaf5e |
|
View file
| https://github.com/luchua-bc/ql/blob/1e32514600132eb40d7a5c9944efb0ff926992c6/java/ql/src/experimental/Security/CWE/CWE-552/UnsafeUrlForward.ql |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/github/codeql/pull/7286/{{ revealButtonHref }} |
|
| https://github.com/github/codeql/pull/7286/files#diff-3caec98bb63246165cd000f9dbbac654f2cd460af72d62cc2b6c0001f62eaf5e |
|
| https://github.com/github/codeql/pull/7286/files#diff-3caec98bb63246165cd000f9dbbac654f2cd460af72d62cc2b6c0001f62eaf5e |
| Please reload this page | https://github.com/github/codeql/pull/7286/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |