
A script that gives you the credentials of a Pterodactyl panel vulnerable to CVE-2025-49132
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 ^^
Get the database credentials with the command: python3 CVE-2025-49132_PoC.py.py <url>
users tableAt this point you should have basic pentesting knowledge to know how to get a reverse shell