Vulnerabilities

15 via 31 paths

Dependencies

23

Source

GitHub

Commit

fd2828dd

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 15
  • 1
Severity
  • 7
  • 8
  • 1
Status
  • 16
  • 0
  • 0

high severity

Improper Validation of Integrity Check Value

  • Vulnerable module: org.apache.sshd:sshd-core
  • Introduced through: org.jpos:jpos@2.1.0

Detailed paths

  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.jpos:jpos@2.1.0 org.apache.sshd:sshd-core@1.3.0
    Remediation: Upgrade to org.jpos:jpos@3.0.0.

Overview

Affected versions of this package are vulnerable to Improper Validation of Integrity Check Value through the integrity check process. An attacker can manipulate the communication by intercepting and dropping specific packets, leading to a compromised connection where security features may be downgraded or disabled (Terrapin attack).

Note:

Both the client and the server implementation must have mitigations applied against this issue, otherwise the connection may still be affected.

Remediation

Upgrade org.apache.sshd:sshd-core to version 2.12.0 or higher.

References

high severity

Buffer Overflow

  • Vulnerable module: org.apache.sshd:sshd-core
  • Introduced through: org.jpos:jpos@2.1.0

Detailed paths

  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.jpos:jpos@2.1.0 org.apache.sshd:sshd-core@1.3.0
    Remediation: Upgrade to org.jpos:jpos@2.1.8.

Overview

Affected versions of this package are vulnerable to Buffer Overflow. It allows an attacker to leverage the SFTP and port forwarding features to overflow the server causing an OutOfMemory error.

Remediation

Upgrade org.apache.sshd:sshd-core to version 2.7.0 or higher.

References

high severity

Information Exposure

  • Vulnerable module: org.bouncycastle:bcprov-jdk15on
  • Introduced through: org.bouncycastle:bcprov-jdk15on@1.60 and org.jpos:jpos@2.1.0

Detailed paths

  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.bouncycastle:bcprov-jdk15on@1.60
    Remediation: Upgrade to org.bouncycastle:bcprov-jdk15on@1.61.
  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.jpos:jpos@2.1.0 org.bouncycastle:bcprov-jdk15on@1.60
    Remediation: Upgrade to org.jpos:jpos@2.1.3.
  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.jpos:jpos@2.1.0 org.bouncycastle:bcpg-jdk15on@1.56 org.bouncycastle:bcprov-jdk15on@1.60
    Remediation: Upgrade to org.jpos:jpos@2.1.3.

Overview

org.bouncycastle:bcprov-jdk15on is a Java implementation of cryptographic algorithms.

Affected versions of this package are vulnerable to Information Exposure. Attackers can obtain sensitive information about a private exponent because of Observable Differences in Behavior to Error Inputs. This occurs in org.bouncycastle.crypto.encodings.OAEPEncoding. Sending invalid ciphertext that decrypts to a short payload in the OAEP Decoder could result in the throwing of an early exception, potentially leaking some information about the private exponent of the RSA private key performing the encryption.

Remediation

Upgrade org.bouncycastle:bcprov-jdk15on to version 1.61 or higher.

References

high severity

XML External Entity (XXE) Injection

  • Vulnerable module: org.jdom:jdom
  • Introduced through: org.jdom:jdom@1.1.3

Detailed paths

  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.jdom:jdom@1.1.3

Overview

Affected versions of this package are vulnerable to XML External Entity (XXE) Injection via a crafted HTTP request.

Details

XXE Injection is a type of attack against an application that parses XML input. XML is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. By default, many XML processors allow specification of an external entity, a URI that is dereferenced and evaluated during XML processing. When an XML document is being parsed, the parser can make a request and include the content at the specified URI inside of the XML document.

Attacks can include disclosing local files, which may contain sensitive data such as passwords or private user data, using file: schemes or relative paths in the system identifier.

For example, below is a sample XML document, containing an XML element- username.

<xml>
<?xml version="1.0" encoding="ISO-8859-1"?>
   <username>John</username>
</xml>

An external XML entity - xxe, is defined using a system identifier and present within a DOCTYPE header. These entities can access local or remote content. For example the below code contains an external XML entity that would fetch the content of /etc/passwd and display it to the user rendered by username.

<xml>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE foo [
   <!ENTITY xxe SYSTEM "file:///etc/passwd" >]>
   <username>&xxe;</username>
</xml>

Other XXE Injection attacks can access local resources that may not stop returning data, possibly impacting application availability and leading to Denial of Service.

Remediation

There is no fixed version for org.jdom:jdom.

References

high severity

XML External Entity (XXE) Injection

  • Vulnerable module: org.jdom:jdom2
  • Introduced through: org.jpos:jpos@2.1.0

Detailed paths

  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.jpos:jpos@2.1.0 org.jdom:jdom2@2.0.6
    Remediation: Upgrade to org.jpos:jpos@2.1.7.

Overview

org.jdom:jdom2 is a Java manipulation of XML made easy.

Affected versions of this package are vulnerable to XML External Entity (XXE) Injection via a crafted HTTP request.

Details

XXE Injection is a type of attack against an application that parses XML input. XML is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. By default, many XML processors allow specification of an external entity, a URI that is dereferenced and evaluated during XML processing. When an XML document is being parsed, the parser can make a request and include the content at the specified URI inside of the XML document.

Attacks can include disclosing local files, which may contain sensitive data such as passwords or private user data, using file: schemes or relative paths in the system identifier.

For example, below is a sample XML document, containing an XML element- username.

<xml>
<?xml version="1.0" encoding="ISO-8859-1"?>
   <username>John</username>
</xml>

An external XML entity - xxe, is defined using a system identifier and present within a DOCTYPE header. These entities can access local or remote content. For example the below code contains an external XML entity that would fetch the content of /etc/passwd and display it to the user rendered by username.

<xml>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE foo [
   <!ENTITY xxe SYSTEM "file:///etc/passwd" >]>
   <username>&xxe;</username>
</xml>

Other XXE Injection attacks can access local resources that may not stop returning data, possibly impacting application availability and leading to Denial of Service.

Remediation

Upgrade org.jdom:jdom2 to version 2.0.6.1 or higher.

References

high severity

Denial of Service (DoS)

  • Vulnerable module: xerces:xercesImpl
  • Introduced through: xerces:xercesImpl@2.12.0

Detailed paths

  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b xerces:xercesImpl@2.12.0
    Remediation: Upgrade to xerces:xercesImpl@2.12.2.

Overview

xerces:xercesImpl is a that is used for high performance, fully compliant XML parsers in the Apache Xerces family.

Affected versions of this package are vulnerable to Denial of Service (DoS) via the XML parser when handling specially crafted XML document payloads. When the parser tries to parse such a document it gets stuck in an infinite loop for a long time, which consumes resources.

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 xerces:xercesImpl to version 2.12.2 or higher.

References

high severity

AGPL-3.0 license

  • Module: org.jpos:jpos
  • Introduced through: org.jpos:jpos@2.1.0

Detailed paths

  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.jpos:jpos@2.1.0

AGPL-3.0 license

medium severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: org.bouncycastle:bcprov-jdk15on
  • Introduced through: org.bouncycastle:bcprov-jdk15on@1.60 and org.jpos:jpos@2.1.0

Detailed paths

  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.bouncycastle:bcprov-jdk15on@1.60
  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.jpos:jpos@2.1.0 org.bouncycastle:bcprov-jdk15on@1.60
  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.jpos:jpos@2.1.0 org.bouncycastle:bcpg-jdk15on@1.56 org.bouncycastle:bcprov-jdk15on@1.60

Overview

org.bouncycastle:bcprov-jdk15on is a Java implementation of cryptographic algorithms.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the ASN1ObjectIdentifier. An attacker can cause excessive resource consumption by submitting specially crafted ASN.1 Object Identifiers, potentially leading to service disruption.

Note: This issue only applies to applications which do consume unvetted, or otherwise unvalidated, ASN.1 encodings.

Remediation

A fix was pushed into the master branch but not yet published.

References

medium severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: org.bouncycastle:bcprov-jdk15on
  • Introduced through: org.bouncycastle:bcprov-jdk15on@1.60 and org.jpos:jpos@2.1.0

