Skip to content

Commit e054948

Browse files
authored
Merge pull request #19429 from owen-mc/fix-cwe-tags-missing-leading-zero
Fix cwe tags to include leading zero
2 parents 817237c + 0863c87 commit e054948

File tree

45 files changed

+104
-39
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+104
-39
lines changed

cpp/ql/src/Security/CWE/CWE-014/MemsetMayBeDeleted.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @security-severity 7.8
99
* @precision high
1010
* @tags security
11-
* external/cwe/cwe-14
11+
* external/cwe/cwe-014
1212
*/
1313

1414
import cpp

cpp/ql/src/Security/CWE/CWE-020/CountUntrustedDataToExternalAPI.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* to it.
66
* @id cpp/count-untrusted-data-external-api
77
* @kind table
8-
* @tags security external/cwe/cwe-20
8+
* @tags security external/cwe/cwe-020
99
*/
1010

1111
import cpp

cpp/ql/src/Security/CWE/CWE-020/IRCountUntrustedDataToExternalAPI.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* to it.
66
* @id cpp/count-untrusted-data-external-api-ir
77
* @kind table
8-
* @tags security external/cwe/cwe-20
8+
* @tags security external/cwe/cwe-020
99
*/
1010

1111
import cpp

cpp/ql/src/Security/CWE/CWE-020/IRUntrustedDataToExternalAPI.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @precision low
77
* @problem.severity error
88
* @security-severity 7.8
9-
* @tags security external/cwe/cwe-20
9+
* @tags security external/cwe/cwe-020
1010
*/
1111

1212
import cpp

cpp/ql/src/Security/CWE/CWE-020/UntrustedDataToExternalAPI.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @precision low
77
* @problem.severity error
88
* @security-severity 7.8
9-
* @tags security external/cwe/cwe-20
9+
* @tags security external/cwe/cwe-020
1010
*/
1111

1212
import cpp

cpp/ql/src/experimental/Security/CWE/CWE-020/LateCheckOfFunctionArgument.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @tags correctness
1111
* security
1212
* experimental
13-
* external/cwe/cwe-20
13+
* external/cwe/cwe-020
1414
*/
1515

1616
import cpp

csharp/ql/src/Configuration/PasswordInConfigurationFile.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @precision medium
88
* @id cs/password-in-configuration
99
* @tags security
10-
* external/cwe/cwe-13
10+
* external/cwe/cwe-013
1111
* external/cwe/cwe-256
1212
* external/cwe/cwe-313
1313
*/

csharp/ql/src/Security Features/CWE-011/ASPNetDebug.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @tags security
1111
* maintainability
1212
* frameworks/asp.net
13-
* external/cwe/cwe-11
13+
* external/cwe/cwe-011
1414
* external/cwe/cwe-532
1515
*/
1616

csharp/ql/src/Security Features/CWE-016/ASPNetMaxRequestLength.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @id cs/web/large-max-request-length
99
* @tags security
1010
* frameworks/asp.net
11-
* external/cwe/cwe-16
11+
* external/cwe/cwe-016
1212
*/
1313

1414
import csharp

csharp/ql/src/Security Features/CWE-016/ASPNetPagesValidateRequest.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @id cs/web/request-validation-disabled
99
* @tags security
1010
* frameworks/asp.net
11-
* external/cwe/cwe-16
11+
* external/cwe/cwe-016
1212
*/
1313

1414
import csharp

csharp/ql/src/Security Features/CWE-020/ExternalAPIsUsedWithUntrustedData.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* to it.
66
* @id cs/count-untrusted-data-external-api
77
* @kind table
8-
* @tags security external/cwe/cwe-20
8+
* @tags security external/cwe/cwe-020
99
*/
1010

1111
import csharp

csharp/ql/src/Security Features/CWE-020/RuntimeChecksBypass.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @security-severity 7.8
88
* @precision medium
99
* @tags security
10-
* external/cwe/cwe-20
10+
* external/cwe/cwe-020
1111
*/
1212

1313
import semmle.code.csharp.serialization.Serialization

csharp/ql/src/Security Features/CWE-020/UntrustedDataToExternalAPI.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @precision low
77
* @problem.severity error
88
* @security-severity 7.8
9-
* @tags security external/cwe/cwe-20
9+
* @tags security external/cwe/cwe-020
1010
*/
1111

1212
import csharp

csharp/ql/src/Security Features/CWE-248/MissingASPNETGlobalErrorHandler.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @precision high
99
* @id cs/web/missing-global-error-handler
1010
* @tags security
11-
* external/cwe/cwe-12
11+
* external/cwe/cwe-012
1212
* external/cwe/cwe-248
1313
*/
1414

go/ql/src/Security/CWE-020/ExternalAPIsUsedWithUntrustedData.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* to it.
66
* @id go/count-untrusted-data-external-api
77
* @kind table
8-
* @tags security external/cwe/cwe-20
8+
* @tags security external/cwe/cwe-020
99
*/
1010

1111
import go

go/ql/src/Security/CWE-020/IncompleteHostnameRegexp.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @id go/incomplete-hostname-regexp
1010
* @tags correctness
1111
* security
12-
* external/cwe/cwe-20
12+
* external/cwe/cwe-020
1313
*/
1414

1515
import go

go/ql/src/Security/CWE-020/MissingRegexpAnchor.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @id go/regex/missing-regexp-anchor
99
* @tags correctness
1010
* security
11-
* external/cwe/cwe-20
11+
* external/cwe/cwe-020
1212
*/
1313

1414
import go

go/ql/src/Security/CWE-020/SuspiciousCharacterInRegexp.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @id go/suspicious-character-in-regex
99
* @tags correctness
1010
* security
11-
* external/cwe/cwe-20
11+
* external/cwe/cwe-020
1212
*/
1313

1414
import go

go/ql/src/Security/CWE-020/UntrustedDataToExternalAPI.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @precision low
77
* @problem.severity error
88
* @security-severity 7.8
9-
* @tags security external/cwe/cwe-20
9+
* @tags security external/cwe/cwe-020
1010
*/
1111

1212
import go

go/ql/src/Security/CWE-020/UntrustedDataToUnknownExternalAPI.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @precision low
77
* @problem.severity error
88
* @security-severity 7.8
9-
* @tags security external/cwe/cwe-20
9+
* @tags security external/cwe/cwe-020
1010
*/
1111

1212
import go

go/ql/src/experimental/CWE-090/LDAPInjection.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @id go/ldap-injection
88
* @tags security
99
* experimental
10-
* external/cwe/cwe-90
10+
* external/cwe/cwe-090
1111
*/
1212

1313
import go

go/ql/src/experimental/CWE-74/DsnInjection.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @id go/dsn-injection
77
* @tags security
88
* experimental
9-
* external/cwe/cwe-74
9+
* external/cwe/cwe-074
1010
*/
1111

1212
import go

go/ql/src/experimental/CWE-74/DsnInjectionLocal.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @id go/dsn-injection-local
77
* @tags security
88
* experimental
9-
* external/cwe/cwe-74
9+
* external/cwe/cwe-074
1010
*/
1111

1212
import go

go/ql/src/experimental/CWE-79/HTMLTemplateEscapingPassthrough.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @id go/html-template-escaping-passthrough
88
* @tags security
99
* experimental
10-
* external/cwe/cwe-79
10+
* external/cwe/cwe-079
1111
*/
1212

1313
import go

java/ql/src/Security/CWE/CWE-020/ExternalAPIsUsedWithUntrustedData.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* to it.
66
* @id java/count-untrusted-data-external-api
77
* @kind table
8-
* @tags security external/cwe/cwe-20
8+
* @tags security external/cwe/cwe-020
99
*/
1010

1111
import java

java/ql/src/Security/CWE/CWE-020/UntrustedDataToExternalAPI.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @precision low
77
* @problem.severity error
88
* @security-severity 7.8
9-
* @tags security external/cwe/cwe-20
9+
* @tags security external/cwe/cwe-020
1010
*/
1111

1212
import java

java/ql/src/Security/CWE/CWE-113/NettyResponseSplitting.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @precision high
1010
* @id java/netty-http-request-or-response-splitting
1111
* @tags security
12-
* external/cwe/cwe-93
12+
* external/cwe/cwe-093
1313
* external/cwe/cwe-113
1414
*/
1515

javascript/ql/src/Electron/DisablingWebSecurity.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @precision very-high
88
* @tags security
99
* frameworks/electron
10-
* external/cwe/cwe-79
10+
* external/cwe/cwe-079
1111
* @id js/disabling-electron-websecurity
1212
*/
1313

javascript/ql/src/Security/CWE-020/ExternalAPIsUsedWithUntrustedData.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* to it.
66
* @id js/count-untrusted-data-external-api
77
* @kind table
8-
* @tags security external/cwe/cwe-20
8+
* @tags security external/cwe/cwe-020
99
*/
1010

1111
import javascript

javascript/ql/src/Security/CWE-020/UntrustedDataToExternalAPI.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @precision low
77
* @problem.severity error
88
* @security-severity 7.8
9-
* @tags security external/cwe/cwe-20
9+
* @tags security external/cwe/cwe-020
1010
*/
1111

1212
import javascript

javascript/ql/src/experimental/heuristics/ql/src/Security/CWE-020/UntrustedDataToExternalAPI.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @problem.severity error
88
* @security-severity 7.8
99
* @tags experimental
10-
* security external/cwe/cwe-20
10+
* security external/cwe/cwe-020
1111
*/
1212

1313
import javascript

python/ql/src/Expressions/UseofInput.ql

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* @kind problem
55
* @tags security
66
* correctness
7-
* security/cwe/cwe-94
8-
* security/cwe/cwe-95
7+
* external/cwe/cwe-094
8+
* external/cwe/cwe-095
99
* @problem.severity error
1010
* @security-severity 9.8
1111
* @sub-severity high

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* to it.
66
* @id py/count-untrusted-data-external-api
77
* @kind table
8-
* @tags security external/cwe/cwe-20
8+
* @tags security external/cwe/cwe-020
99
*/
1010

1111
import python

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @precision low
77
* @problem.severity error
88
* @security-severity 7.8
9-
* @tags security external/cwe/cwe-20
9+
* @tags security external/cwe/cwe-020
1010
*/
1111

1212
import python

python/ql/src/Security/CWE-020/CookieInjection.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @security-severity 5.0
88
* @id py/cookie-injection
99
* @tags security
10-
* external/cwe/cwe-20
10+
* external/cwe/cwe-020
1111
*/
1212

1313
import python

python/ql/src/Security/CWE-020/IncompleteUrlSubstringSanitization.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @id py/incomplete-url-substring-sanitization
99
* @tags correctness
1010
* security
11-
* external/cwe/cwe-20
11+
* external/cwe/cwe-020
1212
*/
1313

1414
import python

0 commit comments

Comments
 (0)