### [CVE-2022-4164](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-4164) ![](https://img.shields.io/static/v1?label=Product&message=Contest%20Gallery%20Pro&color=blue) ![](https://img.shields.io/static/v1?label=Product&message=Contest%20Gallery&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=%3D%200%20&color=brighgreen) ![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-89%20SQL%20Injection&color=brighgreen) ### Description The Contest Gallery WordPress plugin before 19.1.5.1, Contest Gallery Pro WordPress plugin before 19.1.5.1 do not escape the cg_multiple_files_for_post POST parameter before concatenating it to an SQL query in 0_change-gallery.php. This may allow malicious users with at least author privilege to leak sensitive information from the site's database. ### POC #### Reference - https://bulletin.iese.de/post/contest-gallery_19-1-4-1_11 - https://bulletin.iese.de/post/contest-gallery_19-1-4-1_11 - https://wpscan.com/vulnerability/57fff222-2c64-4b52-86cd-ab8db4541627 - https://wpscan.com/vulnerability/57fff222-2c64-4b52-86cd-ab8db4541627 #### Github No PoCs found on GitHub currently.