[NEW MODEL] Java Apache Camel MaD models for Exchange, Message, and ProducerTemplate#23
Open
[NEW MODEL] Java Apache Camel MaD models for Exchange, Message, and ProducerTemplate#23
Conversation
1 task
…models Agent-Logs-Url: https://github.com/testing-felickz/codeql-development-template/sessions/e037ce6e-4ab7-4e0a-9a29-dfe6ba18abe3 Co-authored-by: felickz <1760475+felickz@users.noreply.github.com>
…iew feedback Agent-Logs-Url: https://github.com/testing-felickz/codeql-development-template/sessions/e037ce6e-4ab7-4e0a-9a29-dfe6ba18abe3 Co-authored-by: felickz <1760475+felickz@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add data extension for Java Apache Camel models
[NEW QUERY] Java Apache Camel MaD models for Exchange, Message, and ProducerTemplate
Mar 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Query Information
🎯 Description
What This Query Detects
CodeQL has zero models for Apache Camel's
camel-api(org.apache.camel), leaving all data flow throughExchange,Message, andProducerTemplateinvisible to analysis. This data extension adds Models-as-Data coverage for the core Camel data-carrying interfaces.sourceModel (9 entries) — marks remote data entry points:
Exchange.getMessage(),getIn(),getProperty()overloadsMessage.getBody(),getHeader(),getHeaders()overloadssinkModel (10 entries) — marks endpoint URI arguments as request-forgery sinks:
ProducerTemplate.sendBody*,send,requestBody*variantsFluentProducerTemplate.to()summaryModel (34 entries) — taint propagation through:
ExchangeBuilderandFluentProducerTemplatebuilder-pattern chaining (dualtaint/valueentries per stdlib convention)ProducerTemplate.requestBody*request→response propagationExample Vulnerable Code
Example Safe Code
🧪 Testing
YAML validated structurally (tuple lengths, boolean format, string fields).
codeql resolve extensionsconfirms all 53 rows load correctly alongside the stdlib models.📋 Checklist
.mdand.qhelp)🔗 References
org.apache.http.model.ymlandjavax.servlet.model.ymlconventionsNote: This query was developed using Test-Driven Development methodology.
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.