CVE-2024-10687 SQL injection in Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe
Unauthenticated attackers can exploit SQL injection to extract sensitive database information from the Contest Gallery WordPress plugin.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-10687?
CVE-2024-10687 is a critical SQL injection vulnerability in contest-gallery Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe, published on 5 Nov 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The Photos, Files, YouTube, Twitter, Instagram, TikTok, Ecommerce Contest Gallery – Upload, Vote, Sell via PayPal, Social Share Buttons plugin for WordPress is vulnerable to time-based SQL Injection via the $collectedIds parameter in all versions up to, and including, 24.0.3 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.
Weakness: CWE-89
Which versions are affected by CVE-2024-10687?
It affects 1 product.
Products include Contest-Gallery Contest Gallery.
How do I fix CVE-2024-10687?
No fix has been published for CVE-2024-10687 yet. Limit exposure of the affected software until one is available.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2024-10687 being exploited?
There is no known exploitation of CVE-2024-10687 in the wild and no public exploit code.
Other vulnerabilities in contest-gallery Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe
- CVE-2024-11103 Contest Gallery <= 24.0.7 - Unauthenticated Arbitrary Password Reset to Privilege Escalation/Account Takeover
- CVE-2019-5974 Cross-site request forgery in Contest Gallery
- CVE-2024-32778 WordPress Contest Gallery plugin <= 21.3.4 - Arbitrary File Deletion vulnerability
- CVE-2024-30236 WordPress Contest Gallery plugin <= 21.3.4 - SQL Injection vulnerability
- CVE-2024-30238 WordPress Photos and Files Contest Gallery plugin <= 21.3.2 - SQL Injection vulnerability
Sources
Also known as GHSA-qq38-5866-pcpc.