René's URL Explorer Experiment


Title: [Java] CWE-552: Unsafe url forward by haby0 · Pull Request #6240 · github/codeql · GitHub

Open Graph Title: [Java] CWE-552: Unsafe url forward by haby0 · Pull Request #6240 · github/codeql

X Title: [Java] CWE-552: Unsafe url forward by haby0 · Pull Request #6240 · github/codeql

Description: Constructing a server-side redirect path with user input could allow an attacker to download application binaries (including application classes or jar files) or view arbitrary files within protected directories.

Open Graph Description: Constructing a server-side redirect path with user input could allow an attacker to download application binaries (including application classes or jar files) or view arbitrary files within protect...

X Description: Constructing a server-side redirect path with user input could allow an attacker to download application binaries (including application classes or jar files) or view arbitrary files within protect...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:8e32c12f-2158-4170-77c0-c0741d834e7b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB26E:258F5C:9AC61:D46AD:6A4D2BB9
html-safe-noncec278b12065028b9b3b55adc8c5c001055769ea8c33c0ca6418153411dbd425fb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjZFOjI1OEY1Qzo5QUM2MTpENDZBRDo2QTREMkJCOSIsInZpc2l0b3JfaWQiOiIxNTQzMzM2MTIwOTUwNzk1MTkzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0fbd5775e4f42756ce48d473ac9a219ec5523fc23d5ff4ebd596a9cf3414d4f4
hovercard-subject-tagpull_request:685939654
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/6240/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:altConstructing a server-side redirect path with user input could allow an attacker to download application binaries (including application classes or jar files) or view arbitrary files within protect...
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-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql/pull/6240/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F6240%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%2F6240%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/6240/files
Reloadhttps://github.com/github/codeql/pull/6240/files
Reloadhttps://github.com/github/codeql/pull/6240/files
Please reload this pagehttps://github.com/github/codeql/pull/6240/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
smowtonhttps://github.com/smowton
github:mainhttps://github.com/github/codeql/tree/main
Conversation 27 https://github.com/github/codeql/pull/6240
Findings https://github.com/github/codeql/pull/6240/findings
Commits 7 https://github.com/github/codeql/pull/6240/commits
Checks 0 https://github.com/github/codeql/pull/6240/checks
Files changed https://github.com/github/codeql/pull/6240/files
Please reload this pagehttps://github.com/github/codeql/pull/6240/files
[Java] CWE-552: Unsafe url forward https://github.com/github/codeql/pull/6240/files#top
Show all changes 7 commits https://github.com/github/codeql/pull/6240/files
d0eec1e Add CWE-552-UnsafeUrlForward haby0 Jul 8, 2021 https://github.com/github/codeql/pull/6240/commits/d0eec1e3813962313f2d417a84196d37ad5da6ed
952b34a Eliminate FP haby0 Sep 16, 2021 https://github.com/github/codeql/pull/6240/commits/952b34a163f8bbdc5b5376c937f26e7d17a3fa5f
679652e Modify Sanitizer haby0 Sep 24, 2021 https://github.com/github/codeql/pull/6240/commits/679652e63aa55a216770e5c95e86faad12f9d8ff
283376e Modify the model haby0 Sep 28, 2021 https://github.com/github/codeql/pull/6240/commits/283376eb199cda013a6023a9edaae8490d0846ae
9d9a7ab Fix haby0 Oct 8, 2021 https://github.com/github/codeql/pull/6240/commits/9d9a7abd0635a83c2264cc3aceea8d001d3d562b
8a4fa0a Copyedit smowton Oct 12, 2021 https://github.com/github/codeql/pull/6240/commits/8a4fa0a7e2259bcac75fed23637b9c8b09af2a12
057d0fb Rewrite query to use shared StringPrefixes library smowton Oct 19, 2021 https://github.com/github/codeql/pull/6240/commits/057d0fb7e0d2cc0577a779c0c9f160083789868a
Clear filters https://github.com/github/codeql/pull/6240/files
Please reload this pagehttps://github.com/github/codeql/pull/6240/files
Please reload this pagehttps://github.com/github/codeql/pull/6240/files
Servlets.qll https://github.com/github/codeql/pull/6240/files#diff-33368733f046f32b4d0f28bebe9c0451ca1ce54376de355f82992b8b82f63083
UnsafeUrlForward.java https://github.com/github/codeql/pull/6240/files#diff-56b37fac889d047a899e6a17e00ed3f979af118ee73bfebc6d5dea55311dafbf
UnsafeUrlForward.qhelp https://github.com/github/codeql/pull/6240/files#diff-3e5cfcc60b5abc0126d377789c00f2606f31d2cb303c412acca9c927e0a0d722
UnsafeUrlForward.ql https://github.com/github/codeql/pull/6240/files#diff-3caec98bb63246165cd000f9dbbac654f2cd460af72d62cc2b6c0001f62eaf5e
UnsafeUrlForward.qll https://github.com/github/codeql/pull/6240/files#diff-171b613f67732add15b5c1b18e1c983ed4522338e7debe776016bcd4f13ffcba
UnsafeUrlForward.expected https://github.com/github/codeql/pull/6240/files#diff-cee29b69dfd9b0b1243fd0589f66ac94dfd0c3b43cd5de6892331df28db85f95
UnsafeUrlForward.java https://github.com/github/codeql/pull/6240/files#diff-5d1cb9b9bddca39c10c82f29297e86482034283701a68060207e54253793e3f3
UnsafeUrlForward.qlref https://github.com/github/codeql/pull/6240/files#diff-a408207c960f8b61f40e570a22e1d9daf03394f0a5a06cfce5499b0d6779d02d
options https://github.com/github/codeql/pull/6240/files#diff-a23d6723ceb9ac152050ee8f7d948a8b29e6f3b36a0143e4f85a7272e62e5d0c
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/lib/semmle/code/java/frameworks/Servlets.qllhttps://github.com/github/codeql/pull/6240/files#diff-33368733f046f32b4d0f28bebe9c0451ca1ce54376de355f82992b8b82f63083
View file https://github.com/github/codeql/blob/057d0fb7e0d2cc0577a779c0c9f160083789868a/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/6240/{{ revealButtonHref }}
https://github.com/github/codeql/pull/6240/files#diff-33368733f046f32b4d0f28bebe9c0451ca1ce54376de355f82992b8b82f63083
https://github.com/github/codeql/pull/6240/files#diff-33368733f046f32b4d0f28bebe9c0451ca1ce54376de355f82992b8b82f63083
https://github.com/github/codeql/pull/6240/files#diff-33368733f046f32b4d0f28bebe9c0451ca1ce54376de355f82992b8b82f63083
https://github.com/github/codeql/pull/6240/files#diff-33368733f046f32b4d0f28bebe9c0451ca1ce54376de355f82992b8b82f63083
https://github.com/github/codeql/pull/6240/files#diff-33368733f046f32b4d0f28bebe9c0451ca1ce54376de355f82992b8b82f63083
https://github.com/github/codeql/pull/6240/files#diff-33368733f046f32b4d0f28bebe9c0451ca1ce54376de355f82992b8b82f63083
https://github.com/github/codeql/pull/6240/files#diff-33368733f046f32b4d0f28bebe9c0451ca1ce54376de355f82992b8b82f63083
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/src/experimental/Security/CWE/CWE-552/UnsafeUrlForward.javahttps://github.com/github/codeql/pull/6240/files#diff-56b37fac889d047a899e6a17e00ed3f979af118ee73bfebc6d5dea55311dafbf
View file https://github.com/github/codeql/blob/057d0fb7e0d2cc0577a779c0c9f160083789868a/java/ql/src/experimental/Security/CWE/CWE-552/UnsafeUrlForward.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6240/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/src/experimental/Security/CWE/CWE-552/UnsafeUrlForward.qhelphttps://github.com/github/codeql/pull/6240/files#diff-3e5cfcc60b5abc0126d377789c00f2606f31d2cb303c412acca9c927e0a0d722
View file https://github.com/github/codeql/blob/057d0fb7e0d2cc0577a779c0c9f160083789868a/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/6240/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/src/experimental/Security/CWE/CWE-552/UnsafeUrlForward.qlhttps://github.com/github/codeql/pull/6240/files#diff-3caec98bb63246165cd000f9dbbac654f2cd460af72d62cc2b6c0001f62eaf5e
View file https://github.com/github/codeql/blob/057d0fb7e0d2cc0577a779c0c9f160083789868a/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/6240/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/src/experimental/Security/CWE/CWE-552/UnsafeUrlForward.qllhttps://github.com/github/codeql/pull/6240/files#diff-171b613f67732add15b5c1b18e1c983ed4522338e7debe776016bcd4f13ffcba
View file https://github.com/github/codeql/blob/057d0fb7e0d2cc0577a779c0c9f160083789868a/java/ql/src/experimental/Security/CWE/CWE-552/UnsafeUrlForward.qll
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6240/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/test/experimental/query-tests/security/CWE-552/UnsafeUrlForward.expectedhttps://github.com/github/codeql/pull/6240/files#diff-cee29b69dfd9b0b1243fd0589f66ac94dfd0c3b43cd5de6892331df28db85f95
View file https://github.com/github/codeql/blob/057d0fb7e0d2cc0577a779c0c9f160083789868a/java/ql/test/experimental/query-tests/security/CWE-552/UnsafeUrlForward.expected
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6240/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/test/experimental/query-tests/security/CWE-552/UnsafeUrlForward.javahttps://github.com/github/codeql/pull/6240/files#diff-5d1cb9b9bddca39c10c82f29297e86482034283701a68060207e54253793e3f3
View file https://github.com/github/codeql/blob/057d0fb7e0d2cc0577a779c0c9f160083789868a/java/ql/test/experimental/query-tests/security/CWE-552/UnsafeUrlForward.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6240/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/test/experimental/query-tests/security/CWE-552/UnsafeUrlForward.qlrefhttps://github.com/github/codeql/pull/6240/files#diff-a408207c960f8b61f40e570a22e1d9daf03394f0a5a06cfce5499b0d6779d02d
View file https://github.com/github/codeql/blob/057d0fb7e0d2cc0577a779c0c9f160083789868a/java/ql/test/experimental/query-tests/security/CWE-552/UnsafeUrlForward.qlref
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6240/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/test/experimental/query-tests/security/CWE-552/optionshttps://github.com/github/codeql/pull/6240/files#diff-a23d6723ceb9ac152050ee8f7d948a8b29e6f3b36a0143e4f85a7272e62e5d0c
View file https://github.com/github/codeql/blob/057d0fb7e0d2cc0577a779c0c9f160083789868a/java/ql/test/experimental/query-tests/security/CWE-552/options
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6240/{{ revealButtonHref }}
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.