René's URL Explorer Experiment


Title: Introduced protections against "zip slip" attacks by pixeebot[bot] · Pull Request #32 · Pixee-Bot-Java/flow · GitHub

Open Graph Title: Introduced protections against "zip slip" attacks by pixeebot[bot] · Pull Request #32 · Pixee-Bot-Java/flow

X Title: Introduced protections against "zip slip" attacks by pixeebot[bot] · Pull Request #32 · Pixee-Bot-Java/flow

Description: This change updates all new instances of ZipInputStream to protect against malicious entries that attempt to escape their "file root" and overwrite other files on the running filesystem. Normally, when you're using ZipInputStream it's because you're processing zip files. That code might look like this: File file = new File(unzipTargetDirectory, zipEntry.getName()); // use file name from zip entry InputStream is = zip.getInputStream(zipEntry); // get the contents of the zip entry IOUtils.copy(is, new FileOutputStream(file)); // write the contents to the provided file name This looks fine when it encounters a normal zip entry within a zip file, looking something like this pseudo-data: path: data/names.txt contents: Zeus\nHelen\nLeda... However, there's nothing to prevent an attacker from sending an evil entry in the zip that looks more like this: path: ../../../../../etc/passwd contents: root::0:0:root:/:/bin/sh Yes, in the above code, which looks like every piece of zip-processing code you can find on the Internet, attackers could overwrite any files to which the application has access. This rule replaces the standard ZipInputStream with a hardened subclass which prevents access to entry paths that attempt to traverse directories above the current directory (which no normal zip file should ever do.) Our changes end up looking something like this: + import io.github.pixee.security.ZipSecurity; ... - var zip = new ZipInputStream(is, StandardCharsets.UTF_8); + var zip = ZipSecurity.createHardenedInputStream(is, StandardCharsets.UTF_8); More reading https://cwe.mitre.org/data/definitions/23 https://snyk.io/research/zip-slip-vulnerability https://github.com/snyk/zip-slip-vulnerability https://wiki.sei.cmu.edu/confluence/display/java/IDS04-J.+Safely+extract+files+from+ZipInputStream https://vulncat.fortify.com/en/detail?id=desc.dataflow.java.path_manipulation_zip_entry_overwrite I have additional improvements ready for this repo! If you want to see them, leave the comment: @pixeebot next ... and I will open a new PR right away! 🧚🤖 Powered by Pixeebot Feedback | Community | Docs | Codemod ID: pixee:java/harden-zip-entry-paths

Open Graph Description: This change updates all new instances of ZipInputStream to protect against malicious entries that attempt to escape their "file root" and overwrite other files on the running filesystem. ...

X Description: This change updates all new instances of ZipInputStream to protect against malicious entries that attempt to escape their "file root" and overwrite other files on the running file...

Opengraph URL: https://github.com/Pixee-Bot-Java/flow/pull/32

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a1e4ec4f-34b5-7d4f-5c7c-acd80355cc1c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE8B2:5A3DD:1A108CC:20F9E09:69917BCB
html-safe-noncec0305bc448184798a46a417dda1a0d0843455bc4fdc9af39eb61c5ab4ddd7566
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOEIyOjVBM0REOjFBMTA4Q0M6MjBGOUUwOTo2OTkxN0JDQiIsInZpc2l0b3JfaWQiOiIyMzg3NzgyMDQ0ODcwNjA1NzcxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac1ff5f3be982bb00a457988c79fa65538d21c724a5a8b3e9d79efdfd6219717a2
hovercard-subject-tagpull_request:2661912052
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/Pixee-Bot-Java/flow/pull/32/files
twitter:imagehttps://avatars.githubusercontent.com/in/193111?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/in/193111?s=400&v=4
og:image:altThis change updates all new instances of ZipInputStream to protect against malicious entries that attempt to escape their "file root" and overwrite other files on the running filesystem. ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/Pixee-Bot-Java/flow git https://github.com/Pixee-Bot-Java/flow.git
octolytics-dimension-user_id143516492
octolytics-dimension-user_loginPixee-Bot-Java
octolytics-dimension-repository_id795756272
octolytics-dimension-repository_nwoPixee-Bot-Java/flow
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id34809191
octolytics-dimension-repository_parent_nwovaadin/flow
octolytics-dimension-repository_network_root_id34809191
octolytics-dimension-repository_network_root_nwovaadin/flow
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
release848bc6032dcc93a9a7301dcc3f379a72ba13b96e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FPixee-Bot-Java%2Fflow%2Fpull%2F32%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FPixee-Bot-Java%2Fflow%2Fpull%2F32%2Ffiles
Sign up https://patch-diff.githubusercontent.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=Pixee-Bot-Java%2Fflow
Reloadhttps://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files
Reloadhttps://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files
Reloadhttps://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files
Pixee-Bot-Java https://patch-diff.githubusercontent.com/Pixee-Bot-Java
flowhttps://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow
vaadin/flowhttps://patch-diff.githubusercontent.com/vaadin/flow
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FPixee-Bot-Java%2Fflow
Fork 0 https://patch-diff.githubusercontent.com/login?return_to=%2FPixee-Bot-Java%2Fflow
Star 0 https://patch-diff.githubusercontent.com/login?return_to=%2FPixee-Bot-Java%2Fflow
Code https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow
Pull requests 1 https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pulls
Actions https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/actions
Projects 0 https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/projects
Security 0 https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/security
Insights https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pulse
Code https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow
Pull requests https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pulls
Actions https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/actions
Projects https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/projects
Security https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/security
Insights https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2FPixee-Bot-Java%2Fflow%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2FPixee-Bot-Java%2Fflow%2Fissues%2Fnew%2Fchoose
pixeebothttps://patch-diff.githubusercontent.com/apps/pixeebot
mainhttps://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/tree/main
pixeebot/drip-2025-07-13-pixee-java/harden-zip-entry-pathshttps://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/tree/pixeebot/drip-2025-07-13-pixee-java/harden-zip-entry-paths
Conversation 5 https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32
Commits 1 https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/commits
Checks 5 https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/checks
Files changed https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files
Please reload this pagehttps://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files
Introduced protections against "zip slip" attacks https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files#top
Show all changes 1 commit https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files
c876588 Introduced protections against "zip slip" attacks pixeebot[bot] Jul 13, 2025 https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/commits/c876588ba0307282c631a36afa2158a8940f834d
Clear filters https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files
Please reload this pagehttps://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files
Please reload this pagehttps://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files
pom.xml https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files#diff-4abe9f264d9d9616e9178b98b70fdfbb13aeea2d49ef4c0e6c30f04882ab55d3
CompressUtil.java https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files#diff-e0129a60076a6de18821fdba444caac68abfb4275536aa7f0e21b71c9247e500
pom.xml https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8
flow-server/pom.xmlhttps://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files#diff-4abe9f264d9d9616e9178b98b70fdfbb13aeea2d49ef4c0e6c30f04882ab55d3
View file https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/blob/c876588ba0307282c631a36afa2158a8940f834d/flow-server/pom.xml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files#diff-4abe9f264d9d9616e9178b98b70fdfbb13aeea2d49ef4c0e6c30f04882ab55d3
pixeebothttps://patch-diff.githubusercontent.com/apps/pixeebot
Jul 13, 2025https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files#r2203097992
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Open sourcehttps://github.com/pixee/java-security-toolkit
More factshttps://mvnrepository.com/artifact/io.github.pixee/java-security-toolkit/1.2.1
Please reload this pagehttps://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files
https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files#diff-4abe9f264d9d9616e9178b98b70fdfbb13aeea2d49ef4c0e6c30f04882ab55d3
flow-server/src/main/java/com/vaadin/flow/server/frontend/CompressUtil.javahttps://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files#diff-e0129a60076a6de18821fdba444caac68abfb4275536aa7f0e21b71c9247e500
View file https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/blob/c876588ba0307282c631a36afa2158a8940f834d/flow-server/src/main/java/com/vaadin/flow/server/frontend/CompressUtil.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files#diff-e0129a60076a6de18821fdba444caac68abfb4275536aa7f0e21b71c9247e500
https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files#diff-e0129a60076a6de18821fdba444caac68abfb4275536aa7f0e21b71c9247e500
https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files#diff-e0129a60076a6de18821fdba444caac68abfb4275536aa7f0e21b71c9247e500
https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files#diff-e0129a60076a6de18821fdba444caac68abfb4275536aa7f0e21b71c9247e500
pom.xmlhttps://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8
View file https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/blob/c876588ba0307282c631a36afa2158a8940f834d/pom.xml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8
https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8
https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8
pixeebothttps://patch-diff.githubusercontent.com/apps/pixeebot
Jul 13, 2025https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files#r2203097994
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Open sourcehttps://github.com/pixee/java-security-toolkit
More factshttps://mvnrepository.com/artifact/io.github.pixee/java-security-toolkit/1.2.1
Please reload this pagehttps://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files
https://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8
Please reload this pagehttps://patch-diff.githubusercontent.com/Pixee-Bot-Java/flow/pull/32/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.