目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1110

100%

CVE-2025-49132 PoC — Pterodactyl Panel 代码注入漏洞

来源
关联漏洞
标题:Pterodactyl Panel 代码注入漏洞 (CVE-2025-49132)
Description:Pterodactyl Panel是Pterodactyl开源的一个免费的开源游戏服务器管理面板。 Pterodactyl Panel 1.11.11之前版本存在代码注入漏洞,该漏洞源于/locales/locale.json端点未验证locale和namespace参数,可能导致任意代码执行。
Description
A script that gives you the credentials of a Pterodactyl panel vulnerable to CVE-2025-49132
介绍
# CVE-2025-49132
Pterodactyl is a free, open-source game server management panel. Prior to version 1.11.11, using the /locales/locale.json with the locale and namespace query parameters, a malicious actor is able to execute arbitrary code without being authenticated. With the ability to execute arbitrary code it could be used to gain access to the Panel's server, read credentials from the Panel's config, extract sensitive information from the database, access files of servers managed by the panel, etc. This issue has been patched in version 1.11.11. There are no software workarounds for this vulnerability, but use of an external Web Application Firewall (WAF) could help mitigate this attack.
---
## How does it work
The attacker sends a GET request to `/locales/locale.json`, if the response returns you a JSON and the URL doesn't contain the parameter `hash=` then it's vulnerable to CVE-2025-49132.

To exploit the vulnerability you have to use the parameters `locale=` and `namespace=` at the same time to read __ONLY PHP FILES__ and you will get a JSON response with the variables stored in the PHP file you selected.

For example: `/locales/locale.json?locale=../../../pterodactyl&namespace=config/database`

To get more interesting PHP files to read you can check the official Pterodactyl repository ^^

## How to use the script
Get the database credentials with the command: `python3 CVE-2025-49132_PoC.py.py <url>`
## How to get access to a Pterodactyl panel as administrator with CVE-2025-49132
1. Get the database credentials
2. Find a way to establish a connection with their database using the credentials you have found (por 3306 open, local phpmyadmin, or directly phpmyadmin.co)
3. If you managed to get access to the database, congrats! you only have to create yourself a Pterodactyl account in the `users` table
4. Coonect to the panel with the user you created
5. Now you are connected to the panel as administrator and have access to everything :)

At this point you should have basic pentesting knowledge to know how to get a reverse shell
文件快照

[4.0K] /data/pocs/976c049fa1fcb96ee2401246dca8d7e25f352cdd ├── [2.1K] CVE-2025-49132_PoC.py └── [2.0K] README.md 0 directories, 2 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →