Description
This module exploits a vulnerability in Pterodactyl Panel before version 1.11.11 that allows unauthenticated remote code execution through improper handling of locale file operations. The vulnerability exists in the locale.json endpoint which allows path traversal and arbitrary file creation. Code execution is in the context of the user running the webserver.
The exploit leverages PEAR (PHP Extension and Application Repository) for command injection by creating a malicious payload file in the /tmp through path traversal, then executing it via PHP execution with pearcmd.
Module options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/linux/http/pterodactyl/locales_locale_jsonmsf undefined(locales_locale_json) > show actions ...actions...msf undefined(locales_locale_json) > set ACTION < action-name >msf undefined(locales_locale_json) > show options ...show and set options...msf undefined(locales_locale_json) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub