CVE-2022-0785 Daily Prayer Time < 2022.03.01 - Unauthenticated SQLi
Unauthenticated attackers can exploit SQL injection in the Daily Prayer Time plugin to read or modify database contents.
- 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-2022-0785?
CVE-2022-0785 is a critical SQL injection vulnerability in Unknown Daily Prayer Time, published on 18 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The Daily Prayer Time WordPress plugin before 2022.03.01 does not sanitise and escape the month parameter before using it in a SQL statement via the get_monthly_timetable AJAX action (available to unauthenticated users), leading to an unauthenticated SQL injection
Weakness: CWE-89
Which versions are affected by CVE-2022-0785?
It affects 1 product.
Products include Daily Prayer Time Project Daily Prayer Time.
How do I fix CVE-2022-0785?
No fix has been published for CVE-2022-0785 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-2022-0785 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-0785 exists.
Public exploit code: 1 Nuclei template.
Sources
Also known as GHSA-9qv2-4g99-78c9.