Description
osCommerce versions up to and including 2.2 RC2a contain a vulnerability in its administrative file manager utility (admin/file_manager.php). The interface allows file uploads and edits without sufficient input validation or access control. An unauthenticated attacker can craft a POST request to upload a .php file containing arbitrary code, which is then executed by the server.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| osCommerce | osCommerce | ≤ 2.2 RC2a | — |
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
-
osCommerce 2.2 Arbitrary PHP Code Execution
exploit/unix/webapp/oscommerce_filemanager
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/unix/webapp/oscommerce_filemanager.rb exploit
- https://www.exploit-db.com/exploits/9556 exploit
- https://www.exploit-db.com/exploits/16899 exploit
- https://www.oscommerce.com/ product
- https://www.vulncheck.com/advisories/oscommerce-arbitrary-php-code-execution third-party-advisory