SecurityContext

CVE-2022-4222: SourceCodester Canteen Management System - SQL Injection

  • Cve: CVE-2022-4222
  • Name: SourceCodester Canteen Management System - SQL Injection
  • Description: A vulnerability was found in SourceCodester Canteen Management System. It has been rated as critical. This issue affects the function query of the file ajax_invoice.php of the component POST Request Handler. The manipulation of the argument search leads to sql injection. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used. The associated identifier of this vulnerability is VDB-214523.
  • Impact: Remote attackers can execute arbitrary SQL commands, potentially leading to data theft, data loss, or full system compromise.
  • Remediation: Sanitize and parameterize the 'search' input; update to the latest version if available.
  • Vulnerability type: sql_injection
  • Vulnerability impact: information_disclosure, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00736
  • Epss percentile: 0.55396
  • Assignee: [email protected]
  • Published at: 2022-11-30T07:15:09Z
  • Age in days: 1455
  • Modified at: 2026-06-17T05:20:17Z
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-4222
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-707Improper Neutralization
CWE-89Improper Neutralization of Special Elements used in an SQL Command

Public exploits

UrlSourceAdded date
https://www.jianshu.com/p/bda61089bf1dnvd2022-11-30

References

UrlSourceTags
https://www.jianshu.com/p/bda61089bf1dnvdExploit, Third Party Advisory
https://vuldb.com/?id.214523nvdThird Party Advisory, VDB Entry

Products

ProductAffectedPlatform boundSourcesUrl
canteen_management_system_project:canteen_management_system= 1.0nonvd/v1/products/canteen_management_system_project/canteen_management_system

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2022-11-30
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts