René's URL Explorer Experiment


Title: Add defensive class validation during deserialization by yannaingtun · Pull Request #85 · squirrel-sql-client/squirrel-sql-code · GitHub

Open Graph Title: Add defensive class validation during deserialization by yannaingtun · Pull Request #85 · squirrel-sql-client/squirrel-sql-code

X Title: Add defensive class validation during deserialization by yannaingtun · Pull Request #85 · squirrel-sql-client/squirrel-sql-code

Description: This change adds a defensive safeguard to the deserialization logic in Utilities.cloneObject(). Previously, the custom ObjectInputStream.resolveClass() method loaded classes using Class.forName() without validating that the resolved class matched the expected object type. If untrusted or malformed serialized data were ever passed to this code path, this could allow unexpected classes to be resolved during deserialization. The updated implementation verifies that the resolved class is compatible with the original object’s class and rejects incompatible classes early. This keeps the existing behavior for valid use cases while adding an extra layer of safety.

Open Graph Description: This change adds a defensive safeguard to the deserialization logic in Utilities.cloneObject(). Previously, the custom ObjectInputStream.resolveClass() method loaded classes using Class.forName() w...

X Description: This change adds a defensive safeguard to the deserialization logic in Utilities.cloneObject(). Previously, the custom ObjectInputStream.resolveClass() method loaded classes using Class.forName() w...

Opengraph URL: https://github.com/squirrel-sql-client/squirrel-sql-code/pull/85

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:7e640d1f-c8a7-519f-c373-0fad2ddda04c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD9B0:38EDB5:2177:26CA:697F32C5
html-safe-nonce023358afcc9dc4972aa5522eb917badc9490a874db98635583f23ddf71e5498d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUIwOjM4RURCNToyMTc3OjI2Q0E6Njk3RjMyQzUiLCJ2aXNpdG9yX2lkIjoiNzk0MjgyMzU1MzU5MjY2ODg2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac0d2e9a8679d408383353668d11d4c0139786e34eed3caadf46b05aca8916e731
hovercard-subject-tagpull_request:3124916388
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/squirrel-sql-client/squirrel-sql-code/pull/85/files
twitter:imagehttps://avatars.githubusercontent.com/u/7442296?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/7442296?s=400&v=4
og:image:altThis change adds a defensive safeguard to the deserialization logic in Utilities.cloneObject(). Previously, the custom ObjectInputStream.resolveClass() method loaded classes using Class.forName() w...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/squirrel-sql-client/squirrel-sql-code git https://github.com/squirrel-sql-client/squirrel-sql-code.git
octolytics-dimension-user_id108697363
octolytics-dimension-user_loginsquirrel-sql-client
octolytics-dimension-repository_id510507055
octolytics-dimension-repository_nwosquirrel-sql-client/squirrel-sql-code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id510507055
octolytics-dimension-repository_network_root_nwosquirrel-sql-client/squirrel-sql-code
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7c85641c598ad130c74f7bcc27f58575cac69551
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/pull/85/files#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsquirrel-sql-client%2Fsquirrel-sql-code%2Fpull%2F85%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%2Fsquirrel-sql-client%2Fsquirrel-sql-code%2Fpull%2F85%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=squirrel-sql-client%2Fsquirrel-sql-code
Reloadhttps://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/pull/85/files
Reloadhttps://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/pull/85/files
Reloadhttps://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/pull/85/files
squirrel-sql-client https://patch-diff.githubusercontent.com/squirrel-sql-client
squirrel-sql-codehttps://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fsquirrel-sql-client%2Fsquirrel-sql-code
Fork 25 https://patch-diff.githubusercontent.com/login?return_to=%2Fsquirrel-sql-client%2Fsquirrel-sql-code
Star 89 https://patch-diff.githubusercontent.com/login?return_to=%2Fsquirrel-sql-client%2Fsquirrel-sql-code
Code https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code
Issues 31 https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/issues
Pull requests 5 https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/pulls
Projects 0 https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/projects
Security 0 https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/security
Insights https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/pulse
Code https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code
Issues https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/issues
Pull requests https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/pulls
Projects https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/projects
Security https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/security
Insights https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fsquirrel-sql-client%2Fsquirrel-sql-code%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=%2Fsquirrel-sql-client%2Fsquirrel-sql-code%2Fissues%2Fnew%2Fchoose
yannaingtunhttps://patch-diff.githubusercontent.com/yannaingtun
squirrel-sql-client:masterhttps://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/tree/master
yannaingtun:fix-deserializationhttps://patch-diff.githubusercontent.com/yannaingtun/squirrel-sql-code/tree/fix-deserialization
Conversation 0 https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/pull/85
Commits 1 https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/pull/85/commits
Checks 0 https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/pull/85/checks
Files changed https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/pull/85/files
Please reload this pagehttps://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/pull/85/files
Add defensive class validation during deserialization https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/pull/85/files#top
Show all changes 1 commit https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/pull/85/files
5282005 Add defensive class validation during deserialization yannaingtun Dec 23, 2025 https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/pull/85/commits/5282005ab04e4ae1784dc1e38786e0094f7b109e
Clear filters https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/pull/85/files
Please reload this pagehttps://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/pull/85/files
Please reload this pagehttps://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/pull/85/files
sql12/core/src/net/sourceforge/squirrel_sql/fw/util/Utilities.javahttps://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/pull/85/files#diff-99ae2ca23bce0d9e8451f7216d69a21c15cbb8a943eb750637005a815cc6f4bd
View file https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/blob/5282005ab04e4ae1784dc1e38786e0094f7b109e/sql12/core/src/net/sourceforge/squirrel_sql/fw/util/Utilities.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/pull/85/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/pull/85/files#diff-99ae2ca23bce0d9e8451f7216d69a21c15cbb8a943eb750637005a815cc6f4bd
https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/pull/85/files#diff-99ae2ca23bce0d9e8451f7216d69a21c15cbb8a943eb750637005a815cc6f4bd
https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/pull/85/files#diff-99ae2ca23bce0d9e8451f7216d69a21c15cbb8a943eb750637005a815cc6f4bd
https://patch-diff.githubusercontent.com/squirrel-sql-client/squirrel-sql-code/pull/85/files#diff-99ae2ca23bce0d9e8451f7216d69a21c15cbb8a943eb750637005a815cc6f4bd
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.