PT-2025-7627 · Ghosts · Ghosts
Xbow-Security
·
Publicado
2025-02-19
·
Atualizado
2025-02-21
·
CVE-2025-27092
CVSS v4.0
8.7
Alta
| Vetor | AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
GHOSTS versions 8.0.0.0 through 8.2.7.89
Description
A path traversal vulnerability was discovered in GHOSTS that allows an attacker to access files outside of the intended directory through the photo retrieval endpoint. The vulnerability exists in the "/api/npcs/{id}/photo" endpoint, which is designed to serve profile photos for NPCs (Non-Player Characters) but fails to properly validate and sanitize file paths. When an NPC is created with a specially crafted
photoLink value containing path traversal sequences (../, .., etc.), the application processes these sequences without proper sanitization. This allows an attacker to traverse directory structures and access files outside of the intended photo directory, potentially exposing sensitive system files. The vulnerability is particularly severe because it allows reading arbitrary files from the server's filesystem with the permissions of the web application process, which could include configuration files, credentials, or other sensitive data.Recommendations
For GHOSTS versions 8.0.0.0 through 8.2.7.89, upgrade to version 8.2.7.90 to address the vulnerability. As a temporary workaround, consider restricting access to the "/api/npcs/{id}/photo" endpoint until the issue is resolved. Avoid using the
photoLink parameter in the affected API endpoint until the issue is resolved.Exploit
Correção
Path traversal
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾
Enumeração de Fraquezas
Identificadores relacionados
Produtos afetados
Ghosts