SQL Injection Affecting github.com/flipped-aurora/gin-vue-admin/server/service/system package, versions <2.5.1


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.1% (43rd 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-GOLANG-GITHUBCOMFLIPPEDAURORAGINVUEADMINSERVERSERVICESYSTEM-2709392
  • published14 Apr 2022
  • disclosed14 Apr 2022
  • creditort4u

Introduced: 14 Apr 2022

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

How to fix?

Upgrade github.com/flipped-aurora/gin-vue-admin/server/service/system to version 2.5.1 or higher.

Overview

Affected versions of this package are vulnerable to SQL Injection in server/service/system/sys_auto_code_pgsql.go, which means that PostgreSQL must be used as the database for this vulnerability to occur and users must require JWT login.

PoC

http://127.0.0.1:8888/autoCode/getColumn?tableName=123' AND 1178=(SELECT 1178 FROM PG_SLEEP(5)) AND 'obSz'='obSz

CVSS Scores

version 3.1