exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

WordPress Resume Submissions / Job Postings 2.5.1 Shell Upload

WordPress Resume Submissions / Job Postings 2.5.1 Shell Upload
Posted Jul 13, 2012
Authored by Chris Kellum

WordPress Resume Submissions and Job Postings plugin version 2.5.1 suffers from a remote shell upload vulnerability.

tags | exploit, remote, shell
SHA-256 | abb9002f357afe4cc499af58b4cec029b8eafcb2610d8311454bcd553f75f567

WordPress Resume Submissions / Job Postings 2.5.1 Shell Upload

Change Mirror Download
# Exploit Title: WordPress Resume Submissions & Job Postings v2.5.1 Unrestricted File Upload
# Date: 7/9/12
# Exploit Author: Chris Kellum
# Vendor Homepage: http://www.geerservices.com/
# Software Link: http://downloads.wordpress.org/plugin/resume-submissions-job-postings.2.5.1.zip
# Version: 2.5.1



=====================
Vulnerability Details
=====================

When submitting a resume, the "file attachment" upload does not restrict any file types.

Attachments are uploaded to the following folder:

/wp-content/uploads/rsjp/attachments/

File names are rewritten by the following code in lines 193-197 of /wp-content/plugins/resume-submissions-job-postings/includes/functions.php:

foreach( $_FILES[$input]['error'] as $key => $error ){

if ( $error == UPLOAD_ERR_OK ) {

$tmpName = $_FILES[$input]['tmp_name'][$key];

$ext = getExtension( $_FILES[$input]['name'][$key] );

$name = md5( date( 'Y-m-d H:i:s' ) ) . '-' . $count . '.' . $ext;

================
Proof of Concept
================

When submitting the resume form, attach a shell (c99.php, etc.) or file of your choice as a "file attachment."

After submitting the form, navigate to /wp-content/uploads/rsjp/attachments/ to find all uploaded attachments.

Locate your file by searching for the file extension (.php, etc.) or by file size.

Alternatively, your uploaded file can be accessed directly by understanding how the plugin renames files.

The plugin creates an MD5 hash of the server date and time, appends a hyphen and the number of the upload, followed by the file extension.

Example:

If server date and time is 2012-07-09 21:22:20 and only one file is attached, file name will be output as 813a2040e8ef7fe3661972696409b562-1.php, which can be located at /wp-content/uploads/rsjp/attachments/813a2040e8ef7fe3661972696409b562-1.php

To retrieve server date and time, use an intercepting proxy such as Burp Suite and check the history to locate the date/time that the server returned the 200 code after submitting the resume form.

In PoC, 1 second was added to the time in order to properly locate the uploaded file. If the 200 code was sent at 2012-07-09 21:22:19, MD5 encoding 2012-07-09 21:22:20 would create the proper file name.

Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    0 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close