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

flatCore CMS 1.5.5 Cross Site Scripting / Arbitrary File Upload

flatCore CMS 1.5.5 Cross Site Scripting / Arbitrary File Upload
Posted Aug 8, 2020
Authored by Farhan Rahman, Azrul Ikhwan Zulkifli | Site sec-consult.com

flatCore CMS versions 1.5.5 and below suffer from cross site scripting and arbitrary file upload vulnerabilities.

tags | exploit, arbitrary, vulnerability, xss, file upload
SHA-256 | 9815638f104a3e7980277234b49f1ecb97d771220babb5af06d2de42d18f2af1

flatCore CMS 1.5.5 Cross Site Scripting / Arbitrary File Upload

Change Mirror Download
SEC Consult Vulnerability Lab Security Advisory < 20200807-0 >
=======================================================================
title: Multiple Vulnerabilities
product: flatCore CMS
vulnerable version: <=1.5.5
fixed version: 1.5.7
CVE number: -
impact: High
homepage: https://flatcore.org/
found: 2020-03-28
by: Farhan Rahman (Office Malaysia)
Azrul Ikhwan Zulkifli (Office Malaysia)
SEC Consult Vulnerability Lab

An integrated part of SEC Consult
Europe | Asia | North America

https://www.sec-consult.com

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

Vendor description:
-------------------
"flatCore is based on PHP and PDO/SQLite. The Core is as
minimalistic as possible, but can be easily extended by
the modular structure. If you are looking for a solution
to edit your website live and with ease, flatCore may be
your buddy."

Source: https://flatcore.org/


Business recommendation:
------------------------
Update to the latest version of flatCore CMS.
An in-depth security analysis performed by security professionals is highly
advised, as the software may be affected from further security issues.


Vulnerability overview/description:
-----------------------------------
1. Stored Cross Site Scripting (Authenticated user)
This vulnerability allows an authenticated user (admin) to inject a malicious
client side script which will be executed in the browser of a user if he
visits the manipulated URL.
In this case, the payload will be executed when the user visits any page that
contains the injected malicious client side script.

2. Upload of arbitrary files (Authenticated user)
It was identified that an authenticated user (admin) has the possibility to
upload malicious files without any restriction. In this specific case,
arbitrary server side PHP code such as web shells can be uploaded. As a result
the attacker can run arbitrary code on the server side with the privileges of
the web server. This could lead to a full system compromise.


Proof of concept:
-----------------
1. Stored Cross Site Scripting (Authenticated user)
The following parameters have been found to be vulnerable to
stored cross site scripting attacks.

(a)
URL : http://$DOMAIN/acp/acp.php?tn=pages&sub=edit&editpage=1
METHOD : POST
PARAMETER : page_linkname, page_title, page_content, page_extracontent
PAYLOAD : aaaa%3Cscript%3Ealert%28document.cookie%29%3C%2Fscript%3E

Go to http://$DOMAIN/ , and the XSS will be executed.

(b)
URL : http://$DOMAIN/acp/acp.php?tn=system&sub=sys_pref
METHOD : POST
PARAMETER : prefs_pagename, prefs_pagetitle, prefs_pagesubtitle
PAYLOAD : aaaa%3Cscript%3Ealert%28document.cookie%29%3C%2Fscript%3E

Go to http://$DOMAIN/ , and the XSS will be executed.


2. Upload of arbitrary files (Authenticated user)
Go to Upload Files > Choose destination > files.

Upload a desired PHP web shell as the shell.php file.

Once uploaded, to execute the webshell, go to
http://$DOMAIN/content/files/shell.php


Vulnerable / tested versions:
-----------------------------
flatCore CMS version 1.5.5 has been tested, which was the latest version
available at the time of the test. Previous versions may also be affected.


Vendor contact timeline:
------------------------
2020-04-02: Contacting vendor through support@flatcore.org.
2020-04-28: Vendor developer asked for details. Sending details.
2020-06-02: Follow-up with vendor; no response.
2020-06-08: Follow-up with vendor; no response.
2020-06-10: Vendor requested to give them some times to patch
the vulnerabilities.
2020-07-10: Follow-up with vendor; no response.
2020-07-22: Vendor fixed the reported issues, and release the new version
(1.5.7) at their website.
2020-08-07: Public release of security advisory


Solution:
---------
The fixed version 1.5.7 is available at the vendor's download section:
* https://flatcore.org/downloads/


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


Advisory URL:
-------------
https://sec-consult.com/en/vulnerability-lab/advisories/index.html


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

SEC Consult Vulnerability Lab

SEC Consult
Europe | Asia | North America

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://sec-consult.com/en/career/index.html

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

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 F. Rahman, A. Zulkifli / @2020


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
    42 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