SQL injection in WordPress Gallery Plugin - NextGEN Gallery - #VU5907

 

SQL injection in WordPress Gallery Plugin - NextGEN Gallery - #VU5907

Published: March 2, 2017


Vulnerability identifier: #VU5907
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:P/U:Green
CVE-ID: N/A
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Imagely
Affected software:
WordPress Gallery Plugin - NextGEN Gallery

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary SQL queries in web application database.

The vulnerability exists due to insufficient sanitization of user-supplied data passed via URL within

nextgen-gallery/products/photocrati_nextgen/modules/nextgen_gallery_display/package.module.nextgen_gallery_display.php
script. A remote unauthenticated attacker can send a specially crafted HTTP GET request to vulnerable application and execute arbitrary SQL commands in backend database.

Successful exploitation of the vulnerability may lead to website compromise.

Exploitation example:

 http://[host]/2017/01/17/new-one/nggallery/tags/test%251%24%25s))%20or%201=1%23

Remediation

Update to version 2.1.79.

Sources