Browse / CVEs / CVE-2022-30512
CVE-2022-30512· school dormitory management system project / school dormitory management system· CWE-89
School Dormitory Management System 1.0 - SQL Injection
School Dormitory Management System 1.0 contains a SQL injection vulnerability via accounts/payment_history.php:31. An attacker can possibly obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.
Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation.
Fix
Apply the latest patch or update provided by the vendor to fix the SQL Injection vulnerability in the School Dormitory Management System 1.0.
How to confirm it
Send: GET {{BaseURL}}/dms/admin/accounts/payment_history.php?account_id=2%27
Positive when: contains "Fatal error" and "Uncaught Error: Call to a member function fetch_assoc()" and "<th class=\"\">Month of</th>" AND contains in header "text/html" AND status 200Run it with nuclei: nuclei -id CVE-2022-30512 -u <target>
The full check
id: CVE-2022-30512
info:
name: School Dormitory Management System 1.0 - SQL Injection
author: tess
severity: critical
description: |
School Dormitory Management System 1.0 contains a SQL injection vulnerability via accounts/payment_history.php:31. An attacker can possibly obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation.
remediation: |
Apply the latest patch or update provided by the vendor to fix the SQL Injection vulnerability in the School Dormitory Management System 1.0.
reference:
- https://github.com/bigzooooz/CVE-2022-30512
- https://www.sourcecodester.com/php/15319/school-dormitory-management-system-phpoop-free-source-code.html
- https://nvd.nist.gov/vuln/detail/CVE-2022-30512
- https://github.com/SYRTI/POC_to_review
- https://github.com/WhooAmii/POC_to_review
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2022-30512
cwe-id: CWE-89
epss-score: 0.09706
epss-percentile: 0.95551
cpe: cpe:2.3:a:school_dormitory_management_system_project:school_dormitory_management_system:1.0:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: school_dormitory_management_system_project
product: school_dormitory_management_system
tags: cve,cve2022,sqli,school_dormitory_management_system_project,vuln
http:
- method: GET
path:
- '{{BaseURL}}/dms/admin/accounts/payment_history.php?account_id=2%27'
matchers-condition: and
matchers:
- type: word
part: body
words:
- 'Fatal error'
- 'Uncaught Error: Call to a member function fetch_assoc()'
- '<th class="">Month of</th>'
condition: and
- type: word
part: header
words:
- text/html
- type: status
status:
- 200References
- https://github.com/bigzooooz/CVE-2022-30512
- https://www.sourcecodester.com/php/15319/school-dormitory-management-system-phpoop-free-source-code.html
- https://nvd.nist.gov/vuln/detail/CVE-2022-30512
- https://github.com/SYRTI/POC_to_review
- https://github.com/WhooAmii/POC_to_review
Use this check only on systems you are authorised to test. Where the data comes from