SQL Injection Affecting genix/cms package, versions <1.0.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.17% (56th 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-PHP-GENIXCMS-6674131
  • published26 Apr 2024
  • disclosed14 May 2022
  • creditl3m0n

Introduced: 14 May 2022

CVE-2017-5346  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade genix/cms to version 1.0.0 or higher.

Overview

genix/cms is a Simple and Free Opensource CMS and Framework.

Affected versions of this package are vulnerable to SQL Injection due to improper sanitization of user-supplied input in inc/lib/Control/Backend/posts.control.php. An attacker can execute arbitrary SQL commands by manipulating the id parameter in requests to gxadmin/index.php. This is only exploitable if the attacker has administrative access.

PoC

http://lemon.love/code-src/GeniXCMS/GeniXCMS-master/gxadmin/index.php?page=posts&act=edit&id=6' and updatexml(1,(select user()),1)%23&token=Pp52R3oD4wuLBVutgD9hMsMrp8alQD3bKmuf06AI0HZMzoMiRe3s18BUa4eIOqrMqj38Cp9aoQqWaw10

CVSS Scores

version 3.1