CVE-2022-24815
JHipster SQL Injection Vulnerability in Reactive Entities for Spring WebFlux Enabled Applications
Description
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.
INFO
Published Date :
April 11, 2022, 8:15 p.m.
Last Modified :
Nov. 21, 2024, 6:51 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
2.2
Public PoC/Exploit Available at Github
CVE-2022-24815 has a 1 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-24815
.
URL | Resource |
---|---|
https://github.com/jhipster/generator-jhipster/commit/c220a210fd7742c53eea72bd5fadbb96220faa98 | Patch Third Party Advisory |
https://github.com/jhipster/generator-jhipster/issues/18269 | Exploit Issue Tracking Third Party Advisory |
https://github.com/jhipster/generator-jhipster/security/advisories/GHSA-qjmq-8hjr-qcv6 | Third Party Advisory |
https://github.com/jhipster/generator-jhipster/commit/c220a210fd7742c53eea72bd5fadbb96220faa98 | Patch Third Party Advisory |
https://github.com/jhipster/generator-jhipster/issues/18269 | Exploit Issue Tracking Third Party Advisory |
https://github.com/jhipster/generator-jhipster/security/advisories/GHSA-qjmq-8hjr-qcv6 | Third Party Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Example of a vulnerable application generated with Jhipster 7.7.0. Sample code for teaching purposes.
Python Dockerfile Shell Java HTML
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-24815
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-24815
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/jhipster/generator-jhipster/commit/c220a210fd7742c53eea72bd5fadbb96220faa98 Added Reference https://github.com/jhipster/generator-jhipster/issues/18269 Added Reference https://github.com/jhipster/generator-jhipster/security/advisories/GHSA-qjmq-8hjr-qcv6 -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Initial Analysis by [email protected]
Apr. 19, 2022
Action Type Old Value New Value Added CVSS V2 NIST (AV:N/AC:M/Au:N/C:P/I:P/A:P) Added CVSS V3.1 NIST AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://github.com/jhipster/generator-jhipster/commit/c220a210fd7742c53eea72bd5fadbb96220faa98 No Types Assigned https://github.com/jhipster/generator-jhipster/commit/c220a210fd7742c53eea72bd5fadbb96220faa98 Patch, Third Party Advisory Changed Reference Type https://github.com/jhipster/generator-jhipster/issues/18269 No Types Assigned https://github.com/jhipster/generator-jhipster/issues/18269 Exploit, Issue Tracking, Third Party Advisory Changed Reference Type https://github.com/jhipster/generator-jhipster/security/advisories/GHSA-qjmq-8hjr-qcv6 No Types Assigned https://github.com/jhipster/generator-jhipster/security/advisories/GHSA-qjmq-8hjr-qcv6 Third Party Advisory Added CPE Configuration OR *cpe:2.3:a:jhipster:generator-jhipster:*:*:*:*:*:node.js:*:* versions from (including) 7.0.0 up to (excluding) 7.8.1
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-24815
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-24815
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.31 }} -0.01%
score
0.69953
percentile