mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
JS: Deprecate more uses of ConsistencyConfiguration
This commit is contained in:
@@ -19,7 +19,7 @@ module TestConfig implements DataFlow::ConfigSig {
|
||||
|
||||
module TestFlow = TaintTracking::Global<TestConfig>;
|
||||
|
||||
class Consistency extends ConsistencyConfiguration {
|
||||
deprecated class Consistency extends ConsistencyConfiguration {
|
||||
Consistency() { this = "Consistency" }
|
||||
|
||||
override DataFlow::Node getAnAlert() { TestFlow::flowTo(result) }
|
||||
|
||||
@@ -12,7 +12,7 @@ module TestConfig implements DataFlow::ConfigSig {
|
||||
|
||||
module TestFlow = TaintTracking::Global<TestConfig>;
|
||||
|
||||
class Consistency extends ConsistencyConfiguration {
|
||||
deprecated class Consistency extends ConsistencyConfiguration {
|
||||
Consistency() { this = "Consistency" }
|
||||
|
||||
override DataFlow::Node getAnAlert() { TestFlow::flowTo(result) }
|
||||
|
||||
@@ -53,7 +53,7 @@ class BasicSanitizerGuard extends TaintTracking::SanitizerGuardNode, DataFlow::C
|
||||
|
||||
query predicate flow = TestFlow::flow/2;
|
||||
|
||||
class Consistency extends ConsistencyConfiguration {
|
||||
deprecated class Consistency extends ConsistencyConfiguration {
|
||||
Consistency() { this = "Consistency" }
|
||||
|
||||
override DataFlow::Node getAnAlert() { TestFlow::flowTo(result) }
|
||||
|
||||
@@ -11,7 +11,7 @@ module TestConfig implements DataFlow::ConfigSig {
|
||||
|
||||
module TestFlow = TaintTracking::Global<TestConfig>;
|
||||
|
||||
class Consistency extends ConsistencyConfiguration {
|
||||
deprecated class Consistency extends ConsistencyConfiguration {
|
||||
Consistency() { this = "Consistency" }
|
||||
|
||||
override DataFlow::Node getAnAlert() { TestFlow::flowTo(result) }
|
||||
|
||||
@@ -27,7 +27,7 @@ module TestConfig implements DataFlow::ConfigSig {
|
||||
|
||||
module TestFlow = TaintTracking::Global<TestConfig>;
|
||||
|
||||
class Consistency extends ConsistencyConfiguration {
|
||||
deprecated class Consistency extends ConsistencyConfiguration {
|
||||
Consistency() { this = "Consistency" }
|
||||
|
||||
override DataFlow::Node getAnAlert() { TestFlow::flowTo(result) }
|
||||
|
||||
@@ -2,7 +2,7 @@ import javascript
|
||||
import semmle.javascript.security.dataflow.TaintedPathQuery
|
||||
deprecated import testUtilities.ConsistencyChecking
|
||||
|
||||
class TaintedPathConsistency extends ConsistencyConfiguration {
|
||||
deprecated class TaintedPathConsistency extends ConsistencyConfiguration {
|
||||
TaintedPathConsistency() { this = "TaintedPathConsistency" }
|
||||
|
||||
override DataFlow::Node getAnAlert() { TaintedPathFlow::flowTo(result) }
|
||||
|
||||
@@ -6,7 +6,7 @@ import semmle.javascript.security.dataflow.ShellCommandInjectionFromEnvironmentQ
|
||||
import semmle.javascript.security.dataflow.UnsafeShellCommandConstructionQuery as UnsafeShellCommandConstruction
|
||||
import semmle.javascript.security.dataflow.SecondOrderCommandInjectionQuery as SecondOrderCommandInjectionQuery
|
||||
|
||||
class CommandInjectionConsistency extends ConsistencyConfiguration {
|
||||
deprecated class CommandInjectionConsistency extends ConsistencyConfiguration {
|
||||
CommandInjectionConsistency() { this = "ComandInjection" }
|
||||
|
||||
override File getAFile() { not result.getBaseName() = "uselesscat.js" }
|
||||
@@ -14,7 +14,7 @@ class CommandInjectionConsistency extends ConsistencyConfiguration {
|
||||
|
||||
import semmle.javascript.security.UselessUseOfCat
|
||||
|
||||
class UselessCatConsistency extends ConsistencyConfiguration {
|
||||
deprecated class UselessCatConsistency extends ConsistencyConfiguration {
|
||||
UselessCatConsistency() { this = "Cat" }
|
||||
|
||||
override DataFlow::Node getAnAlert() { result instanceof UselessCat }
|
||||
|
||||
@@ -2,7 +2,7 @@ import javascript
|
||||
deprecated import testUtilities.ConsistencyChecking
|
||||
import semmle.javascript.security.dataflow.DomBasedXssQuery
|
||||
|
||||
class ConsistencyConfig extends ConsistencyConfiguration {
|
||||
deprecated class ConsistencyConfig extends ConsistencyConfiguration {
|
||||
ConsistencyConfig() { this = "ConsistencyConfig" }
|
||||
|
||||
override DataFlow::Node getAnAlert() { DomBasedXssFlow::flow(_, result) }
|
||||
|
||||
@@ -2,7 +2,7 @@ import javascript
|
||||
deprecated import testUtilities.ConsistencyChecking
|
||||
import semmle.javascript.security.dataflow.XssThroughDomQuery
|
||||
|
||||
class ConsistencyConfig extends ConsistencyConfiguration {
|
||||
deprecated class ConsistencyConfig extends ConsistencyConfiguration {
|
||||
ConsistencyConfig() { this = "ConsistencyConfig" }
|
||||
|
||||
override DataFlow::Node getAnAlert() {
|
||||
|
||||
@@ -2,7 +2,7 @@ import javascript
|
||||
deprecated import testUtilities.ConsistencyChecking
|
||||
import semmle.javascript.security.dataflow.PrototypePollutingAssignmentQuery
|
||||
|
||||
class Config extends ConsistencyConfiguration {
|
||||
deprecated class Config extends ConsistencyConfiguration {
|
||||
Config() { this = "Config" }
|
||||
|
||||
override File getAFile() { any() }
|
||||
|
||||
@@ -15,7 +15,7 @@ query predicate resultInWrongFile(DataFlow::Node node) {
|
||||
)
|
||||
}
|
||||
|
||||
class Consistency extends ConsistencyConfiguration {
|
||||
deprecated class Consistency extends ConsistencyConfiguration {
|
||||
Consistency() { this = "Consistency" }
|
||||
|
||||
override DataFlow::Node getAnAlert() {
|
||||
|
||||
Reference in New Issue
Block a user