A plain-language summary of this CVE is being written; the description below is the NVD's own text.
Description
The Contest Gallery plugin for WordPress is vulnerable to SQL Injection via the 'form_input' parameter in versions up to, and including, 28.1.6. This is due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query inside the unauthenticated 'post_cg_gallery_form_upload' AJAX action (specifically the 'cb' branch of the included users-upload-check.php, where $f_input_id is concatenated unquoted into 'SELECT Field_Content FROM ... WHERE id = $f_input_id'). The endpoint is gated only by a public frontend nonce ('cg1l_action' / 'cg_nonce') that is exposed in the page source of any public gallery page. 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.
Affected products
The NVD has not attached product data to this record yet; the description names what is affected.
Weakness type
References
- plugins.trac.wordpress.org /browser/contest-gallery/tags/28.1.5/ajax/ajax-functions-fr…
- plugins.trac.wordpress.org /browser/contest-gallery/tags/28.1.5/functions/frontend/cg-…
- plugins.trac.wordpress.org /browser/contest-gallery/tags/28.1.5/v10/v10-frontend/user_…
- plugins.trac.wordpress.org /browser/contest-gallery/tags/28.1.5/v10/v10-frontend/user_…
- www.wordfence.com /threat-intel/vulnerabilities/id/71f2f8c4-00ee-4ab4-b0e0-9d…
Ingati scans your site every week and tells you when a CVE like this one affects something it found there.
Start scanning