René's URL Explorer Experiment


Title: Java: Introduce Freemarker for SSTI queries by japroc · Pull Request #6320 · github/codeql · GitHub

Open Graph Title: Java: Introduce Freemarker for SSTI queries by japroc · Pull Request #6320 · github/codeql

X Title: Java: Introduce Freemarker for SSTI queries by japroc · Pull Request #6320 · github/codeql

Description: Hi team! I want to add support for Freemarker template engine. There is a Freemarker.qll library and 2 queries. Query 1 - FreemarkerTaintedTemplate.ql Search for cases when untrusted data is used as template. It may lead to remote code execution and information disclosure vulnerabilities. Query 2 - FreemarkerUnsafeConfiguration.ql Search for unsafe freemarker configurations. It is not critical by default. Although, when developers use builtin interpret filter on user-data, they will be executed as part of template. As i know it's impossible to analyze ftl files. As mitigation it's recommended to configure secure engine by 1) not enabling Builtin API, 2) setting class resolver to ALLOWS_NOTHING_RESOLVER. Thanks, Evgenii.

Open Graph Description: Hi team! I want to add support for Freemarker template engine. There is a Freemarker.qll library and 2 queries. Query 1 - FreemarkerTaintedTemplate.ql Search for cases when untrusted data is used a...

X Description: Hi team! I want to add support for Freemarker template engine. There is a Freemarker.qll library and 2 queries. Query 1 - FreemarkerTaintedTemplate.ql Search for cases when untrusted data is used a...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:1fe26a22-8e5b-3084-36ad-75ba05189ff6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id828E:2FE0E1:54926D:73AD11:6A4DCBBE
html-safe-nonce3a71a99cbe72d0736900becfbe7604eecbf91c4c5530ebd4312ae028563703fa
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjhFOjJGRTBFMTo1NDkyNkQ6NzNBRDExOjZBNERDQkJFIiwidmlzaXRvcl9pZCI6IjQwNDAyNjQyMTM3MzM0MjgxNTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac335c49cb9301b7c32482d5d46cc92281143ac1e7032a1c593c9d82616add19e7
hovercard-subject-tagpull_request:692130423
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/6320/files
twitter:imagehttps://avatars.githubusercontent.com/u/15655261?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/15655261?s=400&v=4
og:image:altHi team! I want to add support for Freemarker template engine. There is a Freemarker.qll library and 2 queries. Query 1 - FreemarkerTaintedTemplate.ql Search for cases when untrusted data is used a...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
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
release1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql/pull/6320/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F6320%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%2F6320%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/6320/files
Reloadhttps://github.com/github/codeql/pull/6320/files
Reloadhttps://github.com/github/codeql/pull/6320/files
Please reload this pagehttps://github.com/github/codeql/pull/6320/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 426 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
japrochttps://github.com/japroc
github:mainhttps://github.com/github/codeql/tree/main
japroc:freemarkerhttps://github.com/japroc/codeql/tree/freemarker
Conversation 3 https://github.com/github/codeql/pull/6320
Findings https://github.com/github/codeql/pull/6320/findings
Commits 3 https://github.com/github/codeql/pull/6320/commits
Checks 0 https://github.com/github/codeql/pull/6320/checks
Files changed https://github.com/github/codeql/pull/6320/files
Please reload this pagehttps://github.com/github/codeql/pull/6320/files
Java: Introduce Freemarker for SSTI queries https://github.com/github/codeql/pull/6320/files#top
Show all changes 3 commits https://github.com/github/codeql/pull/6320/files
b93aaea Introduce Freemarker japroc Jul 18, 2021 https://github.com/github/codeql/pull/6320/commits/b93aaea3d17b8898f17757c8a79aac1bae8c4b4b
e715c17 add freemarker setSetting flow japroc Jul 28, 2021 https://github.com/github/codeql/pull/6320/commits/e715c170d9fa2cfb220c70d7643023e331f2b3b6
0427366 java. freemarker. add allowNothing variation Aug 5, 2021 https://github.com/github/codeql/pull/6320/commits/0427366321909826a812d10fffdd50c1ad3bdd9a
Clear filters https://github.com/github/codeql/pull/6320/files
Please reload this pagehttps://github.com/github/codeql/pull/6320/files
Please reload this pagehttps://github.com/github/codeql/pull/6320/files
Freemarker.qll https://github.com/github/codeql/pull/6320/files#diff-52cb7caeafe307a976ac83419a61d4375c2abfcbbccaf49a53454c5081f94e7a
FreemarkerTaintedTemplate.java https://github.com/github/codeql/pull/6320/files#diff-a526259e4e29214cf527258327ec818782bb5dbe47e5635fe4dc377fc1104ca6
FreemarkerTaintedTemplate.qhelp https://github.com/github/codeql/pull/6320/files#diff-83292b11fe2898f230ae02ce2a096e436c9016b008f3ba6e2ead31b81145d5a0
FreemarkerTaintedTemplate.ql https://github.com/github/codeql/pull/6320/files#diff-fade519ef63b7fe5b81e43e27ec121a002fbe8b52a9c98a116bd51022389d69c
FreemarkerUnsafeConfiguration.ftl https://github.com/github/codeql/pull/6320/files#diff-f31c2e10a504cf046a7bd8921e14dad580465f8061e0fd7977e7710e3634626d
FreemarkerUnsafeConfiguration.java https://github.com/github/codeql/pull/6320/files#diff-9e570af35262c005e5799f1f28fe91ea3fd785cee87ca40777e9fb30b94105a1
FreemarkerUnsafeConfiguration.qhelp https://github.com/github/codeql/pull/6320/files#diff-95722f9ed89a26d567b18d9ea23a8b6fbdacfbdf6950561553a36c87dc376ae2
FreemarkerUnsafeConfiguration.ql https://github.com/github/codeql/pull/6320/files#diff-95fdca4218be527a01ff93dd56930254c52b99f0a01f0bd3bdf9cd2ed39c360e
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/src/experimental/Security/CWE/CWE-094/Freemarker.qllhttps://github.com/github/codeql/pull/6320/files#diff-52cb7caeafe307a976ac83419a61d4375c2abfcbbccaf49a53454c5081f94e7a
View file https://github.com/github/codeql/blob/0427366321909826a812d10fffdd50c1ad3bdd9a/java/ql/src/experimental/Security/CWE/CWE-094/Freemarker.qll
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6320/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/src/experimental/Security/CWE/CWE-094/FreemarkerTaintedTemplate.javahttps://github.com/github/codeql/pull/6320/files#diff-a526259e4e29214cf527258327ec818782bb5dbe47e5635fe4dc377fc1104ca6
View file https://github.com/github/codeql/blob/0427366321909826a812d10fffdd50c1ad3bdd9a/java/ql/src/experimental/Security/CWE/CWE-094/FreemarkerTaintedTemplate.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6320/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/src/experimental/Security/CWE/CWE-094/FreemarkerTaintedTemplate.qhelphttps://github.com/github/codeql/pull/6320/files#diff-83292b11fe2898f230ae02ce2a096e436c9016b008f3ba6e2ead31b81145d5a0
View file https://github.com/github/codeql/blob/0427366321909826a812d10fffdd50c1ad3bdd9a/java/ql/src/experimental/Security/CWE/CWE-094/FreemarkerTaintedTemplate.qhelp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6320/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/src/experimental/Security/CWE/CWE-094/FreemarkerTaintedTemplate.qlhttps://github.com/github/codeql/pull/6320/files#diff-fade519ef63b7fe5b81e43e27ec121a002fbe8b52a9c98a116bd51022389d69c
View file https://github.com/github/codeql/blob/0427366321909826a812d10fffdd50c1ad3bdd9a/java/ql/src/experimental/Security/CWE/CWE-094/FreemarkerTaintedTemplate.ql
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6320/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/src/experimental/Security/CWE/CWE-094/FreemarkerUnsafeConfiguration.ftlhttps://github.com/github/codeql/pull/6320/files#diff-f31c2e10a504cf046a7bd8921e14dad580465f8061e0fd7977e7710e3634626d
View file https://github.com/github/codeql/blob/0427366321909826a812d10fffdd50c1ad3bdd9a/java/ql/src/experimental/Security/CWE/CWE-094/FreemarkerUnsafeConfiguration.ftl
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6320/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/src/experimental/Security/CWE/CWE-094/FreemarkerUnsafeConfiguration.javahttps://github.com/github/codeql/pull/6320/files#diff-9e570af35262c005e5799f1f28fe91ea3fd785cee87ca40777e9fb30b94105a1
View file https://github.com/github/codeql/blob/0427366321909826a812d10fffdd50c1ad3bdd9a/java/ql/src/experimental/Security/CWE/CWE-094/FreemarkerUnsafeConfiguration.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6320/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/src/experimental/Security/CWE/CWE-094/FreemarkerUnsafeConfiguration.qhelphttps://github.com/github/codeql/pull/6320/files#diff-95722f9ed89a26d567b18d9ea23a8b6fbdacfbdf6950561553a36c87dc376ae2
View file https://github.com/github/codeql/blob/0427366321909826a812d10fffdd50c1ad3bdd9a/java/ql/src/experimental/Security/CWE/CWE-094/FreemarkerUnsafeConfiguration.qhelp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6320/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L16
java/ql/src/experimental/Security/CWE/CWE-094/FreemarkerUnsafeConfiguration.qlhttps://github.com/github/codeql/pull/6320/files#diff-95fdca4218be527a01ff93dd56930254c52b99f0a01f0bd3bdf9cd2ed39c360e
View file https://github.com/github/codeql/blob/0427366321909826a812d10fffdd50c1ad3bdd9a/java/ql/src/experimental/Security/CWE/CWE-094/FreemarkerUnsafeConfiguration.ql
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/6320/{{ 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.