Add Actix framework modeling and import to Frameworks.qll#19461
Add Actix framework modeling and import to Frameworks.qll#19461coadaflorin wants to merge 1 commit intomainfrom
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds modeling support for the Actix framework by introducing a new CodeQL library file and ensuring it is imported in the main frameworks file.
- Introduces
Actix.qllwith a class to identify Actix handler parameters - Imports the new Actix model in
Frameworks.qll
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| rust/ql/lib/codeql/rust/frameworks/Actix.qll | Adds Actix handler parameter modeling class |
| rust/ql/lib/codeql/rust/Frameworks.qll | Imports the new Actix framework model |
Comments suppressed due to low confidence (2)
rust/ql/lib/codeql/rust/frameworks/Actix.qll:1
- No QL tests were added to validate the new Actix modeling. Consider adding
.qltest cases to cover theActixHandlerParamlogic.
/**
rust/ql/lib/codeql/rust/frameworks/Actix.qll:12
- The
RemoteSourcemodule is not imported or fully qualified. It should extendDataFlow::RemoteSource::Rangeto reference the correct class from the DataFlow module.
private class ActixHandlerParam extends RemoteSource::Range {
|
I think this is a very narrow model, but it's a decent starting point, and any models of remote taint sources are high value. I'm aware that you have a specific database this change is targeted at, I assume you've tested it works there, but we really should have at least one test case in the repo as well. I've created #19466 to address this shortfall and also track how we're doing on other web frameworks. |
|
#19466 has been merged into Also, CI says that Feel free to DM me if you need any help. |
|
I'll need to put this on hold while I catch-up on some other stuff. I'll reach out probably next week to see how the test works. |
|
This might be addressed by #20543. Do you still have the code for which you implemented this @coadaflorin? |
|
https://github.com/coadaflorin/chop-shop is the app I was trying to build, but did not get a chance to complete the work. |
|
I suggest we close this PR, we now have a test (added a while back) and MaD source models (added in the above PR). |
|
Yes, I agree. |
Pull Request checklist
All query authors
.qhelp. See the documentation in this repository.Internal query authors only
.ql,.qll, or.qhelpfiles. See the documentation (internal access required).