Find, fix and prevent vulnerabilities in your code.
high severity
- Vulnerable module: org.apache.commons:commons-lang3
- Introduced through: org.apache.maven.doxia:doxia-core@1.12.0
Detailed paths
-
Introduced through: checkstyle/checkstyle@checkstyle/checkstyle#26e782867e17ba6fafa442f4c53b2682325513b6 › org.apache.maven.doxia:doxia-core@1.12.0 › org.apache.commons:commons-lang3@3.8.1Remediation: Upgrade to org.apache.maven.doxia:doxia-core@2.1.0.
-
Introduced through: checkstyle/checkstyle@checkstyle/checkstyle#26e782867e17ba6fafa442f4c53b2682325513b6 › org.apache.maven.doxia:doxia-core@1.12.0 › org.apache.commons:commons-text@1.3 › org.apache.commons:commons-lang3@3.8.1Remediation: Upgrade to org.apache.maven.doxia:doxia-core@2.1.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
medium severity
new
- Vulnerable module: org.codehaus.plexus:plexus-utils
- Introduced through: org.apache.maven.doxia:doxia-core@1.12.0, org.apache.maven.doxia:doxia-module-xdoc@1.12.0 and others
Detailed paths
-
Introduced through: checkstyle/checkstyle@checkstyle/checkstyle#26e782867e17ba6fafa442f4c53b2682325513b6 › org.apache.maven.doxia:doxia-core@1.12.0 › org.codehaus.plexus:plexus-utils@3.3.0Remediation: Upgrade to org.apache.maven.doxia:doxia-core@2.1.0.
-
Introduced through: checkstyle/checkstyle@checkstyle/checkstyle#26e782867e17ba6fafa442f4c53b2682325513b6 › org.apache.maven.doxia:doxia-module-xdoc@1.12.0 › org.codehaus.plexus:plexus-utils@3.3.0Remediation: Upgrade to org.apache.maven.doxia:doxia-module-xdoc@2.0.0.
-
Introduced through: checkstyle/checkstyle@checkstyle/checkstyle#26e782867e17ba6fafa442f4c53b2682325513b6 › org.apache.maven.doxia:doxia-core@1.12.0 › org.codehaus.plexus:plexus-container-default@2.1.0 › org.codehaus.plexus:plexus-utils@3.3.0
-
Introduced through: checkstyle/checkstyle@checkstyle/checkstyle#26e782867e17ba6fafa442f4c53b2682325513b6 › org.apache.maven.doxia:doxia-sink-api@1.12.0 › org.apache.maven.doxia:doxia-logging-api@1.12.0 › org.codehaus.plexus:plexus-container-default@2.1.0 › org.codehaus.plexus:plexus-utils@3.3.0
-
Introduced through: checkstyle/checkstyle@checkstyle/checkstyle#26e782867e17ba6fafa442f4c53b2682325513b6 › org.apache.maven.doxia:doxia-core@1.12.0 › org.apache.maven.doxia:doxia-logging-api@1.12.0 › org.codehaus.plexus:plexus-container-default@2.1.0 › org.codehaus.plexus:plexus-utils@3.3.0
-
Introduced through: checkstyle/checkstyle@checkstyle/checkstyle#26e782867e17ba6fafa442f4c53b2682325513b6 › org.apache.maven.doxia:doxia-core@1.12.0 › org.apache.maven.doxia:doxia-sink-api@1.12.0 › org.apache.maven.doxia:doxia-logging-api@1.12.0 › org.codehaus.plexus:plexus-container-default@2.1.0 › org.codehaus.plexus:plexus-utils@3.3.0
Overview
org.codehaus.plexus:plexus-utils is a collection of various utility classes to ease working with strings, files, command lines, XML and more.
Affected versions of this package are vulnerable to Directory Traversal via the extractFile function. An attacker can exploit this to execute unauthorized code on the system in the context of the current working user.
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 org.codehaus.plexus:plexus-utils to version 4.0.3 or higher.
References
medium severity
- Module: net.sf.saxon:Saxon-HE
- Introduced through: net.sf.saxon:Saxon-HE@12.9
Detailed paths
-
Introduced through: checkstyle/checkstyle@checkstyle/checkstyle#26e782867e17ba6fafa442f4c53b2682325513b6 › net.sf.saxon:Saxon-HE@12.9
MPL-2.0 license
low severity
- Vulnerable module: commons-codec:commons-codec
- Introduced through: org.apache.maven.doxia:doxia-core@1.12.0
Detailed paths
-
Introduced through: checkstyle/checkstyle@checkstyle/checkstyle#26e782867e17ba6fafa442f4c53b2682325513b6 › org.apache.maven.doxia:doxia-core@1.12.0 › org.apache.httpcomponents:httpclient@4.5.13 › commons-codec:commons-codec@1.11
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: junit:junit
- Introduced through: org.apache.maven.doxia:doxia-core@1.12.0 and org.apache.maven.doxia:doxia-sink-api@1.12.0
Detailed paths
-
Introduced through: checkstyle/checkstyle@checkstyle/checkstyle#26e782867e17ba6fafa442f4c53b2682325513b6 › org.apache.maven.doxia:doxia-core@1.12.0 › org.codehaus.plexus:plexus-container-default@2.1.0 › junit:junit@4.11Remediation: Upgrade to org.apache.maven.doxia:doxia-core@2.0.0.
-
Introduced through: checkstyle/checkstyle@checkstyle/checkstyle#26e782867e17ba6fafa442f4c53b2682325513b6 › org.apache.maven.doxia:doxia-sink-api@1.12.0 › org.apache.maven.doxia:doxia-logging-api@1.12.0 › org.codehaus.plexus:plexus-container-default@2.1.0 › junit:junit@4.11
-
Introduced through: checkstyle/checkstyle@checkstyle/checkstyle#26e782867e17ba6fafa442f4c53b2682325513b6 › org.apache.maven.doxia:doxia-core@1.12.0 › org.apache.maven.doxia:doxia-logging-api@1.12.0 › org.codehaus.plexus:plexus-container-default@2.1.0 › junit:junit@4.11
-
Introduced through: checkstyle/checkstyle@checkstyle/checkstyle#26e782867e17ba6fafa442f4c53b2682325513b6 › org.apache.maven.doxia:doxia-core@1.12.0 › org.apache.maven.doxia:doxia-sink-api@1.12.0 › org.apache.maven.doxia:doxia-logging-api@1.12.0 › org.codehaus.plexus:plexus-container-default@2.1.0 › junit:junit@4.11
Overview
junit:junit is an unit testing framework for Java
Affected versions of this package are vulnerable to Information Exposure. The JUnit4 test rule TemporaryFolder contains a local information disclosure vulnerability. On Unix like systems, the system's temporary directory is shared between all users on that system. Because of this, when files and directories are written into this directory they are, by default, readable by other users on that same system.
Note: This vulnerability does not allow other users to overwrite the contents of these directories or files. This only affects Unix like systems.
Remediation
Upgrade junit:junit to version 4.13.1 or higher.