POC详情: 976c049fa1fcb96ee2401246dca8d7e25f352cdd

来源
关联漏洞
标题: Pterodactyl Panel 代码注入漏洞 (CVE-2025-49132)
描述:Pterodactyl Panel是Pterodactyl开源的一个免费的开源游戏服务器管理面板。 Pterodactyl Panel 1.11.11之前版本存在代码注入漏洞,该漏洞源于/locales/locale.json端点未验证locale和namespace参数,可能导致任意代码执行。
描述
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. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。