Detailed paths

  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.bouncycastle:bcprov-jdk15on@1.60
  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.jpos:jpos@2.1.0 org.bouncycastle:bcprov-jdk15on@1.60
  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.jpos:jpos@2.1.0 org.bouncycastle:bcpg-jdk15on@1.56 org.bouncycastle:bcprov-jdk15on@1.60

Overview

org.bouncycastle:bcprov-jdk15on is a Java implementation of cryptographic algorithms.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling due to improper processing of large name constraint structures in PKIXCertPathReviewer. An attacker can cause excessive resource allocation by submitting specially crafted ASN.1 objects, potentially leading to service disruption.

Workaround

This vulnerability can be mitigated by limiting the size of ASN.1 objects that can be loaded from untrusted sources, thereby capping the maximum size of a Name Constraints structure.

Remediation

A fix was pushed into the master branch but not yet published.

References

medium severity

Observable Discrepancy

  • Vulnerable module: org.bouncycastle:bcprov-jdk15on
  • Introduced through: org.bouncycastle:bcprov-jdk15on@1.60 and org.jpos:jpos@2.1.0

Detailed paths

  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.bouncycastle:bcprov-jdk15on@1.60
  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.jpos:jpos@2.1.0 org.bouncycastle:bcprov-jdk15on@1.60
  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.jpos:jpos@2.1.0 org.bouncycastle:bcpg-jdk15on@1.56 org.bouncycastle:bcprov-jdk15on@1.60

Overview

org.bouncycastle:bcprov-jdk15on is a Java implementation of cryptographic algorithms.

Affected versions of this package are vulnerable to Observable Discrepancy due to the timing difference between exceptions thrown when processing RSA key exchange handshakes, AKA Marvin.

Note: The implemented fix mitigates the leakage of data via the PKCS#1 interface, but does not fully alleviate the side-channel as it allows cases in which the padding check fails but the handshake succeeds.

Remediation

There is no fixed version for org.bouncycastle:bcprov-jdk15on.

References

medium severity

Uncontrolled Resource Consumption ('Resource Exhaustion')

  • Vulnerable module: org.bouncycastle:bcprov-jdk15on
  • Introduced through: org.bouncycastle:bcprov-jdk15on@1.60 and org.jpos:jpos@2.1.0

Detailed paths

  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.bouncycastle:bcprov-jdk15on@1.60
  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.jpos:jpos@2.1.0 org.bouncycastle:bcprov-jdk15on@1.60
  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.jpos:jpos@2.1.0 org.bouncycastle:bcpg-jdk15on@1.56 org.bouncycastle:bcprov-jdk15on@1.60

Overview

org.bouncycastle:bcprov-jdk15on is a Java implementation of cryptographic algorithms.

Affected versions of this package are vulnerable to Uncontrolled Resource Consumption ('Resource Exhaustion') within the org.bouncycastle.openssl.PEMParser class. Parsing a file that has crafted ASN.1 data through the PEMParser causes an OutOfMemoryError.

Workaround

The attack can be avoided by filtering PEM requests containing EXTERNAL tagged encodings.

Remediation

There is no fixed version for org.bouncycastle:bcprov-jdk15on.

References

medium severity

Timing Attack

  • Vulnerable module: org.bouncycastle:bcprov-jdk15on
  • Introduced through: org.bouncycastle:bcprov-jdk15on@1.60 and org.jpos:jpos@2.1.0

Detailed paths

  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.bouncycastle:bcprov-jdk15on@1.60
    Remediation: Upgrade to org.bouncycastle:bcprov-jdk15on@1.66.
  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.jpos:jpos@2.1.0 org.bouncycastle:bcprov-jdk15on@1.60
    Remediation: Upgrade to org.jpos:jpos@2.1.5.
  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.jpos:jpos@2.1.0 org.bouncycastle:bcpg-jdk15on@1.56 org.bouncycastle:bcprov-jdk15on@1.60
    Remediation: Upgrade to org.jpos:jpos@2.1.5.

Overview

org.bouncycastle:bcprov-jdk15on is a Java implementation of cryptographic algorithms.

