CVE-2025-27410

PwnDoc is a penetration test reporting application. Prior to version 1.2.0, the backup restore functionality is vulnerable to path traversal in the TAR entry's name, allowing an attacker to overwrite any file on the system with their content. By overwriting an included `.js` file and restarting the container, this allows for Remote Code Execution as an administrator. The remote code execution occurs because any user with the `backups:create` and `backups:update` (only administrators by default) is able to overwrite any file on the system. Version 1.2.0 fixes the issue.
Configurations

Configuration 1 (hide)

cpe:2.3:a:pwndoc_project:pwndoc:*:*:*:*:*:*:*:*

History

15 Apr 2025, 20:19

Type Values Removed Values Added
First Time Pwndoc Project pwndoc
Pwndoc Project
CPE cpe:2.3:a:pwndoc_project:pwndoc:*:*:*:*:*:*:*:*
References () https://github.com/pwndoc/pwndoc/blob/14acb704891245bf1703ce6296d62112e85aa995/backend/src/routes/backup.js#L527 - () https://github.com/pwndoc/pwndoc/blob/14acb704891245bf1703ce6296d62112e85aa995/backend/src/routes/backup.js#L527 - Product
References () https://github.com/pwndoc/pwndoc/commit/98f284291d73d3a0b11d3181d845845c192d1080 - () https://github.com/pwndoc/pwndoc/commit/98f284291d73d3a0b11d3181d845845c192d1080 - Patch
References () https://github.com/pwndoc/pwndoc/releases/tag/v1.2.0 - () https://github.com/pwndoc/pwndoc/releases/tag/v1.2.0 - Release Notes
References () https://github.com/pwndoc/pwndoc/security/advisories/GHSA-mxw8-vgvx-89hx - () https://github.com/pwndoc/pwndoc/security/advisories/GHSA-mxw8-vgvx-89hx - Exploit, Vendor Advisory

04 Mar 2025, 21:15

Type Values Removed Values Added
References () https://github.com/pwndoc/pwndoc/security/advisories/GHSA-mxw8-vgvx-89hx - () https://github.com/pwndoc/pwndoc/security/advisories/GHSA-mxw8-vgvx-89hx -
Summary
  • (es) PwnDoc es una aplicación de informes de pruebas de penetración. Antes de la versión 1.2.0, la función de restauración de copias de seguridad era vulnerable a la navegación por rutas en el nombre de la entrada TAR, lo que permitía a un atacante sobrescribir cualquier archivo del sistema con su contenido. Al sobrescribir un archivo `.js` incluido y reiniciar el contenedor, se permite la ejecución remota de código como administrador. La ejecución remota de código se produce porque cualquier usuario con `backups:create` y `backups:update` (solo administradores de forma predeterminada) puede sobrescribir cualquier archivo del sistema. La versión 1.2.0 soluciona el problema.

28 Feb 2025, 21:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-02-28 21:15

Updated : 2025-04-16 13:04


NVD link : CVE-2025-27410

Mitre link : CVE-2025-27410

CVE.ORG link : CVE-2025-27410


JSON object : View

Products Affected

pwndoc_project

  • pwndoc
CWE
CWE-22

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

CWE-23

Relative Path Traversal