Rapid7’s 2026 Global Cybersecurity Summit is now available on-demand.Watch sessions.
Rapid7

module

ISPConfig language_edit.php PHP Code Injection

Disclosed
Oct 24, 2023
Created
Jul 9, 2025

Description

This module exploits a PHP code injection vulnerability in ISPConfig's
language_edit.php file. The vulnerability occurs when the `admin_allow_langedit`
setting is enabled, allowing authenticated administrators to inject arbitrary
PHP code through the language editor interface.

This module will automatically check if the required `admin_allow_langedit`
permission is enabled, and attempt to enable it if it's disabled (requires
admin credentials with system configuration access).

The exploit works by injecting a PHP payload into a language file, which
is then executed when the file is accessed. The payload is base64 encoded
and written using PHP's file_put_contents function.

Authors

syfi
Egidio Romano

Platform

PHP

Architectures

php

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/ispconfig_lang_edit_php_code_injection
msf exploit(ispconfig_lang_edit_php_code_injection) > show targets
...targets...
msf exploit(ispconfig_lang_edit_php_code_injection) > set TARGET < target-id >
msf exploit(ispconfig_lang_edit_php_code_injection) > show options
...show and set options...
msf exploit(ispconfig_lang_edit_php_code_injection) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.