Gmedia Photo Gallery <= 1.25.1 - Unauthenticated SQL Injection via 'gmedia__in' Parameter
What fixes it
No source in this snapshot names a fixed version.
Description
The Gmedia Photo Gallery plugin for WordPress is vulnerable to time-based SQL Injection via the 'gmedia__in' parameter in all versions up to, and including, 1.25.1 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. The unauthenticated mobile app endpoint dispatches the library action without validating the Mobile App feature flag, a nonce, or any WordPress authentication, meaning no account or session of any kind is required to exploit this vulnerability.
Text from CVE List
Affected versions 1
- Gmedia Photo Galleryaffected: all versions through 1.25.1CVE List
References 5
- wordfence.com/threat-intel/vulnerabilities/id/0592050d-4e72-4b40-a88b-b92e53c49e9e?source=cveReferencevia CVE List
- plugins.trac.wordpress.org/browser/grand-media/tags/1.25.1/inc/db.connect.php#L1682Referencevia CVE List
- plugins.trac.wordpress.org/browser/grand-media/tags/1.25.1/inc/db.connect.php#L2206Referencevia CVE List
- plugins.trac.wordpress.org/browser/grand-media/tags/1.25.1/app/access.php#L131Referencevia CVE List
- plugins.trac.wordpress.org/browser/grand-media/tags/1.25.1/app/access.php#L36Referencevia CVE List