mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
Ruby: Update for Http concept changes
This commit is contained in:
@@ -80,7 +80,7 @@ module ActiveStorage {
|
||||
/**
|
||||
* Method calls on `ActiveStorage::Blob` that send HTTP requests.
|
||||
*/
|
||||
private class BlobRequestCall extends HTTP::Client::Request::Range {
|
||||
private class BlobRequestCall extends Http::Client::Request::Range {
|
||||
BlobRequestCall() {
|
||||
this =
|
||||
[
|
||||
@@ -100,16 +100,20 @@ module ActiveStorage {
|
||||
|
|
||||
c
|
||||
)
|
||||
].asExpr().getExpr()
|
||||
]
|
||||
}
|
||||
|
||||
override string getFramework() { result = "activestorage" }
|
||||
|
||||
override DataFlow::Node getResponseBody() { result.asExpr().getExpr() = this }
|
||||
override DataFlow::Node getResponseBody() { result = this }
|
||||
|
||||
override DataFlow::Node getAUrlPart() { none() }
|
||||
|
||||
override predicate disablesCertificateValidation(DataFlow::Node disablingNode) { none() }
|
||||
override predicate disablesCertificateValidation(
|
||||
DataFlow::Node disablingNode, DataFlow::Node argumentOrigin
|
||||
) {
|
||||
none()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -6,7 +6,7 @@ import codeql.ruby.frameworks.ActiveStorage
|
||||
|
||||
query predicate attachmentInstances(ActiveStorage::AttachmentInstance n) { any() }
|
||||
|
||||
query predicate httpRequests(HTTP::Client::Request r, string framework, DataFlow::Node responseBody) {
|
||||
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