Exploit the possiblities

InvoicePlane 1.4.10 File Upload / Cross Site Scripting

InvoicePlane 1.4.10 File Upload / Cross Site Scripting
Posted May 23, 2017
Authored by Jasveer Singh | Site sec-consult.com

InvoicePlane version 1.4.10 suffers from cross site scripting and remote file upload vulnerabilities.

tags | exploit, remote, vulnerability, xss, file upload
MD5 | 1373e25234204c3cbef3076b84706f7d

InvoicePlane 1.4.10 File Upload / Cross Site Scripting

Change Mirror Download
SEC Consult Vulnerability Lab Security Advisory < 20170523-0 >
=======================================================================
title: Arbitrary File Upload & Stored XSS
product: InvoicePlane
vulnerable version: 1.4.10
fixed version: 1.5.2
CVE number: -
impact: High
homepage: https://invoiceplane.com/
found: 2017-04-10
by: Jasveer Singh (Office Kuala Lumpur)
SEC Consult Vulnerability Lab

An integrated part of SEC Consult
Bangkok - Berlin - Linz - Luxembourg - Montreal - Moscow
Kuala Lumpur - Singapore - Vienna (HQ) - Vilnius - Zurich

https://www.sec-consult.com

=======================================================================

Vendor description:
-------------------
"InvoicePlane is a self-hosted open source application for managing your
quotes, invoices, clients and payments."

Source: https://invoiceplane.com/


Business recommendation:
------------------------
By exploiting the vulnerabilities documented in this advisory, an attacker can
fully compromise the web server which has InvoicePlane installed. Potentially
sensitive invoice data might get exposed through this attack.

SEC Consult recommends not to attach InvoicePlane to the network until a
thorough security review has been performed by security professionals and all
identified issues have been resolved.


Vulnerability overview/description:
-----------------------------------
1. Arbitrary File Upload
An authenticated user can upload a malicious file to the webserver. It is
possible for an attacker to upload a script which is able to compromise the
webserver.

2. Stored Cross Site Scripting
This vulnerability allows an authenticated user to inject malicious client
side script which will be executed in the browser of users if they visit
the manipulated site.


Proof of concept:
-----------------
1. Arbitrary File Upload
Below URL is used to upload the malicious file through the attachment
segment.

URL : http://$DOMAIN/index.php/invoices/view/$INVOICE-ID


2. Stored Cross Site Scripting
The following parameters have been found to be vulnerable against
stored cross site scripting. Furthermore, there exist many more
vulnerable parameters.

The following payload shows a simple alert message box:
URL : http://$DOMAIN/index.php/clients/view/$Client-ID
METHOD : POST
PAYLOAD : client_name="onmouseover=prompt("XSS")>

URL : http://$DOMAIN/index.php/index.php/users/form/$User-ID
METHOD : POST
PAYLOAD : user_name="onmouseover=prompt("XSS1")>


Vulnerable / tested versions:
-----------------------------
InvoicePlane version 1.4.10 has been tested. This version was the latest
at the time the security vulnerabilities were discovered.


Vendor contact timeline:
------------------------
2017-04-11: Contacting vendor through mail@invoiceplane.com
2017-04-11: Vendor requests security advisory to be shared over unencrypted
channel.
2017-04-23: Vendor released patch version 1.5.0 however not all
vulnerabilities were fixed properly.
2017-05-07: Patch (1.5.2) released by the vendor which fixes all issues
2017-05-23: Public release of security advisory.


Solution:
---------
Upgrade to InvoicePlane 1.5.2 as version 1.5.0 doesn't fix all the
identified vulnerabilities:

https://community.invoiceplane.com/t/topic/4258


Workaround:
-----------
None


Advisory URL:
-------------
https://www.sec-consult.com/en/Vulnerability-Lab/Advisories.htm


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

SEC Consult Vulnerability Lab

SEC Consult
Bangkok - Berlin - Linz - Luxembourg - Montreal - Moscow
Kuala Lumpur - Singapore - Vienna (HQ) - Vilnius - Zurich

About SEC Consult Vulnerability Lab
The SEC Consult Vulnerability Lab is an integrated part of SEC Consult. It
ensures the continued knowledge gain of SEC Consult in the field of network
and application security to stay ahead of the attacker. The SEC Consult
Vulnerability Lab supports high-quality penetration testing and the evaluation
of new offensive and defensive technologies for our customers. Hence our
customers obtain the most current information about vulnerabilities and valid
recommendation about the risk profile of new technologies.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Interested to work with the experts of SEC Consult?
Send us your application https://www.sec-consult.com/en/Career.htm

Interested in improving your cyber security with the experts of SEC Consult?
Contact our local offices https://www.sec-consult.com/en/About/Contact.htm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Mail: research at sec-consult dot com
Web: https://www.sec-consult.com
Blog: http://blog.sec-consult.com
Twitter: https://twitter.com/sec_consult

EOF Jasveer Singh / @2017

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

Want To Donate?


Bitcoin: 18PFeCVLwpmaBuQqd5xAYZ8bZdvbyEWMmU

File Archive:

January 2018

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2018 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close