Hide My WP <= 6.2.3 - SQL Injection

8.6
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CVE CVE-2021-36916
CVSS 8.6 (High)
Publicly Published November 24, 2021
Last Updated January 22, 2024
Researcher Dave Jong - Patchstack

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.

References

Share

1 affected software package

Software Type Plugin
Software Slug hide_my_wp
Patched? Yes
Remediation Update to version 6.2.4, or a newer patched version
Affected Version
  • <= 6.2.3
Patched Version
  • 6.2.4

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation