mirror of
https://github.com/github/codeql.git
synced 2026-05-05 21:55:19 +02:00
Ruby: Remove ActiveStorage entry points
This commit is contained in:
@@ -2,14 +2,9 @@ import ruby
|
||||
import codeql.ruby.ApiGraphs
|
||||
import codeql.ruby.DataFlow
|
||||
import codeql.ruby.Concepts
|
||||
import codeql.ruby.frameworks.ActiveStorage
|
||||
|
||||
query predicate attachmentInstances(DataFlow::Node n) {
|
||||
n =
|
||||
API::getTopLevelMember("ActiveStorage")
|
||||
.getMember("Attachment")
|
||||
.getInstance()
|
||||
.getAValueReachableFromSource()
|
||||
}
|
||||
query predicate attachmentInstances(ActiveStorage::AttachmentInstance n) { any() }
|
||||
|
||||
query predicate httpRequests(HTTP::Client::Request r, string framework, DataFlow::Node responseBody) {
|
||||
r.getFramework() = framework and r.getResponseBody() = responseBody
|
||||
|
||||
Reference in New Issue
Block a user