Affected versions of this package are vulnerable to Timing Attack. A timing issue within the EC math library can expose information about the private key when an attacker is able to observe timing information for the generation of multiple deterministic ECDSA signatures.

Remediation

Upgrade org.bouncycastle:bcprov-jdk15on to version 1.66 or higher.

References

medium severity

Improper Input Validation

  • Vulnerable module: xerces:xercesImpl
  • Introduced through: xerces:xercesImpl@2.12.0

Detailed paths

  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b xerces:xercesImpl@2.12.0
    Remediation: Upgrade to xerces:xercesImpl@2.12.1.

Overview

xerces:xercesImpl is a that is used for high performance, fully compliant XML parsers in the Apache Xerces family.

Affected versions of this package are vulnerable to Improper Input Validation due to the way the XMLSchemaValidator class in the JAXP component of Wildfly enforced the "use-grammar-pool-only" feature. This flaw allows a specially-crafted XML file to manipulate the validation process in certain cases. This issue is the same flaw as CVE-2020-14621, which affected OpenJDK, and uses a similar code.

Remediation

Upgrade xerces:xercesImpl to version 2.12.0.SP03 or higher.

References

medium severity

Cryptographic Issues

  • Vulnerable module: org.bouncycastle:bcprov-jdk15on
  • Introduced through: org.bouncycastle:bcprov-jdk15on@1.60 and org.jpos:jpos@2.1.0

Detailed paths

  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.bouncycastle:bcprov-jdk15on@1.60
    Remediation: Upgrade to org.bouncycastle:bcprov-jdk15on@1.69.
  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.jpos:jpos@2.1.0 org.bouncycastle:bcprov-jdk15on@1.60
    Remediation: Upgrade to org.jpos:jpos@2.1.7.
  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.jpos:jpos@2.1.0 org.bouncycastle:bcpg-jdk15on@1.56 org.bouncycastle:bcprov-jdk15on@1.60
    Remediation: Upgrade to org.jpos:jpos@2.1.7.

Overview

org.bouncycastle:bcprov-jdk15on is a Java implementation of cryptographic algorithms.

Affected versions of this package are vulnerable to Cryptographic Issues via weak key-hash message authentication code (HMAC) that is only 16 bits long which can result in hash collisions, as a result of an error within the BKS version 1 keystore (BKS-V1) files and could lead to an attacker being able to affect the integrity of these files. This vulnerability was introduced following an incomplete fix for CVE-2018-5382.

Remediation

Upgrade org.bouncycastle:bcprov-jdk15on to version 1.69 or higher.

References

medium severity

Information Exposure

  • Vulnerable module: org.bouncycastle:bcprov-jdk15on
  • Introduced through: org.bouncycastle:bcprov-jdk15on@1.60 and org.jpos:jpos@2.1.0

Detailed paths

  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.bouncycastle:bcprov-jdk15on@1.60
  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.jpos:jpos@2.1.0 org.bouncycastle:bcprov-jdk15on@1.60
  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b org.jpos:jpos@2.1.0 org.bouncycastle:bcpg-jdk15on@1.56 org.bouncycastle:bcprov-jdk15on@1.60

Overview

org.bouncycastle:bcprov-jdk15on is a Java implementation of cryptographic algorithms.

Affected versions of this package are vulnerable to Information Exposure due to missing validation for the X.500 name of any certificate, subject, or issuer. The presence of a wild card may lead to information disclosure. This could allow a malicious user to obtain unauthorized information via blind LDAP Injection, exploring the environment and enumerating data.

Note:

The exploit depends on the structure of the target LDAP directory as well as what kind of errors are exposed to the user.

Remediation

A fix was pushed into the master branch but not yet published.

References

low severity

Information Exposure

  • Vulnerable module: junit:junit
  • Introduced through: com.googlecode.json-simple:json-simple@1.1.1

Detailed paths

  • Introduced through: gjyoung1974/hsm-simulator@gjyoung1974/hsm-simulator#fd2828dd22215d58be164cc209598a8fd6928d0b com.googlecode.json-simple:json-simple@1.1.1 junit:junit@4.10

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.

References