Compare commits

...

1 Commits

Author SHA1 Message Date
Calum Grant
47adf24b25 Add security-severity tags 2021-04-15 17:47:23 +01:00
369 changed files with 369 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
* @description If an exception is allocated on the heap, then it should be deleted when caught. * @description If an exception is allocated on the heap, then it should be deleted when caught.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision high * @precision high
* @id cpp/catch-missing-free * @id cpp/catch-missing-free
* @tags efficiency * @tags efficiency

View File

@@ -5,6 +5,7 @@
* @kind problem * @kind problem
* @id cpp/offset-use-before-range-check * @id cpp/offset-use-before-range-check
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision medium * @precision medium
* @tags reliability * @tags reliability
* security * security

View File

@@ -4,6 +4,7 @@
* @kind problem * @kind problem
* @id cpp/inconsistent-nullness-testing * @id cpp/inconsistent-nullness-testing
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @tags reliability * @tags reliability
* security * security
* external/cwe/cwe-476 * external/cwe/cwe-476

View File

@@ -4,6 +4,7 @@
* @kind problem * @kind problem
* @id cpp/memory-may-not-be-freed * @id cpp/memory-may-not-be-freed
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @tags efficiency * @tags efficiency
* security * security
* external/cwe/cwe-401 * external/cwe/cwe-401

View File

@@ -4,6 +4,7 @@
* @kind problem * @kind problem
* @id cpp/memory-never-freed * @id cpp/memory-never-freed
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @tags efficiency * @tags efficiency
* security * security
* external/cwe/cwe-401 * external/cwe/cwe-401

View File

@@ -4,6 +4,7 @@
* @kind problem * @kind problem
* @id cpp/missing-null-test * @id cpp/missing-null-test
* @problem.severity recommendation * @problem.severity recommendation
* @problem.security-severity high
* @tags reliability * @tags reliability
* security * security
* external/cwe/cwe-476 * external/cwe/cwe-476

View File

@@ -3,6 +3,7 @@
* @description An object that was allocated with 'malloc' or 'new' is being freed using a mismatching 'free' or 'delete'. * @description An object that was allocated with 'malloc' or 'new' is being freed using a mismatching 'free' or 'delete'.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision high * @precision high
* @id cpp/new-free-mismatch * @id cpp/new-free-mismatch
* @tags reliability * @tags reliability

View File

@@ -4,6 +4,7 @@
* @kind problem * @kind problem
* @id cpp/overflow-calculated * @id cpp/overflow-calculated
* @problem.severity warning * @problem.severity warning
* @problem.security-severity critical
* @tags reliability * @tags reliability
* security * security
* external/cwe/cwe-131 * external/cwe/cwe-131

View File

@@ -5,6 +5,7 @@
* @kind problem * @kind problem
* @id cpp/overflow-destination * @id cpp/overflow-destination
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision low * @precision low
* @tags reliability * @tags reliability
* security * security

View File

@@ -4,6 +4,7 @@
* may result in a buffer overflow. * may result in a buffer overflow.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision medium * @precision medium
* @id cpp/static-buffer-overflow * @id cpp/static-buffer-overflow
* @tags reliability * @tags reliability

View File

@@ -4,6 +4,7 @@
* @kind problem * @kind problem
* @id cpp/return-value-ignored * @id cpp/return-value-ignored
* @problem.severity recommendation * @problem.severity recommendation
* @problem.security-severity critical
* @precision medium * @precision medium
* @tags reliability * @tags reliability
* correctness * correctness

View File

@@ -4,6 +4,7 @@
* an instance of the type of the pointer may result in a buffer overflow * an instance of the type of the pointer may result in a buffer overflow
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision medium * @precision medium
* @id cpp/allocation-too-small * @id cpp/allocation-too-small
* @tags reliability * @tags reliability

View File

@@ -4,6 +4,7 @@
* multiple instances of the type of the pointer may result in a buffer overflow * multiple instances of the type of the pointer may result in a buffer overflow
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision medium * @precision medium
* @id cpp/suspicious-allocation-size * @id cpp/suspicious-allocation-size
* @tags reliability * @tags reliability

View File

@@ -4,6 +4,7 @@
* @kind problem * @kind problem
* @id cpp/use-after-free * @id cpp/use-after-free
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @tags reliability * @tags reliability
* security * security
* external/cwe/cwe-416 * external/cwe/cwe-416

View File

@@ -7,6 +7,7 @@
* overflow. * overflow.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision high * @precision high
* @id cpp/ambiguously-signed-bit-field * @id cpp/ambiguously-signed-bit-field
* @tags reliability * @tags reliability

View File

@@ -6,6 +6,7 @@
* to a larger type. * to a larger type.
* @kind problem * @kind problem
* @problem.severity error * @problem.severity error
* @problem.security-severity high
* @precision very-high * @precision very-high
* @id cpp/bad-addition-overflow-check * @id cpp/bad-addition-overflow-check
* @tags reliability * @tags reliability

View File

@@ -4,6 +4,7 @@
* be a sign that the result can overflow the type converted from. * be a sign that the result can overflow the type converted from.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision high * @precision high
* @id cpp/integer-multiplication-cast-to-long * @id cpp/integer-multiplication-cast-to-long
* @tags reliability * @tags reliability

View File

@@ -6,6 +6,7 @@
* use the width of the base type, leading to misaligned reads. * use the width of the base type, leading to misaligned reads.
* @kind path-problem * @kind path-problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision high * @precision high
* @tags correctness * @tags correctness
* reliability * reliability

View File

@@ -6,6 +6,7 @@
* from an untrusted source, this can be used for exploits. * from an untrusted source, this can be used for exploits.
* @kind problem * @kind problem
* @problem.severity recommendation * @problem.severity recommendation
* @problem.security-severity critical
* @precision high * @precision high
* @id cpp/non-constant-format * @id cpp/non-constant-format
* @tags maintainability * @tags maintainability

View File

@@ -3,6 +3,7 @@
* @description A function is called, and the same operation is usually performed on the return value - for example, free, delete, close etc. However, in some cases it is not performed. These unusual cases may indicate misuse of the API and could cause resource leaks. * @description A function is called, and the same operation is usually performed on the return value - for example, free, delete, close etc. However, in some cases it is not performed. These unusual cases may indicate misuse of the API and could cause resource leaks.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity critical
* @precision medium * @precision medium
* @id cpp/inconsistent-call-on-result * @id cpp/inconsistent-call-on-result
* @tags reliability * @tags reliability

View File

@@ -6,6 +6,7 @@
* omitting the check could crash the program. * omitting the check could crash the program.
* @kind problem * @kind problem
* @problem.severity error * @problem.severity error
* @problem.security-severity high
* @precision medium * @precision medium
* @id cpp/inconsistent-null-check * @id cpp/inconsistent-null-check
* @tags reliability * @tags reliability

View File

@@ -3,6 +3,7 @@
* @description A for-loop iteration expression goes backward with respect of the initialization statement and condition expression. * @description A for-loop iteration expression goes backward with respect of the initialization statement and condition expression.
* @kind problem * @kind problem
* @problem.severity error * @problem.severity error
* @problem.security-severity high
* @precision high * @precision high
* @id cpp/inconsistent-loop-direction * @id cpp/inconsistent-loop-direction
* @tags correctness * @tags correctness

View File

@@ -3,6 +3,7 @@
* @description Using alloca in a loop can lead to a stack overflow * @description Using alloca in a loop can lead to a stack overflow
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision high * @precision high
* @id cpp/alloca-in-loop * @id cpp/alloca-in-loop
* @tags reliability * @tags reliability

View File

@@ -5,6 +5,7 @@
* @kind problem * @kind problem
* @id cpp/improper-null-termination * @id cpp/improper-null-termination
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @tags security * @tags security
* external/cwe/cwe-170 * external/cwe/cwe-170
* external/cwe/cwe-665 * external/cwe/cwe-665

View File

@@ -4,6 +4,7 @@
* as the third argument may result in a buffer overflow. * as the third argument may result in a buffer overflow.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision medium * @precision medium
* @id cpp/bad-strncpy-size * @id cpp/bad-strncpy-size
* @tags reliability * @tags reliability

View File

@@ -4,6 +4,7 @@
* as the third argument may result in a buffer overflow. * as the third argument may result in a buffer overflow.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision medium * @precision medium
* @id cpp/unsafe-strncat * @id cpp/unsafe-strncat
* @tags reliability * @tags reliability

View File

@@ -5,6 +5,7 @@
* @kind problem * @kind problem
* @id cpp/uninitialized-local * @id cpp/uninitialized-local
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision medium * @precision medium
* @tags security * @tags security
* external/cwe/cwe-665 * external/cwe/cwe-665

View File

@@ -4,6 +4,7 @@
* may result in a buffer overflow * may result in a buffer overflow
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity critical
* @precision medium * @precision medium
* @id cpp/unsafe-strcat * @id cpp/unsafe-strcat
* @tags reliability * @tags reliability

View File

@@ -5,6 +5,7 @@
* it should be moved before the dereference. * it should be moved before the dereference.
* @kind problem * @kind problem
* @problem.severity error * @problem.severity error
* @problem.security-severity high
* @id cpp/redundant-null-check-simple * @id cpp/redundant-null-check-simple
* @tags reliability * @tags reliability
* correctness * correctness

View File

@@ -6,6 +6,7 @@
* @kind problem * @kind problem
* @id cpp/ignore-return-value-sal * @id cpp/ignore-return-value-sal
* @problem.severity warning * @problem.severity warning
* @problem.security-severity critical
* @tags reliability * @tags reliability
* external/cwe/cwe-573 * external/cwe/cwe-573
* external/cwe/cwe-252 * external/cwe/cwe-252

View File

@@ -5,6 +5,7 @@
* @kind path-problem * @kind path-problem
* @precision low * @precision low
* @problem.severity error * @problem.severity error
* @problem.security-severity high
* @tags security external/cwe/cwe-20 * @tags security external/cwe/cwe-20
*/ */

View File

@@ -5,6 +5,7 @@
* @kind path-problem * @kind path-problem
* @precision low * @precision low
* @problem.severity error * @problem.severity error
* @problem.security-severity high
* @tags security external/cwe/cwe-20 * @tags security external/cwe/cwe-20
*/ */

View File

@@ -4,6 +4,7 @@
* attacker to access unexpected resources. * attacker to access unexpected resources.
* @kind path-problem * @kind path-problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision medium * @precision medium
* @id cpp/path-injection * @id cpp/path-injection
* @tags security * @tags security

View File

@@ -5,6 +5,7 @@
* to command injection. * to command injection.
* @kind problem * @kind problem
* @problem.severity error * @problem.severity error
* @problem.security-severity critical
* @precision low * @precision low
* @id cpp/command-line-injection * @id cpp/command-line-injection
* @tags security * @tags security

View File

@@ -4,6 +4,7 @@
* allows for a cross-site scripting vulnerability. * allows for a cross-site scripting vulnerability.
* @kind path-problem * @kind path-problem
* @problem.severity error * @problem.severity error
* @problem.security-severity medium
* @precision high * @precision high
* @id cpp/cgi-xss * @id cpp/cgi-xss
* @tags security * @tags security

View File

@@ -5,6 +5,7 @@
* to SQL Injection. * to SQL Injection.
* @kind path-problem * @kind path-problem
* @problem.severity error * @problem.severity error
* @problem.security-severity critical
* @precision high * @precision high
* @id cpp/sql-injection * @id cpp/sql-injection
* @tags security * @tags security

View File

@@ -5,6 +5,7 @@
* commands. * commands.
* @kind path-problem * @kind path-problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision medium * @precision medium
* @id cpp/uncontrolled-process-operation * @id cpp/uncontrolled-process-operation
* @tags security * @tags security

View File

@@ -6,6 +6,7 @@
* @kind problem * @kind problem
* @id cpp/overflow-buffer * @id cpp/overflow-buffer
* @problem.severity recommendation * @problem.severity recommendation
* @problem.security-severity high
* @tags security * @tags security
* external/cwe/cwe-119 * external/cwe/cwe-119
* external/cwe/cwe-121 * external/cwe/cwe-121

View File

@@ -5,6 +5,7 @@
* overflow. * overflow.
* @kind problem * @kind problem
* @problem.severity error * @problem.severity error
* @problem.security-severity critical
* @precision high * @precision high
* @id cpp/badly-bounded-write * @id cpp/badly-bounded-write
* @tags reliability * @tags reliability

View File

@@ -4,6 +4,7 @@
* of data written may overflow. * of data written may overflow.
* @kind problem * @kind problem
* @problem.severity error * @problem.severity error
* @problem.security-severity critical
* @precision medium * @precision medium
* @id cpp/overrunning-write * @id cpp/overrunning-write
* @tags reliability * @tags reliability

View File

@@ -5,6 +5,7 @@
* take extreme values. * take extreme values.
* @kind problem * @kind problem
* @problem.severity error * @problem.severity error
* @problem.security-severity critical
* @precision medium * @precision medium
* @id cpp/overrunning-write-with-float * @id cpp/overrunning-write-with-float
* @tags reliability * @tags reliability

View File

@@ -4,6 +4,7 @@
* of data written may overflow. * of data written may overflow.
* @kind path-problem * @kind path-problem
* @problem.severity error * @problem.severity error
* @problem.security-severity critical
* @precision medium * @precision medium
* @id cpp/unbounded-write * @id cpp/unbounded-write
* @tags reliability * @tags reliability

View File

@@ -5,6 +5,7 @@
* a specific value to terminate the argument list. * a specific value to terminate the argument list.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity critical
* @precision medium * @precision medium
* @id cpp/unterminated-variadic-call * @id cpp/unterminated-variadic-call
* @tags reliability * @tags reliability

View File

@@ -6,6 +6,7 @@
* @kind problem * @kind problem
* @id cpp/unclear-array-index-validation * @id cpp/unclear-array-index-validation
* @problem.severity warning * @problem.severity warning
* @problem.security-severity critical
* @tags security * @tags security
* external/cwe/cwe-129 * external/cwe/cwe-129
*/ */

View File

@@ -5,6 +5,7 @@
* terminator can cause a buffer overrun. * terminator can cause a buffer overrun.
* @kind problem * @kind problem
* @problem.severity error * @problem.severity error
* @problem.security-severity critical
* @precision high * @precision high
* @id cpp/no-space-for-terminator * @id cpp/no-space-for-terminator
* @tags reliability * @tags reliability

View File

@@ -5,6 +5,7 @@
* or data representation problems. * or data representation problems.
* @kind path-problem * @kind path-problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity critical
* @precision high * @precision high
* @id cpp/tainted-format-string * @id cpp/tainted-format-string
* @tags reliability * @tags reliability

View File

@@ -5,6 +5,7 @@
* or data representation problems. * or data representation problems.
* @kind path-problem * @kind path-problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity critical
* @precision high * @precision high
* @id cpp/tainted-format-string-through-global * @id cpp/tainted-format-string-through-global
* @tags reliability * @tags reliability

View File

@@ -5,6 +5,7 @@
* @kind problem * @kind problem
* @id cpp/user-controlled-null-termination-tainted * @id cpp/user-controlled-null-termination-tainted
* @problem.severity warning * @problem.severity warning
* @problem.security-severity medium
* @tags security * @tags security
* external/cwe/cwe-170 * external/cwe/cwe-170
*/ */

View File

@@ -4,6 +4,7 @@
* not validated can cause overflows. * not validated can cause overflows.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision low * @precision low
* @id cpp/tainted-arithmetic * @id cpp/tainted-arithmetic
* @tags security * @tags security

View File

@@ -4,6 +4,7 @@
* validated can cause overflows. * validated can cause overflows.
* @kind path-problem * @kind path-problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision medium * @precision medium
* @id cpp/uncontrolled-arithmetic * @id cpp/uncontrolled-arithmetic
* @tags security * @tags security

View File

@@ -6,6 +6,7 @@
* @kind problem * @kind problem
* @id cpp/arithmetic-with-extreme-values * @id cpp/arithmetic-with-extreme-values
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision low * @precision low
* @tags security * @tags security
* reliability * reliability

View File

@@ -5,6 +5,7 @@
* @id cpp/comparison-with-wider-type * @id cpp/comparison-with-wider-type
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision high * @precision high
* @tags reliability * @tags reliability
* security * security

View File

@@ -5,6 +5,7 @@
* @kind problem * @kind problem
* @id cpp/integer-overflow-tainted * @id cpp/integer-overflow-tainted
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision low * @precision low
* @tags security * @tags security
* external/cwe/cwe-190 * external/cwe/cwe-190

View File

@@ -4,6 +4,7 @@
* user can result in integer overflow. * user can result in integer overflow.
* @kind path-problem * @kind path-problem
* @problem.severity error * @problem.severity error
* @problem.security-severity high
* @precision medium * @precision medium
* @id cpp/uncontrolled-allocation-size * @id cpp/uncontrolled-allocation-size
* @tags reliability * @tags reliability

View File

@@ -4,6 +4,7 @@
* @kind problem * @kind problem
* @id cpp/unsigned-difference-expression-compared-zero * @id cpp/unsigned-difference-expression-compared-zero
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision medium * @precision medium
* @tags security * @tags security
* correctness * correctness

View File

@@ -5,6 +5,7 @@
* vulnerable to spoofing attacks. * vulnerable to spoofing attacks.
* @kind path-problem * @kind path-problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision medium * @precision medium
* @id cpp/user-controlled-bypass * @id cpp/user-controlled-bypass
* @tags security * @tags security

View File

@@ -4,6 +4,7 @@
* to an attacker. * to an attacker.
* @kind path-problem * @kind path-problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision medium * @precision medium
* @id cpp/cleartext-storage-buffer * @id cpp/cleartext-storage-buffer
* @tags security * @tags security

View File

@@ -4,6 +4,7 @@
* an attacker to compromise security. * an attacker to compromise security.
* @kind problem * @kind problem
* @problem.severity error * @problem.severity error
* @problem.security-severity high
* @precision medium * @precision medium
* @id cpp/weak-cryptographic-algorithm * @id cpp/weak-cryptographic-algorithm
* @tags security * @tags security

View File

@@ -4,6 +4,7 @@
* attackers to retrieve portions of memory. * attackers to retrieve portions of memory.
* @kind problem * @kind problem
* @problem.severity error * @problem.severity error
* @problem.security-severity high
* @precision very-high * @precision very-high
* @id cpp/openssl-heartbleed * @id cpp/openssl-heartbleed
* @tags security * @tags security

View File

@@ -5,6 +5,7 @@
* the two operations. * the two operations.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision medium * @precision medium
* @id cpp/toctou-race-condition * @id cpp/toctou-race-condition
* @tags security * @tags security

View File

@@ -4,6 +4,7 @@
* @id cpp/unsafe-create-process-call * @id cpp/unsafe-create-process-call
* @kind problem * @kind problem
* @problem.severity error * @problem.severity error
* @problem.security-severity high
* @precision medium * @precision medium
* @msrc.severity important * @msrc.severity important
* @tags security * @tags security

View File

@@ -6,6 +6,7 @@
* @kind problem * @kind problem
* @id cpp/incorrect-string-type-conversion * @id cpp/incorrect-string-type-conversion
* @problem.severity error * @problem.severity error
* @problem.security-severity critical
* @precision high * @precision high
* @tags security * @tags security
* external/cwe/cwe-704 * external/cwe/cwe-704

View File

@@ -3,6 +3,7 @@
* @description Creating a file that is world-writable can allow an attacker to write to the file. * @description Creating a file that is world-writable can allow an attacker to write to the file.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision medium * @precision medium
* @id cpp/world-writable-file-creation * @id cpp/world-writable-file-creation
* @tags security * @tags security

View File

@@ -7,6 +7,7 @@
* @id cpp/unsafe-dacl-security-descriptor * @id cpp/unsafe-dacl-security-descriptor
* @kind problem * @kind problem
* @problem.severity error * @problem.severity error
* @problem.security-severity high
* @precision high * @precision high
* @tags security * @tags security
* external/cwe/cwe-732 * external/cwe/cwe-732

View File

@@ -6,6 +6,7 @@
* @kind problem * @kind problem
* @id cpp/infinite-loop-with-unsatisfiable-exit-condition * @id cpp/infinite-loop-with-unsatisfiable-exit-condition
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @tags security * @tags security
* external/cwe/cwe-835 * external/cwe/cwe-835
*/ */

View File

@@ -6,6 +6,7 @@
* @kind problem * @kind problem
* @id cpp/redundant-null-check-param * @id cpp/redundant-null-check-param
* @problem.severity recommendation * @problem.severity recommendation
* @problem.security-severity high
* @tags reliability * @tags reliability
* security * security
* external/cwe/cwe-476 * external/cwe/cwe-476

View File

@@ -6,6 +6,7 @@
* @kind problem * @kind problem
* @id cpp/late-check-of-function-argument * @id cpp/late-check-of-function-argument
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision medium * @precision medium
* @tags correctness * @tags correctness
* security * security

View File

@@ -3,6 +3,7 @@
* @description Use of one of the scanf functions without a specified length. * @description Use of one of the scanf functions without a specified length.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity critical
* @id cpp/memory-unsafe-function-scan * @id cpp/memory-unsafe-function-scan
* @tags reliability * @tags reliability
* security * security

View File

@@ -3,6 +3,7 @@
* @description Using a multiplication result that may overflow in the size of an allocation may lead to buffer overflows when the allocated memory is used. * @description Using a multiplication result that may overflow in the size of an allocation may lead to buffer overflows when the allocated memory is used.
* @kind path-problem * @kind path-problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision low * @precision low
* @tags security * @tags security
* correctness * correctness

View File

@@ -6,6 +6,7 @@
* from these methods is not checked. * from these methods is not checked.
* @kind problem * @kind problem
* @problem.severity recommendation * @problem.severity recommendation
* @problem.security-severity critical
* @id cpp/drop-linux-privileges-outoforder * @id cpp/drop-linux-privileges-outoforder
* @tags security * @tags security
* external/cwe/cwe-273 * external/cwe/cwe-273

View File

@@ -5,6 +5,7 @@
* @kind problem * @kind problem
* @id cpp/memory-leak-on-failed-call-to-realloc * @id cpp/memory-leak-on-failed-call-to-realloc
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision medium * @precision medium
* @tags correctness * @tags correctness
* security * security

View File

@@ -3,6 +3,7 @@
* @description All resources acquired by a class should be released by its destructor. Avoid the use of the 'open / close' pattern, since C++ constructors and destructors provide a safer way to handle resource acquisition and release. Best practice in C++ is to use the 'RAII' technique: constructors allocate resources and destructors free them. * @description All resources acquired by a class should be released by its destructor. Avoid the use of the 'open / close' pattern, since C++ constructors and destructors provide a safer way to handle resource acquisition and release. Best practice in C++ is to use the 'RAII' technique: constructors allocate resources and destructors free them.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision high * @precision high
* @id cpp/resource-not-released-in-destructor * @id cpp/resource-not-released-in-destructor
* @tags efficiency * @tags efficiency

View File

@@ -4,6 +4,7 @@
* may result in unexpected sign extension or overflow. * may result in unexpected sign extension or overflow.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision low * @precision low
* @id cpp/signed-bit-field * @id cpp/signed-bit-field
* @tags correctness * @tags correctness

View File

@@ -5,6 +5,7 @@
* not be released. * not be released.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision medium * @precision medium
* @id cs/dispose-not-called-on-throw * @id cs/dispose-not-called-on-throw
* @tags efficiency * @tags efficiency

View File

@@ -4,6 +4,7 @@
* should dispose those members in their 'Dispose()' method. * should dispose those members in their 'Dispose()' method.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision low * @precision low
* @id cs/member-not-disposed * @id cs/member-not-disposed
* @tags efficiency * @tags efficiency

View File

@@ -4,6 +4,7 @@
* should also declare/override 'Dispose()'. * should also declare/override 'Dispose()'.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision low * @precision low
* @id cs/missing-dispose-method * @id cs/missing-dispose-method
* @tags efficiency * @tags efficiency

View File

@@ -4,6 +4,7 @@
* objects, otherwise unmanaged resources may not be released. * objects, otherwise unmanaged resources may not be released.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision high * @precision high
* @id cs/local-not-disposed * @id cs/local-not-disposed
* @tags efficiency * @tags efficiency

View File

@@ -4,6 +4,7 @@
* of that method, the calls that do not check the return value may be mistakes. * of that method, the calls that do not check the return value may be mistakes.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity critical
* @precision low * @precision low
* @id cs/unchecked-return-value * @id cs/unchecked-return-value
* @tags reliability * @tags reliability

View File

@@ -5,6 +5,7 @@
* is likely to cause an infinite loop. * is likely to cause an infinite loop.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision very-high * @precision very-high
* @id cs/constant-condition * @id cs/constant-condition
* @tags maintainability * @tags maintainability

View File

@@ -3,6 +3,7 @@
* @description Dereferencing a variable whose value is 'null' causes a 'NullReferenceException'. * @description Dereferencing a variable whose value is 'null' causes a 'NullReferenceException'.
* @kind problem * @kind problem
* @problem.severity error * @problem.severity error
* @problem.security-severity high
* @precision very-high * @precision very-high
* @id cs/dereferenced-value-is-always-null * @id cs/dereferenced-value-is-always-null
* @tags reliability * @tags reliability

View File

@@ -4,6 +4,7 @@
* 'NullReferenceException'. * 'NullReferenceException'.
* @kind path-problem * @kind path-problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision high * @precision high
* @id cs/dereferenced-value-may-be-null * @id cs/dereferenced-value-may-be-null
* @tags reliability * @tags reliability

View File

@@ -4,6 +4,7 @@
* to provide the desired thread safety. * to provide the desired thread safety.
* @kind problem * @kind problem
* @problem.severity error * @problem.severity error
* @problem.security-severity high
* @precision high * @precision high
* @id cs/unsafe-sync-on-field * @id cs/unsafe-sync-on-field
* @tags reliability * @tags reliability

View File

@@ -3,6 +3,7 @@
* @description Locking in an inconsistent sequence can lead to deadlock. * @description Locking in an inconsistent sequence can lead to deadlock.
* @kind problem * @kind problem
* @problem.severity error * @problem.severity error
* @problem.security-severity high
* @precision high * @precision high
* @id cs/inconsistent-lock-sequence * @id cs/inconsistent-lock-sequence
* @tags reliability * @tags reliability

View File

@@ -4,6 +4,7 @@
* it might be locked elsewhere. * it might be locked elsewhere.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision high * @precision high
* @id cs/lock-this * @id cs/lock-this
* @tags reliability * @tags reliability

View File

@@ -3,6 +3,7 @@
* @description A lock is held during a call to System.Threading.Monitor.Wait(). This can lead to deadlocks and performance problems. * @description A lock is held during a call to System.Threading.Monitor.Wait(). This can lead to deadlocks and performance problems.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision high * @precision high
* @id cs/locked-wait * @id cs/locked-wait
* @tags reliability * @tags reliability

View File

@@ -4,6 +4,7 @@
* then the value returned by the getter can be inconsistent. * then the value returned by the getter can be inconsistent.
* @kind problem * @kind problem
* @problem.severity error * @problem.severity error
* @problem.security-severity high
* @precision medium * @precision medium
* @id cs/unsynchronized-getter * @id cs/unsynchronized-getter
* @tags correctness * @tags correctness

View File

@@ -4,6 +4,7 @@
* during an addition or resizing operation, an infinite loop can occur. * during an addition or resizing operation, an infinite loop can occur.
* @kind problem * @kind problem
* @problem.severity error * @problem.severity error
* @problem.security-severity high
* @precision medium * @precision medium
* @id cs/unsynchronized-static-access * @id cs/unsynchronized-static-access
* @tags concurrency * @tags concurrency

View File

@@ -3,6 +3,7 @@
* @description Finds empty passwords in configuration files. * @description Finds empty passwords in configuration files.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision medium * @precision medium
* @id cs/empty-password-in-configuration * @id cs/empty-password-in-configuration
* @tags security * @tags security

View File

@@ -3,6 +3,7 @@
* @description Finds passwords in configuration files. * @description Finds passwords in configuration files.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity medium
* @precision medium * @precision medium
* @id cs/password-in-configuration * @id cs/password-in-configuration
* @tags security * @tags security

View File

@@ -3,6 +3,7 @@
* @description Finds uses of file upload * @description Finds uses of file upload
* @kind problem * @kind problem
* @problem.severity recommendation * @problem.severity recommendation
* @problem.security-severity high
* @precision high * @precision high
* @id cs/web/file-upload * @id cs/web/file-upload
* @tags security * @tags security

View File

@@ -4,6 +4,7 @@
* in an array indexing operation that could be out of bounds. * in an array indexing operation that could be out of bounds.
* @kind problem * @kind problem
* @problem.severity error * @problem.severity error
* @problem.security-severity critical
* @precision high * @precision high
* @id cs/index-out-of-bounds * @id cs/index-out-of-bounds
* @tags reliability * @tags reliability

View File

@@ -4,6 +4,7 @@
* floating-point value may result in a loss of precision. * floating-point value may result in a loss of precision.
* @kind problem * @kind problem
* @problem.severity error * @problem.severity error
* @problem.security-severity high
* @precision high * @precision high
* @id cs/loss-of-precision * @id cs/loss-of-precision
* @tags reliability * @tags reliability

View File

@@ -4,6 +4,7 @@
* guarantee an evenly distributed sequence of random numbers. * guarantee an evenly distributed sequence of random numbers.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity critical
* @precision low * @precision low
* @id cs/random-used-once * @id cs/random-used-once
* @tags reliability * @tags reliability

View File

@@ -5,6 +5,7 @@
* but under some circumstances may also result in incorrect results. * but under some circumstances may also result in incorrect results.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision medium * @precision medium
* @id cs/thread-unsafe-icryptotransform-field-in-class * @id cs/thread-unsafe-icryptotransform-field-in-class
* @tags concurrency * @tags concurrency

View File

@@ -6,6 +6,7 @@
* but under some circumstances may also result in incorrect results. * but under some circumstances may also result in incorrect results.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision medium * @precision medium
* @id cs/thread-unsafe-icryptotransform-captured-in-lambda * @id cs/thread-unsafe-icryptotransform-captured-in-lambda
* @tags concurrency * @tags concurrency

View File

@@ -3,6 +3,7 @@
* @description Not every enumerable sequence is repeatable, so it is dangerous to write code that can consume elements of a sequence in more than one place. * @description Not every enumerable sequence is repeatable, so it is dangerous to write code that can consume elements of a sequence in more than one place.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision medium * @precision medium
* @id cs/linq/inconsistent-enumeration * @id cs/linq/inconsistent-enumeration
* @tags reliability * @tags reliability

View File

@@ -4,6 +4,7 @@
* denial-of-service attacks. * denial-of-service attacks.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @id cs/web/large-max-request-length * @id cs/web/large-max-request-length
* @tags security * @tags security
* frameworks/asp.net * frameworks/asp.net

View File

@@ -3,6 +3,7 @@
* @description ASP.NET pages should not disable the built-in request validation. * @description ASP.NET pages should not disable the built-in request validation.
* @kind problem * @kind problem
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @id cs/web/request-validation-disabled * @id cs/web/request-validation-disabled
* @tags security * @tags security
* frameworks/asp.net * frameworks/asp.net

View File

@@ -6,6 +6,7 @@
* @kind problem * @kind problem
* @id cs/insecure-request-validation-mode * @id cs/insecure-request-validation-mode
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @tags security * @tags security
* external/cwe/cwe-016 * external/cwe/cwe-016
*/ */

View File

@@ -4,6 +4,7 @@
* @kind problem * @kind problem
* @id cs/serialization-check-bypass * @id cs/serialization-check-bypass
* @problem.severity warning * @problem.severity warning
* @problem.security-severity high
* @precision medium * @precision medium
* @tags security * @tags security
* external/cwe/cwe-20 * external/cwe/cwe-20

Some files were not shown because too many files have changed in this diff Show More