Photo Gallery by 10Web <= 1.8.41 - Authenticated (Contributor+) SQL Injection via 'compact_album_order_by' Shortcode Parameter
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: partial
Summary
The Photo Gallery by 10Web – Mobile-Friendly Image Gallery plugin for WordPress is vulnerable to time-based SQL Injection via 'compact_album_order_by' Shortcode Parameter in all versions up to, and including, 1.8.41 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with contributor-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. The malicious payload is stored via the 'shortcode_bwg' AJAX handler — accessible to Contributor-level users and exploitable without a valid nonce by omitting the 'page' parameter — and is subsequently triggered by the unauthenticated 'bwg_frontend_data' AJAX handler, meaning successful exploitation requires only that an attacker has Contributor-level access to save the shortcode.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- 10web Photo Gallery by 10Web – Mobile-Friendly Image Gallery
through 1.8.41
References 12
plugins.trac.wordpress.org
- browser/photo-gallery/tags/1.8.40/frontend/models/model.php#L113
- browser/photo-gallery/tags/1.8.41/frontend/models/model.php#L113
- browser/photo-gallery/tags/1.8.41/frontend/models/model.php#L162
- browser/photo-gallery/tags/1.8.41/admin/controllers/Shortcode.php#L59
- browser/photo-gallery/tags/1.8.41/framework/WDWLibrary.php#L2281
- browser/photo-gallery/tags/1.8.41/photo-gallery.php#L717
- browser/photo-gallery/tags/1.8.40/frontend/models/model.php#L162
- browser/photo-gallery/tags/1.8.40/admin/controllers/Shortcode.php#L59
- browser/photo-gallery/tags/1.8.40/framework/WDWLibrary.php#L2281
- browser/photo-gallery/tags/1.8.40/photo-gallery.php#L717
- changeset/3553847