CVE-2022-23512

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:metersphere:metersphere:*:*:*:*:*:*:*:*

History

21 Nov 2024, 06:48

Type Values Removed Values Added
CVSS v2 : unknown
v3 : 8.1
v2 : unknown
v3 : 7.7
Summary
  • (es) MeterSphere es una plataforma integral de pruebas continuas de código abierto. Las versiones anteriores a la 2.4.1 son vulnerables a la inyección de ruta en ApiTestCaseService::deleteBodyFiles, que toma una identificación de cadena controlada por el usuario y la pasa a ApiTestCaseService, que usa el valor proporcionado por el usuario (testId) en un nuevo archivo (BODY_FILE_DIR + "/" + testId), siendo eliminado posteriormente por file.delete(). Al agregar algunos parámetros de camuflaje a la URL, un atacante puede apuntar a archivos en el servidor. La vulnerabilidad se ha solucionado en v2.4.1.
References () https://github.com/metersphere/metersphere/security/advisories/GHSA-5mwp-xw7p-5j27 - Exploit, Patch, Third Party Advisory () https://github.com/metersphere/metersphere/security/advisories/GHSA-5mwp-xw7p-5j27 - Exploit, Patch, Third Party Advisory

Information

Published : 2022-12-14 14:15

Updated : 2024-11-21 06:48


NVD link : CVE-2022-23512

Mitre link : CVE-2022-23512

CVE.ORG link : CVE-2022-23512


JSON object : View

Products Affected

metersphere

  • metersphere
CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')