mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
fix most ql-for-ql warnings in JS
This commit is contained in:
@@ -13,7 +13,7 @@ import DataFlow
|
||||
import DataFlow::PathGraph
|
||||
|
||||
/**
|
||||
* Tracks user-controlled values into a 'userId' property sent to a backend service.
|
||||
* A taint-tracking configuration that tracks user-controlled values into a 'userId' property sent to a backend service.
|
||||
*/
|
||||
class IdorTaint extends TaintTracking::Configuration {
|
||||
IdorTaint() { this = "IdorTaint" }
|
||||
@@ -34,7 +34,7 @@ class IdorTaint extends TaintTracking::Configuration {
|
||||
}
|
||||
|
||||
/**
|
||||
* Sanitize values that have succesfully been compared to another value.
|
||||
* A sanitizer for values that have succesfully been compared to another value.
|
||||
*/
|
||||
class EqualityGuard extends TaintTracking::SanitizerGuardNode, ValueNode {
|
||||
override EqualityTest astNode;
|
||||
|
||||
@@ -13,7 +13,8 @@ import DataFlow
|
||||
import DataFlow::PathGraph
|
||||
|
||||
/**
|
||||
* Tracks authentication tokens ("authKey") to a postMessage call with unrestricted target origin.
|
||||
* A dataflow configuration that tracks authentication tokens ("authKey")
|
||||
* to a postMessage call with unrestricted target origin.
|
||||
*
|
||||
* For example:
|
||||
* ```
|
||||
|
||||
@@ -12,7 +12,7 @@ import semmle.javascript.security.dataflow.StoredXssQuery
|
||||
import DataFlow::PathGraph
|
||||
|
||||
/**
|
||||
* Data returned from a MySQL query, such as the `data` parameter in this example:
|
||||
* The data returned from a MySQL query, such as the `data` parameter in this example:
|
||||
* ```
|
||||
* let mysql = require('mysql');
|
||||
* let connection = mysql.createConnection();
|
||||
|
||||
@@ -28,7 +28,7 @@ DataFlow::SourceNode mysqlConnection(DataFlow::TypeTracker t) {
|
||||
DataFlow::SourceNode mysqlConnection() { result = mysqlConnection(DataFlow::TypeTracker::end()) }
|
||||
|
||||
/**
|
||||
* Data returned from a MySQL query.
|
||||
* The data returned from a MySQL query.
|
||||
*
|
||||
* For example:
|
||||
* ```
|
||||
|
||||
Reference in New Issue
Block a user