Skip to content

← Public intelligence

npm package

generator-jhipster-kotlin

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

2 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Critical, CVSS 9.8npmPublished

    JHipster Kotlin using insecure source of randomness RandomStringUtils before v1.2.0

    CVE-2019-16303 · GHSA-j3rh-8vwq-wh84

    Affected
    • npm generator-jhipster-kotlin < 1.2.0
    Fixed in
    1.2.0· Vendor fix available
    Issue
    JHipster Kotlin is using an insecure source of randomness to generate all of its random values. JHipster Kotlin relies upon apache commons lang3 `RandomStringUtils`. From the documentation: > Caveat: Instances of Random, upon which the implementation of this class relies, are not cryptographically secure. > \- https://commons.apache.org/proper/commons-lang/javadocs/api-3.9/org/apache/commons/lang3/RandomStringUtils.html Here are the examples of JHipster Kotlin's use of an insecure PRNG: https://github.com/jhipster/jhipster-kotlin/blob/193ae8f13c0be686f9687e78bacfedb144c47d8c/generators/server/templates/src/main/kotlin/package/service/util/RandomUtil.kt.ejs#L32 Proof Of Concepts Already Exist There has been a POC of taking one RNG value generated `RandomStringUtils` and reversing it to generate all of the past/future RNG values public since March 3rd, 2018. https://medium.com/@alex91ar/the-java-soothsayer-a-practical-application-for-insecure-randomness-c67b0cd148cd POC Repository:…

    Recommended action: Upgrade to 1.2.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.devSource checked Evidence →
  2. Medium, CVSS 5.3npmAmendedPublished

    Log Forging in generator-jhipster-kotlin

    CVE-2020-4072 · GHSA-pfxf-wh96-fvjc

    Affected
    • npm generator-jhipster-kotlin >= 1.6.0, <= 1.6.0
    Fixed in
    1.7.0· Vendor fix available
    Issue
    Impact We log the mail for invalid password reset attempts. As the email is provided by a user and the api is public this can be used by an attacker to forge log entries. This is vulnerable to https://cwe.mitre.org/data/definitions/117.html This problem affects only application generated with jwt or session authentication. Applications using oauth are not vulnerable. Patches version 1.7.0. Workarounds In AccountResource.kt you should change the line to References https://cwe.mitre.org/data/definitions/117.html https://owasp.org/www-community/attacks/LogInjection https://www.baeldung.com/jvm-log-forging For more information If you have any questions or comments about this advisory: Open an issue in jhipster kotlin

    Recommended action: Upgrade to 1.7.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →