### [CVE-2022-23512](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-23512) ![](https://img.shields.io/static/v1?label=Product&message=metersphere&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=%3D%20%3C%202.4.1%20&color=brighgreen) ![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-22%3A%20Improper%20Limitation%20of%20a%20Pathname%20to%20a%20Restricted%20Directory%20('Path%20Traversal')&color=brighgreen) ### Description MeterSphere is a one-stop open source continuous testing platform. Versions prior to 2.4.1 are vulnerable to Path Injection in ApiTestCaseService::deleteBodyFiles which takes a user-controlled string id and passes it to ApiTestCaseService, which uses the user-provided value (testId) in new File(BODY_FILE_DIR + "/" + testId), being deleted later by file.delete(). By adding some camouflage parameters to the url, an attacker can target files on the server. The vulnerability has been fixed in v2.4.1. ### POC #### Reference - https://github.com/metersphere/metersphere/security/advisories/GHSA-5mwp-xw7p-5j27 #### Github No PoCs found on GitHub currently.