Skip to content

Commit 77099fe

Browse files
committed
Python: Always use @id py/
The two queries in CWE-020 are used for manual evaluation (is my understanding), and the two IDE queries should work based on their tags, and not on the query-id.
1 parent 4da1dce commit 77099fe

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

python/ql/src/Security/CWE-020-ExternalAPIs/ExternalAPIsUsedWithUntrustedData.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @description This reports the external APIs that are used with untrusted data, along with how
44
* frequently the API is called, and how many unique sources of untrusted data flow
55
* to it.
6-
* @id python/count-untrusted-data-external-api
6+
* @id py/count-untrusted-data-external-api
77
* @kind table
88
* @tags security external/cwe/cwe-20
99
*/

python/ql/src/Security/CWE-020-ExternalAPIs/UntrustedDataToExternalAPI.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @name Untrusted data passed to external API
33
* @description Data provided remotely is used in this external API without sanitization, which could be a security risk.
4-
* @id python/untrusted-data-to-external-api
4+
* @id py/untrusted-data-to-external-api
55
* @kind path-problem
66
* @precision low
77
* @problem.severity error

python/ql/src/analysis/LocalDefinitions.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @description Generates use-definition pairs that provide the data
44
* for jump-to-definition in the code viewer.
55
* @kind definitions
6-
* @id python/ide-jump-to-definition
6+
* @id py/ide-jump-to-definition
77
* @tags ide-contextual-queries/local-definitions
88
*/
99

python/ql/src/analysis/LocalReferences.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @description Generates use-definition pairs that provide the data
44
* for find-references in the code viewer.
55
* @kind definitions
6-
* @id python/ide-find-references
6+
* @id py/ide-find-references
77
* @tags ide-contextual-queries/local-references
88
*/
99

0 commit comments

Comments
 (0)