SecurityContext

CVE-2022-2017: SourceCodester Prison Management System - SQL Injection

  • Cve: CVE-2022-2017
  • Name: SourceCodester Prison Management System - SQL Injection
  • Description: A vulnerability was found in SourceCodester Prison Management System 1.0. It has been rated as critical. This issue affects some unknown processing of the file /pms/admin/visits/view_visit.php of the component Visit Handler. The manipulation of the argument id with the input 2%27and%201=2%20union%20select%201,2,3,4,5,6,7,user(),database()--+ leads to sql injection. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used.
  • Impact: Attackers can execute arbitrary SQL commands, potentially leading to data theft, data tampering, or full database compromise.
  • Remediation: Apply input validation and parameterized queries, update to the latest version if available.
  • Vulnerability type: sql_injection
  • Vulnerability impact: information_disclosure, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.2
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00725
  • Epss percentile: 0.55015
  • Assignee: [email protected]
  • Published at: 2022-06-09T16:15:08Z
  • Age in days: 1629
  • Modified at: 2026-06-17T04:41:08Z
  • References total: 2
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-2017
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

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

References

UrlSourceTags
https://vuldb.com/?id.201365nvdThird Party Advisory
https://github.com/ch0ing/vul/blob/main/WebRay.com.cn/Prison%20Management%20System%28SQLI%292.mdnvd

Products

ProductAffectedPlatform boundSourcesUrl
prison_management_system_project:prison_management_system= 1.0nonvd/v1/products/prison_management_system_project/prison_management_system

Index

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

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 2
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports