Java: Add severity and precision metadata to experimental queries.

This commit is contained in:
Anders Schack-Mulligen
2021-03-25 10:29:47 +01:00
parent 801eb538db
commit 28ff3f412d
11 changed files with 48 additions and 9 deletions

View File

@@ -1,8 +1,13 @@
/**
* @name openStream called on URLs created from remote source
* @description Calling openStream on URLs created from remote source
* can lead to local file disclosure.
* can lead to local file disclosure.
* @kind path-problem
* @problem.severity warning
* @precision medium
* @id java/openstream-called-on-tainted-url
* @tags security
* external/cwe/cwe-036
*/
import java

View File

@@ -1,7 +1,12 @@
/**
* @name Unsafe certificate trust
* @description Unsafe implementation of the interface X509TrustManager and SSLSocket/SSLEngine ignores all SSL certificate validation errors when establishing an HTTPS connection, thereby making the app vulnerable to man-in-the-middle attacks.
* @description Unsafe implementation of the interface X509TrustManager and
* SSLSocket/SSLEngine ignores all SSL certificate validation
* errors when establishing an HTTPS connection, thereby making
* the app vulnerable to man-in-the-middle attacks.
* @kind problem
* @problem.severity warning
* @precision medium
* @id java/unsafe-cert-trust
* @tags security
* external/cwe-273

View File

@@ -1,7 +1,11 @@
/**
* @name JxBrowser with disabled certificate validation
* @description Insecure configuration of JxBrowser disables certificate validation making the app vulnerable to man-in-the-middle attacks.
* @description Insecure configuration of JxBrowser disables certificate
* validation making the app vulnerable to man-in-the-middle
* attacks.
* @kind problem
* @problem.severity warning
* @precision medium
* @id java/jxbrowser/disabled-certificate-validation
* @tags security
* external/cwe/cwe-295

View File

@@ -1,8 +1,12 @@
/**
* @id java/insecure-smtp-ssl
* @name Insecure JavaMail SSL Configuration
* @description Java application configured to use authenticated mail session over SSL does not validate the SSL certificate to properly ensure that it is actually associated with that host.
* @description Java application configured to use authenticated mail session
* over SSL does not validate the SSL certificate to properly
* ensure that it is actually associated with that host.
* @kind problem
* @problem.severity warning
* @precision medium
* @id java/insecure-smtp-ssl
* @tags security
* external/cwe-297
*/

View File

@@ -1,7 +1,11 @@
/**
* @name Cleartext storage of sensitive information using `SharedPreferences` on Android
* @description Cleartext Storage of Sensitive Information using SharedPreferences on Android allows access for users with root privileges or unexpected exposure from chained vulnerabilities.
* @description Cleartext Storage of Sensitive Information using
* SharedPreferences on Android allows access for users with root
* privileges or unexpected exposure from chained vulnerabilities.
* @kind problem
* @problem.severity warning
* @precision medium
* @id java/android/cleartext-storage-shared-prefs
* @tags security
* external/cwe/cwe-312

View File

@@ -2,6 +2,8 @@
* @name Weak encryption: Insufficient key size
* @description Finds uses of encryption algorithms with too small a key size
* @kind problem
* @problem.severity warning
* @precision medium
* @id java/insufficient-key-size
* @tags security
* external/cwe/cwe-326

View File

@@ -2,6 +2,8 @@
* @name Main Method in Enterprise Java Bean
* @description Java EE applications with a main method.
* @kind problem
* @problem.severity warning
* @precision medium
* @id java/main-method-in-enterprise-bean
* @tags security
* external/cwe-489

View File

@@ -2,6 +2,8 @@
* @name Main Method in Java EE Web Components
* @description Java EE web applications with a main method.
* @kind problem
* @problem.severity warning
* @precision medium
* @id java/main-method-in-web-components
* @tags security
* external/cwe-489

View File

@@ -1,7 +1,12 @@
/**
* @name Directories and files exposure
* @description A directory listing provides an attacker with the complete index of all the resources located inside of the complete web directory, which could yield files containing sensitive information like source code and credentials to the attacker.
* @description A directory listing provides an attacker with the complete
* index of all the resources located inside of the complete web
* directory, which could yield files containing sensitive
* information like source code and credentials to the attacker.
* @kind problem
* @problem.severity warning
* @precision medium
* @id java/server-directory-listing
* @tags security
* external/cwe-548

View File

@@ -2,6 +2,8 @@
* @name Password in configuration file
* @description Finds passwords in configuration files.
* @kind problem
* @problem.severity warning
* @precision medium
* @id java/password-in-configuration
* @tags security
* external/cwe/cwe-555

View File

@@ -1,8 +1,12 @@
/**
* @id java/incorrect-url-verification
* @name Incorrect URL verification
* @description Apps that rely on URL parsing to verify that a given URL is pointing to a trusted server are susceptible to wrong ways of URL parsing and verification.
* @description Apps that rely on URL parsing to verify that a given URL is
* pointing to a trusted server are susceptible to wrong ways of
* URL parsing and verification.
* @kind problem
* @problem.severity warning
* @precision medium
* @id java/incorrect-url-verification
* @tags security
* external/cwe-939
*/