Add CWE-918 model regression coverage for Apache Http Fluent Request sinks#21804
Draft
Add CWE-918 model regression coverage for Apache Http Fluent Request sinks#21804
Request sinks#21804Conversation
Agent-Logs-Url: https://github.com/github/codeql/sessions/bd4fa112-dbc3-47e8-9cef-9b1b13c7e549 Co-authored-by: owen-mc <62447351+owen-mc@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add tests for the models following SSRF examples
Add CWE-918 model regression coverage for Apache Http Fluent May 6, 2026
Request sinks
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.
Adds targeted SSRF model tests for
org.apache.http.client.fluent.Request, including the required test stubs and classpath wiring in the CWE-918 test configuration.What this addresses
request-forgerysinks.// $ Sourceand// $ Alertexpectations).Test coverage added
java/ql/test/query-tests/security/CWE-918/ApacheHttpFluentSSRF.javaRequest:Delete,Get,Head,Options,Patch,Post,Put,Trace(String)and(URI)overloadsStub + test configuration updates
java/ql/test/stubs/apache-http-fluent-4.5.14/org/apache/http/client/fluent/Request.javajava/ql/test/query-tests/security/CWE-918/optionsto include the new stub directory on the test classpath.Example from new test
Original prompt
Created from VS Code.