CVE-2021-36916 WordPress Hide My WP premium plugin <= 6.2.3 - Unauthenticated SQL injection (SQLi) vulnerability
Unauthenticated attackers can execute arbitrary SQL commands via spoofed IP headers in the Hide My WP plugin, potentially accessing or modifying database content.
- 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-2021-36916?
CVE-2021-36916 is a high-severity SQL injection vulnerability in wpWave Hide My WP (WordPress plugin), published on 24 Nov 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The SQL injection vulnerability in the Hide My WP WordPress plugin (versions <= 6.2.3) is possible because of how the IP address is retrieved and used inside a SQL query. The function "hmwp_get_user_ip" tries to retrieve the IP address from multiple headers, including IP address headers that the user can spoof, such as "X-Forwarded-For." As a result, the malicious payload supplied in one of these IP address headers will be directly inserted into the SQL query, making SQL injection possible.
Weakness: CWE-89
Which versions are affected by CVE-2021-36916?
It affects 1 product.
Products include Wpwave Hide My Wp.
How do I fix CVE-2021-36916?
No fix has been published for CVE-2021-36916 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-2021-36916 being exploited?
There is no known exploitation of CVE-2021-36916 in the wild and no public exploit code.
Other vulnerabilities in wpWave Hide My WP (WordPress plugin)
Sources
Also known as GHSA-53q2-99ph-73wh.