Find, fix and prevent vulnerabilities in your code.
high severity
- Vulnerable module: org.apache.commons:commons-lang3
- Introduced through: org.apache.commons:commons-lang3@3.6
Detailed paths
-
Introduced through: lucapino/confluence-rest-client@lucapino/confluence-rest-client#f11ce66de94d878a5716b823bd14e558988e3780 › org.apache.commons:commons-lang3@3.6Remediation: Upgrade to org.apache.commons:commons-lang3@3.18.0.
Overview
Affected versions of this package are vulnerable to Uncontrolled Recursion via the ClassUtils.getClass
function. An attacker can cause the application to terminate unexpectedly by providing excessively long input values.
Remediation
Upgrade org.apache.commons:commons-lang3
to version 3.18.0 or higher.
References
high severity
- Vulnerable module: commons-beanutils:commons-beanutils
- Introduced through: commons-validator:commons-validator@1.6
Detailed paths
-
Introduced through: lucapino/confluence-rest-client@lucapino/confluence-rest-client#f11ce66de94d878a5716b823bd14e558988e3780 › commons-validator:commons-validator@1.6 › commons-beanutils:commons-beanutils@1.9.2Remediation: Upgrade to commons-validator:commons-validator@1.10.0.
Overview
commons-beanutils:commons-beanutils is a provides an easy-to-use but flexible wrapper around reflection and introspection.
Affected versions of this package are vulnerable to Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') via the getProperty
and getNestedProperty
methods of the PropertyUtilsBean
class. An attacker can execute arbitrary code by accessing the declaredClass
property of Java enum objects, which allows access to the ClassLoader.
Note:
The BeanIntrospector
class that can mitigate this vulnerability was added in version 1.9.2 but its usage was not enabled by default.
Remediation
Upgrade commons-beanutils:commons-beanutils
to version 1.11.0 or higher.
References
high severity
- Vulnerable module: ch.qos.logback:logback-classic
- Introduced through: ch.qos.logback:logback-classic@1.2.3
Detailed paths
-
Introduced through: lucapino/confluence-rest-client@lucapino/confluence-rest-client#f11ce66de94d878a5716b823bd14e558988e3780 › ch.qos.logback:logback-classic@1.2.3Remediation: Upgrade to ch.qos.logback:logback-classic@1.2.13.
Overview
ch.qos.logback:logback-classic is a reliable, generic, fast and flexible logging library for Java.
Affected versions of this package are vulnerable to Denial of Service (DoS). An attacker can mount a denial-of-service attack by sending poisoned data. This is only exploitable if logback receiver component is deployed.
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.
Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.
One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.
When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.
Two common types of DoS vulnerabilities:
High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.
Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm
ws
package
Remediation
Upgrade ch.qos.logback:logback-classic
to version 1.2.13, 1.3.12, 1.4.12 or higher.
References
high severity
- Vulnerable module: ch.qos.logback:logback-classic
- Introduced through: ch.qos.logback:logback-classic@1.2.3
Detailed paths
-
Introduced through: lucapino/confluence-rest-client@lucapino/confluence-rest-client#f11ce66de94d878a5716b823bd14e558988e3780 › ch.qos.logback:logback-classic@1.2.3Remediation: Upgrade to ch.qos.logback:logback-classic@1.2.13.
Overview
ch.qos.logback:logback-classic is a reliable, generic, fast and flexible logging library for Java.
Affected versions of this package are vulnerable to Uncontrolled Resource Consumption ('Resource Exhaustion') via the logback receiver
component. An attacker can mount a denial-of-service attack by sending poisoned data.
Note:
Successful exploitation requires the logback-receiver component being enabled and also reachable by the attacker.
Remediation
Upgrade ch.qos.logback:logback-classic
to version 1.2.13, 1.3.14, 1.4.14 or higher.
References
high severity
- Vulnerable module: ch.qos.logback:logback-core
- Introduced through: ch.qos.logback:logback-classic@1.2.3
Detailed paths
-
Introduced through: lucapino/confluence-rest-client@lucapino/confluence-rest-client#f11ce66de94d878a5716b823bd14e558988e3780 › ch.qos.logback:logback-classic@1.2.3 › ch.qos.logback:logback-core@1.2.3Remediation: Upgrade to ch.qos.logback:logback-classic@1.2.13.
Overview
ch.qos.logback:logback-core is a logback-core module.
Affected versions of this package are vulnerable to Denial of Service (DoS). An attacker can mount a denial-of-service attack by sending poisoned data. This is only exploitable if logback receiver component is deployed.
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.
Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.
One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.
When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.
Two common types of DoS vulnerabilities:
High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.
Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm
ws
package
Remediation
Upgrade ch.qos.logback:logback-core
to version 1.2.13, 1.3.12, 1.4.12 or higher.
References
high severity
- Vulnerable module: ch.qos.logback:logback-core
- Introduced through: ch.qos.logback:logback-classic@1.2.3
Detailed paths
-
Introduced through: lucapino/confluence-rest-client@lucapino/confluence-rest-client#f11ce66de94d878a5716b823bd14e558988e3780 › ch.qos.logback:logback-classic@1.2.3 › ch.qos.logback:logback-core@1.2.3Remediation: Upgrade to ch.qos.logback:logback-classic@1.2.13.
Overview
ch.qos.logback:logback-core is a logback-core module.
Affected versions of this package are vulnerable to Uncontrolled Resource Consumption ('Resource Exhaustion') via the logback receiver
component. An attacker can mount a denial-of-service attack by sending poisoned data.
Note:
Successful exploitation requires the logback-receiver component being enabled and also reachable by the attacker.
Remediation
Upgrade ch.qos.logback:logback-core
to version 1.2.13, 1.3.14, 1.4.14 or higher.
References
high severity
- Vulnerable module: commons-beanutils:commons-beanutils
- Introduced through: commons-validator:commons-validator@1.6
Detailed paths
-
Introduced through: lucapino/confluence-rest-client@lucapino/confluence-rest-client#f11ce66de94d878a5716b823bd14e558988e3780 › commons-validator:commons-validator@1.6 › commons-beanutils:commons-beanutils@1.9.2Remediation: Upgrade to commons-validator:commons-validator@1.7.
Overview
commons-beanutils:commons-beanutils is a provides an easy-to-use but flexible wrapper around reflection and introspection.
Affected versions of this package are vulnerable to Deserialization of Untrusted Data.
In Apache Commons Beanutils 1.9.2, a special BeanIntrospector
class was added which allows suppressing the ability for an attacker to access the classloader
via the class
property available on all Java objects. This was not enabled by default and was therefore an incomplete fix for CVE-2014-0114.
Details
Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like Remote Method Invocation (RMI), Java Management Extension (JMX), Java Messaging System (JMS), Action Message Format (AMF), Java Server Faces (JSF) ViewState, etc.
Deserialization of untrusted data (CWE-502), is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, letting the attacker to control the state or the flow of the execution.
Java deserialization issues have been known for years. However, interest in the issue intensified greatly in 2015, when classes that could be abused to achieve remote code execution were found in a popular library (Apache Commons Collection). These classes were used in zero-days affecting IBM WebSphere, Oracle WebLogic and many other products.
An attacker just needs to identify a piece of software that has both a vulnerable class on its path, and performs deserialization on untrusted data. Then all they need to do is send the payload into the deserializer, getting the command executed.
Developers put too much trust in Java Object Serialization. Some even de-serialize objects pre-authentication. When deserializing an Object in Java you typically cast it to an expected type, and therefore Java's strict type system will ensure you only get valid object trees. Unfortunately, by the time the type checking happens, platform code has already created and executed significant logic. So, before the final type is checked a lot of code is executed from the readObject() methods of various objects, all of which is out of the developer's control. By combining the readObject() methods of various classes which are available on the classpath of the vulnerable application an attacker can execute functions (including calling Runtime.exec() to execute local OS commands).
- Apache Blog
The vulnerability, also know as Mad Gadget
Mad Gadget is one of the most pernicious vulnerabilities we’ve seen. By merely existing on the Java classpath, seven “gadget” classes in Apache Commons Collections (versions 3.0, 3.1, 3.2, 3.2.1, and 4.0) make object deserialization for the entire JVM process Turing complete with an exec function. Since many business applications use object deserialization to send messages across the network, it would be like hiring a bank teller who was trained to hand over all the money in the vault if asked to do so politely, and then entrusting that teller with the key. The only thing that would keep a bank safe in such a circumstance is that most people wouldn’t consider asking such a question.
Remediation
Upgrade commons-beanutils:commons-beanutils
to version 1.9.4 or higher.
References
medium severity
- Vulnerable module: commons-io:commons-io
- Introduced through: commons-io:commons-io@2.6
Detailed paths
-
Introduced through: lucapino/confluence-rest-client@lucapino/confluence-rest-client#f11ce66de94d878a5716b823bd14e558988e3780 › commons-io:commons-io@2.6Remediation: Upgrade to commons-io:commons-io@2.14.0.
Overview
commons-io:commons-io is a The Apache Commons IO library contains utility classes, stream implementations, file filters, file comparators, endian transformation classes, and much more.
Affected versions of this package are vulnerable to Uncontrolled Resource Consumption through the XmlStreamReader
class. An attacker can cause the application to consume excessive CPU resources by sending specially crafted XML content.
Remediation
Upgrade commons-io:commons-io
to version 2.14.0 or higher.
References
medium severity
- Vulnerable module: com.google.code.gson:gson
- Introduced through: com.google.code.gson:gson@2.8.2
Detailed paths
-
Introduced through: lucapino/confluence-rest-client@lucapino/confluence-rest-client#f11ce66de94d878a5716b823bd14e558988e3780 › com.google.code.gson:gson@2.8.2Remediation: Upgrade to com.google.code.gson:gson@2.8.9.
Overview
Affected versions of this package are vulnerable to Deserialization of Untrusted Data via the writeReplace()
method in internal classes, which may allow a denial of service attack if combined with another exploit.
Details
Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like Remote Method Invocation (RMI), Java Management Extension (JMX), Java Messaging System (JMS), Action Message Format (AMF), Java Server Faces (JSF) ViewState, etc.
Deserialization of untrusted data (CWE-502), is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, letting the attacker to control the state or the flow of the execution.
Java deserialization issues have been known for years. However, interest in the issue intensified greatly in 2015, when classes that could be abused to achieve remote code execution were found in a popular library (Apache Commons Collection). These classes were used in zero-days affecting IBM WebSphere, Oracle WebLogic and many other products.
An attacker just needs to identify a piece of software that has both a vulnerable class on its path, and performs deserialization on untrusted data. Then all they need to do is send the payload into the deserializer, getting the command executed.
Developers put too much trust in Java Object Serialization. Some even de-serialize objects pre-authentication. When deserializing an Object in Java you typically cast it to an expected type, and therefore Java's strict type system will ensure you only get valid object trees. Unfortunately, by the time the type checking happens, platform code has already created and executed significant logic. So, before the final type is checked a lot of code is executed from the readObject() methods of various objects, all of which is out of the developer's control. By combining the readObject() methods of various classes which are available on the classpath of the vulnerable application, an attacker can execute functions (including calling Runtime.exec() to execute local OS commands).
Remediation
Upgrade com.google.code.gson:gson
to version 2.8.9 or higher.
References
medium severity
- Vulnerable module: ch.qos.logback:logback-classic
- Introduced through: ch.qos.logback:logback-classic@1.2.3
Detailed paths
-
Introduced through: lucapino/confluence-rest-client@lucapino/confluence-rest-client#f11ce66de94d878a5716b823bd14e558988e3780 › ch.qos.logback:logback-classic@1.2.3Remediation: Upgrade to ch.qos.logback:logback-classic@1.3.15.
Overview
ch.qos.logback:logback-classic is a reliable, generic, fast and flexible logging library for Java.
Affected versions of this package are vulnerable to Improper Neutralization of Special Elements via the JaninoEventEvaluator
extension. An attacker can execute arbitrary code by compromising an existing logback configuration file or injecting an environment variable before program execution.
Remediation
Upgrade ch.qos.logback:logback-classic
to version 1.3.15, 1.5.13 or higher.
References
medium severity
- Vulnerable module: ch.qos.logback:logback-core
- Introduced through: ch.qos.logback:logback-classic@1.2.3
Detailed paths
-
Introduced through: lucapino/confluence-rest-client@lucapino/confluence-rest-client#f11ce66de94d878a5716b823bd14e558988e3780 › ch.qos.logback:logback-classic@1.2.3 › ch.qos.logback:logback-core@1.2.3Remediation: Upgrade to ch.qos.logback:logback-classic@1.3.15.
Overview
ch.qos.logback:logback-core is a logback-core module.
Affected versions of this package are vulnerable to Improper Neutralization of Special Elements via the JaninoEventEvaluator
extension. An attacker can execute arbitrary code by compromising an existing logback configuration file or injecting an environment variable before program execution.
Remediation
Upgrade ch.qos.logback:logback-core
to version 1.3.15, 1.5.13 or higher.
References
medium severity
- Vulnerable module: commons-io:commons-io
- Introduced through: commons-io:commons-io@2.6
Detailed paths
-
Introduced through: lucapino/confluence-rest-client@lucapino/confluence-rest-client#f11ce66de94d878a5716b823bd14e558988e3780 › commons-io:commons-io@2.6Remediation: Upgrade to commons-io:commons-io@2.7.
Overview
commons-io:commons-io is a The Apache Commons IO library contains utility classes, stream implementations, file filters, file comparators, endian transformation classes, and much more.
Affected versions of this package are vulnerable to Directory Traversal via calling the method FileNameUtils.normalize using an improper string like //../foo
or \\..\foo
, which may allow access to files in the parent directory.
Details
A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.
Directory Traversal vulnerabilities can be generally divided into two types:
- Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.
st
is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public
route.
If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.
curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa
Note %2e
is the URL encoded version of .
(dot).
- Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as
Zip-Slip
.
One way to achieve this is by using a malicious zip
archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.
The following is an example of a zip
archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/
overwriting the authorized_keys
file:
2018-04-15 22:04:29 ..... 19 19 good.txt
2018-04-15 22:04:42 ..... 20 20 ../../../../../../root/.ssh/authorized_keys
Remediation
Upgrade commons-io:commons-io
to version 2.7 or higher.
References
medium severity
- Vulnerable module: org.apache.httpcomponents:httpclient
- Introduced through: org.apache.httpcomponents:httpclient@4.5.3 and org.apache.httpcomponents:httpmime@4.5.3
Detailed paths
-
Introduced through: lucapino/confluence-rest-client@lucapino/confluence-rest-client#f11ce66de94d878a5716b823bd14e558988e3780 › org.apache.httpcomponents:httpclient@4.5.3Remediation: Upgrade to org.apache.httpcomponents:httpclient@4.5.13.
-
Introduced through: lucapino/confluence-rest-client@lucapino/confluence-rest-client#f11ce66de94d878a5716b823bd14e558988e3780 › org.apache.httpcomponents:httpmime@4.5.3 › org.apache.httpcomponents:httpclient@4.5.3Remediation: Upgrade to org.apache.httpcomponents:httpmime@4.5.13.
Overview
org.apache.httpcomponents:httpclient is a HttpClient component of the Apache HttpComponents project.
Affected versions of this package are vulnerable to Improper Input Validation. Apache HttpClient can misinterpret malformed authority component in request URIs passed to the library as java.net.URI
object and pick the wrong target host for request execution.
Remediation
Upgrade org.apache.httpcomponents:httpclient
to version 4.5.13 or higher.
References
medium severity
- Vulnerable module: ch.qos.logback:logback-core
- Introduced through: ch.qos.logback:logback-classic@1.2.3
Detailed paths
-
Introduced through: lucapino/confluence-rest-client@lucapino/confluence-rest-client#f11ce66de94d878a5716b823bd14e558988e3780 › ch.qos.logback:logback-classic@1.2.3 › ch.qos.logback:logback-core@1.2.3Remediation: Upgrade to ch.qos.logback:logback-classic@1.2.7.
Overview
ch.qos.logback:logback-core is a logback-core module.
Affected versions of this package are vulnerable to Insufficient Hostname Verification. X.509
are not properly validated. By spoofing the TLS/SSL server via a certificate that appears valid, an attacker with the ability to intercept network traffic (e.g. MitM, DNS cache poisoning) can disclose and optionally manipulate transmitted data.
Remediation
Upgrade ch.qos.logback:logback-core
to version 1.2.7 or higher.
References
medium severity
- Module: ch.qos.logback:logback-classic
- Introduced through: ch.qos.logback:logback-classic@1.2.3
Detailed paths
-
Introduced through: lucapino/confluence-rest-client@lucapino/confluence-rest-client#f11ce66de94d878a5716b823bd14e558988e3780 › ch.qos.logback:logback-classic@1.2.3
Dual license: EPL-1.0, LGPL-2.1
medium severity
- Module: ch.qos.logback:logback-core
- Introduced through: ch.qos.logback:logback-classic@1.2.3
Detailed paths
-
Introduced through: lucapino/confluence-rest-client@lucapino/confluence-rest-client#f11ce66de94d878a5716b823bd14e558988e3780 › ch.qos.logback:logback-classic@1.2.3 › ch.qos.logback:logback-core@1.2.3
Dual license: EPL-1.0, LGPL-2.1
low severity
- Vulnerable module: commons-codec:commons-codec
- Introduced through: org.apache.httpcomponents:httpclient@4.5.3 and org.apache.httpcomponents:httpmime@4.5.3
Detailed paths
-
Introduced through: lucapino/confluence-rest-client@lucapino/confluence-rest-client#f11ce66de94d878a5716b823bd14e558988e3780 › org.apache.httpcomponents:httpclient@4.5.3 › commons-codec:commons-codec@1.9
-
Introduced through: lucapino/confluence-rest-client@lucapino/confluence-rest-client#f11ce66de94d878a5716b823bd14e558988e3780 › org.apache.httpcomponents:httpmime@4.5.3 › org.apache.httpcomponents:httpclient@4.5.3 › commons-codec:commons-codec@1.9
Overview
commons-codec:commons-codec is a package that contains simple encoder and decoders for various formats such as Base64 and Hexadecimal.
Affected versions of this package are vulnerable to Information Exposure. When there is no byte array value that can be encoded into a string the Base32 implementation does not reject it, and instead decodes it into an arbitrary value which can be re-encoded again using the same implementation. This allows for information exposure exploits such as tunneling additional information via seemingly valid base 32 strings.
Remediation
Upgrade commons-codec:commons-codec
to version 1.14 or higher.
References
low severity
- Vulnerable module: ch.qos.logback:logback-core
- Introduced through: ch.qos.logback:logback-classic@1.2.3
Detailed paths
-
Introduced through: lucapino/confluence-rest-client@lucapino/confluence-rest-client#f11ce66de94d878a5716b823bd14e558988e3780 › ch.qos.logback:logback-classic@1.2.3 › ch.qos.logback:logback-core@1.2.3Remediation: Upgrade to ch.qos.logback:logback-classic@1.3.15.
Overview
ch.qos.logback:logback-core is a logback-core module.
Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) through the SaxEventRecorder
process. An attacker can forge requests by compromising logback configuration files in XML.
Remediation
Upgrade ch.qos.logback:logback-core
to version 1.3.15, 1.5.13 or higher.