Description
WebPageTest version 2.6 and earlier contains an arbitrary file upload vulnerability in the resultimage.php script. The application fails to validate or sanitize user-supplied input before saving uploaded files to a publicly accessible directory. This flaw allows remote attackers to upload and execute arbitrary PHP code, resulting in full remote code execution under the web server context.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| WPO Foundation | WebPageTest | ≤ 2.6 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
WebPageTest Arbitrary PHP File Upload
exploit/multi/http/webpagetest_upload_exec
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/multi/http/webpagetest_upload_exec.rb exploit
- https://www.exploit-db.com/exploits/19790 exploit
- https://www.exploit-db.com/exploits/20173 exploit
- https://www.broadcom.com/support/security-center/attacksignatures/detail?asid=26148 third-party-advisory
- https://github.com/catchpoint/WebPageTest product
- https://www.vulncheck.com/advisories/webpagetest-arbitrary-php-file-upload-rce third-party-advisory