Rapid7 Vulnerability & Exploit Database

Simple PHP Blog Remote Command Execution

Back to Search

Simple PHP Blog Remote Command Execution

Disclosed
08/25/2005
Created
05/30/2018

Description

This module combines three separate issues within The Simple PHP Blog (<= 0.4.0) application to upload arbitrary data and thus execute a shell. The first vulnerability exposes the hash file (password.txt) to unauthenticated users. The second vulnerability lies within the image upload system provided to logged-in users; there is no image validation function in the blogger to prevent an authenticated user from uploading any file type. The third vulnerability occurs within the blog comment functionality, allowing arbitrary files to be deleted.

Author(s)

  • Matteo Cantoni <goony@nothink.org>
  • aushack <patrick@osisecurity.com.au>

Platform

PHP

Architectures

php

Development

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

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;