{
    "data_type": "CVE",
    "data_format": "MITRE",
    "data_version": "4.0",
    "CVE_data_meta": {
        "ID": "CVE-2022-2017",
        "TITLE": "SourceCodester Prison Management System Visit view_visit.php sql injection",
        "REQUESTER": "cna@vuldb.com",
        "ASSIGNER": "cna@vuldb.com",
        "STATE": "PUBLIC"
    },
    "generator": "vuldb.com",
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "SourceCodester",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "Prison Management System",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "1.0"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-89 SQL Injection"
                    }
                ]
            }
        ]
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "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": {
        "cvss": {
            "version": "3.1",
            "baseScore": "4.7",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L"
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://github.com/ch0ing/vul/blob/main/WebRay.com.cn/Prison%20Management%20System(SQLI)2.md",
                "refsource": "MISC",
                "name": "https://github.com/ch0ing/vul/blob/main/WebRay.com.cn/Prison%20Management%20System(SQLI)2.md"
            },
            {
                "url": "https://vuldb.com/?id.201365",
                "refsource": "MISC",
                "name": "https://vuldb.com/?id.201365"
            }
        ]
    }
}