JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures. SQL Injection vulnerability in entities for applications generated with the option "reactive with Spring WebFlux" enabled and an SQL database using r2dbc. Applications created without "reactive with Spring WebFlux" and applications with NoSQL databases are not affected. Users who have generated a microservice Gateway using the affected version may be impacted as Gateways are reactive by default. Currently, SQL injection is possible in the findAllBy(Pageable pageable, Criteria criteria) method of an entity repository class generated in these applications as the where clause using Criteria for queries are not sanitized and user input is passed on as it is by the criteria. This issue has been patched in v7.8.1. Users unable to upgrade should be careful when combining criterias and conditions as the root of the issue lies in the EntityManager.java class when creating the where clause via Conditions.just(criteria.toString()). just accepts the literal string provided. Criteria's toString method returns a plain string and this combination is vulnerable to sql injection as the string is not sanitized and will contain whatever used passed as input using any plain SQL.
JHipster generator-jhipster before 2.23.0 allows a timing attack against validateToken due to a string comparison that stops at the first character that is different. Attackers can guess tokens by brute forcing one character at a time and observing the timing. This of course drastically reduces the search space to a linear amount of guesses based on the token length times the possible characters.
A class generated by the Generator in JHipster before 6.3.0 and JHipster Kotlin through 1.1.0 produces code that uses an insecure source of randomness (apache.commons.lang3 RandomStringUtils). This allows an attacker (if able to obtain their own password reset URL) to compute the value for all other password resets for other accounts, thus allowing privilege escalation or account takeover.
End of life: 11/2/2023, Latest version: 7.9.4
End of life: 11/2/2023, Latest version: 7.9.4
End of life: 3/21/2021, Latest version: 6.10.5
End of life: 3/21/2021, Latest version: 6.10.5
End of life: 5/2/2019, Latest version: 5.8.2
End of life: 5/2/2019, Latest version: 5.8.2
End of life: 6/20/2018, Latest version: 4.14.5
End of life: 6/20/2018, Latest version: 4.14.5
End of life: 2/2/2017, Latest version: 3.12.2
End of life: 2/2/2017, Latest version: 3.12.2
End of life: 3/23/2016, Latest version: 2.27.2
End of life: 3/23/2016, Latest version: 2.27.2
End of life: 1/9/2015, Latest version: 1.10.2
End of life: 1/9/2015, Latest version: 1.10.2
End of life: 9/1/2014, Latest version: 0.18.1
End of life: 9/1/2014, Latest version: 0.18.1