{"id":"CVE-2024-31453","aliases":["CVE-2024-31453","GHSA-xg8v-m2mh-45m6"],"related":[],"kind":"vulnerability","state":"published","title":"PsiTransfer vulnerable to violation of the integrity of file distribution","summary":"PsiTransfer is an open source, self-hosted file sharing solution. Prior to version 2.2.0, the absence of restrictions on the endpoint, which allows users to create a path for uploading a file in a file distribution, allows an attacker to add arbitrary files to the distribution. The vulnerability allows an attacker to influence those users who come to the file distribution after them and slip the victim files with a malicious or phishing signature. Version 2.2.0 contains a patch for the issue.\n\nCVE-2024-31453 allows users to violate the integrity of a file bucket and upload new files there, while the vulnerability with the number CVE-2024-31454 allows users to violate the integrity of a single file that is uploaded by another user by writing data there and not allows you to upload new files to the bucket. Thus, vulnerabilities are reproduced differently, require different security recommendations and affect different objects of the application’s business logic.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"PsiTransfer is an open source, self-hosted file sharing solution. Prior to version 2.2.0, the absence of restrictions on the endpoint, which allows users to create a path for uploading a file in a file distribution, allows an attacker to add arbitrary files to the distribution. The vulnerability allows an attacker to influence those users who come to the file distribution after them and slip the victim files with a malicious or phishing signature. Version 2.2.0 contains a patch for the issue.\n\nCVE-2024-31453 allows users to violate the integrity of a file bucket and upload new files there, while the vulnerability with the number CVE-2024-31454 allows users to violate the integrity of a single file that is uploaded by another user by writing data there and not allows you to upload new files to the bucket. Thus, vulnerabilities are reproduced differently, require different security recommendations and affect different objects of the application’s business logic.","source":"cvelist"},{"lang":"en","text":"**Summary**\nThe absence of restrictions on the endpoint, which allows you to create a path for uploading a file in a file distribution, allows an attacker to add arbitrary files to the distribution.\n\n**Details**\nVulnerable endpoint: POST /files\n\n**PoC**\n1. Create a file distribution.\n<img width=\"1434\" alt=\"Снимок экрана 2024-03-17 в 21 27 30\" src=\"https://github.com/psi-4ward/psitransfer/assets/163760990/4634a6f7-6e7d-486e-9929-76156aaa1340\">\n\n2. Go to the link address (id of the file distribution is needed by an attacker to upload files there).\n<img width=\"1426\" alt=\"Снимок экрана 2024-03-17 в 21 27 35\" src=\"https://github.com/psi-4ward/psitransfer/assets/163760990/a57c910c-69e2-4b07-985d-b0a46c69891a\">\n\n3. Send a POST /files. As the value of the Upload-Metadata header we specify the sid parameter with the id of the file distribution obtained in the second step. In the response from the server in the Location header we get the path for uploading a new file to the file distribution.\n<img width=\"1403\" alt=\"Снимок экрана 2024-03-17 в 21 28 09\" src=\"https://github.com/psi-4ward/psitransfer/assets/163760990/8b839fb8-2c0b-432f-8503-e4c42a840056\">\n\n5. Send a PATCH /files/{{id}} request with arbitrary content in the request body. Id is taken from the previous step.\n<img width=\"1067\" alt=\"Снимок экрана 2024-03-17 в 21 28 51\" src=\"https://github.com/psi-4ward/psitransfer/assets/163760990/c5b2acf3-fdf1-4780-8c63-61a7f19338df\">\n\nResult:\n<img width=\"1432\" alt=\"Снимок экрана 2024-03-17 в 21 29 05\" src=\"https://github.com/psi-4ward/psitransfer/assets/163760990/c49b17c8-e1d2-4894-b6e2-f50b9663fca7\">\n<img width=\"1424\" alt=\"Снимок экрана 2024-03-17 в 21 29 15\" src=\"https://github.com/psi-4ward/psitransfer/assets/163760990/e4a1e07d-3e77-4f61-a4e7-ceee4a5a7b8e\">\n\n**Impact**\nThe vulnerability allows an attacker to influence those users who come to the file distribution after him and slip the victim files with a malicious or phishing signature.","format":"markdown","source":"ghsa"},{"lang":"es","text":"PsiTransfer es una solución para compartir archivos autohospedada y de código abierto. Antes de la versión 2.2.0, la ausencia de restricciones en el endpoint, que permitía a los usuarios crear una ruta para cargar un archivo en una distribución de archivos, permitía a un atacante agregar archivos arbitrarios a la distribución. La vulnerabilidad permite a un atacante influir en los usuarios que llegan después de ellos a la distribución de archivos y deslizar los archivos de la víctima con una firma maliciosa o de phishing. La versión 2.2.0 contiene un parche para el problema. CVE-2024-31453 permite a los usuarios violar la integridad de un depósito de archivos y cargar nuevos archivos allí, mientras que la vulnerabilidad con el número CVE-2024-31454 permite a los usuarios violar la integridad de un solo archivo cargado por otro usuario escribiendo datos allí y no le permite cargar nuevos archivos al depósito. Por lo tanto, las vulnerabilidades se reproducen de manera diferente, requieren diferentes recomendaciones de seguridad y afectan a diferentes objetos de la lógica empresarial de la aplicación.","source":"nvd"}],"published":"2024-04-05T17:15:24.000Z","modified":"2026-09-10T03:50:12.873Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-434"],"affected":[{"ranges":[{"version":"< 2.2.0","status":"affected"}],"vendor":"psi-4ward","product":"psitransfer","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"2.2.0","status":"affected"}],"vendor":"psi-4ward","product":"psitransfer","cpe":"cpe:2.3:a:psi-4ward:psitransfer:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.2.0"}],"ecosystem":"npm","package":"psitransfer","purl":"pkg:npm/psitransfer","source":"ghsa"}],"references":[{"url":"https://github.com/psi-4ward/psitransfer/security/advisories/GHSA-xg8v-m2mh-45m6","tags":["web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/psi-4ward/psitransfer/commit/b9853c97e6911e1c1c5341245ca1eb363fda5269","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31453","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/psi-4ward/psitransfer","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-07-31T18:09:19.798Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-31453","url":"https://www.cve.org/CVERecord?id=CVE-2024-31453","licence":"CVE Terms of Use","modified":"2024-08-02T01:52:56.956Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xg8v-m2mh-45m6","url":"https://github.com/advisories/GHSA-xg8v-m2mh-45m6","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:12.873Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-31453","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31453","licence":"Public domain","modified":"2026-06-17T07:28:27.327Z"}],"updatedAt":"2026-11-25T22:58:38.961Z","epss":{"score":0.00651,"percentile":0.45966,"date":"2026-11-30T12:00:22.000Z"}}