| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:f5a5e68c-a911-a1fa-9a0a-c89b66965bfe |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C5D8:31D4:24802D0:34BAD2D:6A4D1B23 |
| html-safe-nonce | f2f364bf5bb5714320d02d273f8319163577ff38d89c22be9a858437b7a77ecb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUQ4OjMxRDQ6MjQ4MDJEMDozNEJBRDJEOjZBNEQxQjIzIiwidmlzaXRvcl9pZCI6IjExODY0NDk0NTk5MTY5MDUyNTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 26e29178af8caf346b620ba5128b4ec7429b2529ec38c1daa845f4adde01ef09 |
| hovercard-subject-tag | pull_request:443771087 |
| 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/3882/files |
| twitter:image | https://avatars.githubusercontent.com/u/43420907?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/43420907?s=400&v=4 |
| og:image:alt | Log Injection query is available in c# query, javascript (experimental) query but it is not available in java query.
I created a query to detect a log injection vulnerability in java code.
This que... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | bcb4661e6fb4fe8b394c51ea02ccdb2236d40dc59afc75a3bbba50bf6517134c |
| 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 | fb70bd3c4b2bec429781b65419e912c66e2d5581 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/github/codeql/pull/3882/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F3882%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%2F3882%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/3882/files |
| Reload | https://github.com/github/codeql/pull/3882/files |
| Reload | https://github.com/github/codeql/pull/3882/files |
| Please reload this page | https://github.com/github/codeql/pull/3882/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 |
| dellalibera | https://github.com/dellalibera |
| github:main | https://github.com/github/codeql/tree/main |
| dellalibera:java/log-injection | https://github.com/dellalibera/codeql/tree/java/log-injection |
|
Conversation
30
| https://github.com/github/codeql/pull/3882 |
|
Findings
| https://github.com/github/codeql/pull/3882/findings |
|
Commits
6
| https://github.com/github/codeql/pull/3882/commits |
|
Checks
0
| https://github.com/github/codeql/pull/3882/checks |
|
Files changed
| https://github.com/github/codeql/pull/3882/files |
| Please reload this page | https://github.com/github/codeql/pull/3882/files |
|
[Java] CodeQL query to detect Log Injection
| https://github.com/github/codeql/pull/3882/files#top |
|
Show all changes
6 commits
| https://github.com/github/codeql/pull/3882/files |
|
47579fd
Add CodeQL query to detect Log Injection in Java code
dellalibera Jul 2, 2020
| https://github.com/github/codeql/pull/3882/commits/47579fd5ae1c4a90a87d31c8aa591c420b00a185 |
|
aa0dc9b
Change message
dellalibera Jul 2, 2020
| https://github.com/github/codeql/pull/3882/commits/aa0dc9be01db87d16cd4a0c2cecb50cde524f8d0 |
|
bde715b
Update java/ql/src/experimental/Security/CWE/CWE-117/LogInjection.help
dellalibera Jul 3, 2020
| https://github.com/github/codeql/pull/3882/commits/bde715bebfa9e5f311524750915f972d2e5baf33 |
|
e4a5154
Update java/ql/src/experimental/Security/CWE/CWE-117/LogInjection.help
dellalibera Jul 3, 2020
| https://github.com/github/codeql/pull/3882/commits/e4a5154b3db286634c0cb906dd8b6de1188d5706 |
|
5ddb15f
Update .qhelp
dellalibera Jul 3, 2020
| https://github.com/github/codeql/pull/3882/commits/5ddb15fdd1e9debf1c24efa7a71c4cefbab2c65d |
|
e9c8434
Update example
dellalibera Jul 3, 2020
| https://github.com/github/codeql/pull/3882/commits/e9c84349a49fd9c468201585e93b92ac3e75e6c5 |
|
Clear filters
| https://github.com/github/codeql/pull/3882/files |
| Please reload this page | https://github.com/github/codeql/pull/3882/files |
| Please reload this page | https://github.com/github/codeql/pull/3882/files |
|
LogInjection.help
| https://github.com/github/codeql/pull/3882/files#diff-9b574568c841017e555142adb6b9fa6edaed5c42cbd1c81437bbdcce6fe912d4 |
|
LogInjection.ql
| https://github.com/github/codeql/pull/3882/files#diff-50f229bd2e22023b832ccf3f9b1954b9c132e0b1dbdda90bd131ff4d706bfa63 |
|
LogInjection.qll
| https://github.com/github/codeql/pull/3882/files#diff-c508eff5ee673de3535414728abbb815db3424900a661a5f2cebfc7f0cd771a8 |
|
LogInjection.java
| https://github.com/github/codeql/pull/3882/files#diff-ce527be3bc572b121e444c8cab6786a5f6a6ca1d7f384c55bc92fa91c373712a |
|
| https://github.com/github/codeql/blob/main/CODEOWNERS#L16 |
| java/ql/src/experimental/Security/CWE/CWE-117/LogInjection.help | https://github.com/github/codeql/pull/3882/files#diff-9b574568c841017e555142adb6b9fa6edaed5c42cbd1c81437bbdcce6fe912d4 |
|
View file
| https://github.com/dellalibera/codeql/blob/e9c84349a49fd9c468201585e93b92ac3e75e6c5/java/ql/src/experimental/Security/CWE/CWE-117/LogInjection.help |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/github/codeql/pull/3882/{{ revealButtonHref }} |
| smowton | https://github.com/smowton |
| Oct 20, 2020 | https://github.com/github/codeql/pull/3882/files#r508419977 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| https://owasp.org/www-community/attacks/Log_Injection | https://owasp.org/www-community/attacks/Log_Injection |
| Please reload this page | https://github.com/github/codeql/pull/3882/files |
|
| https://github.com/github/codeql/blob/main/CODEOWNERS#L16 |
| java/ql/src/experimental/Security/CWE/CWE-117/LogInjection.ql | https://github.com/github/codeql/pull/3882/files#diff-50f229bd2e22023b832ccf3f9b1954b9c132e0b1dbdda90bd131ff4d706bfa63 |
|
View file
| https://github.com/dellalibera/codeql/blob/e9c84349a49fd9c468201585e93b92ac3e75e6c5/java/ql/src/experimental/Security/CWE/CWE-117/LogInjection.ql |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/github/codeql/pull/3882/{{ revealButtonHref }} |
|
| https://github.com/github/codeql/blob/main/CODEOWNERS#L16 |
| java/ql/src/experimental/Security/CWE/CWE-117/LogInjection.qll | https://github.com/github/codeql/pull/3882/files#diff-c508eff5ee673de3535414728abbb815db3424900a661a5f2cebfc7f0cd771a8 |
|
View file
| https://github.com/dellalibera/codeql/blob/e9c84349a49fd9c468201585e93b92ac3e75e6c5/java/ql/src/experimental/Security/CWE/CWE-117/LogInjection.qll |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/github/codeql/pull/3882/{{ revealButtonHref }} |
| Marcono1234 | https://github.com/Marcono1234 |
| Jul 3, 2020 | https://github.com/github/codeql/pull/3882/files#r449315555 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Log4j1 | https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Category.html#debug(java.lang.Object) |
| Log4j2 | https://logging.apache.org/log4j/2.x/log4j-api/apidocs/org/apache/logging/log4j/Logger.html#debug-java.lang.CharSequence- |
| Log4j1 | https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Category.html#log(org.apache.log4j.Priority,%20java.lang.Object) |
| Log4j2 | https://logging.apache.org/log4j/2.x/log4j-api/apidocs/org/apache/logging/log4j/Logger.html#log-org.apache.logging.log4j.Level-java.lang.CharSequence- |
| Please reload this page | https://github.com/github/codeql/pull/3882/files |
| Marcono1234 | https://github.com/Marcono1234 |
| Jul 3, 2020 | https://github.com/github/codeql/pull/3882/files#r449315959 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| JBoss Logging | https://docs.jboss.org/jbosslogging/latest/org/jboss/logging/BasicLogger.html |
| Please reload this page | https://github.com/github/codeql/pull/3882/files |
| smowton | https://github.com/smowton |
| Oct 20, 2020 | https://github.com/github/codeql/pull/3882/files#r508420522 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/github/codeql/pull/3882/files |
| smowton | https://github.com/smowton |
| Oct 20, 2020 | https://github.com/github/codeql/pull/3882/files#r508426950 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| https://github.com/github/codeql/blob/main/java/ql/src/experimental/Security/CWE/CWE-532/SensitiveInfoLog.ql#L31 | https://github.com/github/codeql/blob/main/java/ql/src/experimental/Security/CWE/CWE-532/SensitiveInfoLog.ql#L31 |
| Please reload this page | https://github.com/github/codeql/pull/3882/files |
| Marcono1234 | https://github.com/Marcono1234 |
| Jul 3, 2020 | https://github.com/github/codeql/pull/3882/files#r449316965 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| org.apache.log4j.Category | https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Category.html |
| org.apache.logging.log4j.LogBuilder | https://logging.apache.org/log4j/2.x/log4j-api/apidocs/org/apache/logging/log4j/LogBuilder.html |
| org.slf4j.spi.LoggingEventBuilder | http://www.slf4j.org/apidocs/org/slf4j/spi/LoggingEventBuilder.html |
| org.apache.commons.logging.Log | https://commons.apache.org/proper/commons-logging/javadocs/api-release/org/apache/commons/logging/Log.html |
| org.jboss.logging.BasicLogger | https://docs.jboss.org/jbosslogging/latest/org/jboss/logging/BasicLogger.html |
| Please reload this page | https://github.com/github/codeql/pull/3882/files |
| smowton | https://github.com/smowton |
| Oct 20, 2020 | https://github.com/github/codeql/pull/3882/files#r508429654 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/github/codeql/pull/3882/files |
| Marcono1234 | https://github.com/Marcono1234 |
| Jul 3, 2020 | https://github.com/github/codeql/pull/3882/files#r449317877 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/github/codeql/pull/3882/files |
|
| https://github.com/github/codeql/blob/main/CODEOWNERS#L16 |
| java/ql/src/experimental/Security/CWE/CWE-117/examples/LogInjection.java | https://github.com/github/codeql/pull/3882/files#diff-ce527be3bc572b121e444c8cab6786a5f6a6ca1d7f384c55bc92fa91c373712a |
|
View file
| https://github.com/dellalibera/codeql/blob/e9c84349a49fd9c468201585e93b92ac3e75e6c5/java/ql/src/experimental/Security/CWE/CWE-117/examples/LogInjection.java |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/github/codeql/pull/3882/{{ revealButtonHref }} |
| Marcono1234 | https://github.com/Marcono1234 |
| Jul 3, 2020 | https://github.com/github/codeql/pull/3882/files#r449318111 |
| Please reload this page | https://github.com/github/codeql/pull/3882/files |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/github/codeql/pull/3882/files |
| Marcono1234 | https://github.com/Marcono1234 |
| Jul 3, 2020 | https://github.com/github/codeql/pull/3882/files#r449710474 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/github/codeql/pull/3882/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 |