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

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.1% (42nd 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 ID SNYK-GOLANG-GITHUBCOMFLIPPEDAURORAGINVUEADMINSERVERSERVICESYSTEM-2709392
  • published 14 Apr 2022
  • disclosed 14 Apr 2022
  • credit ort4u

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
Expand this section

Snyk

Recommended
8.1 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    High
Expand this section

NVD

8.8 high