The Classified Listing – AI-Powered Classified ads & Business Directory plugin for WordPress is vulnerable to Code Injection in all versions up to, and including, 6.1.5. This is due to an inverted condition in the radio/select field type validation (!is_array instead of is_array) that caused the allowlist check to be skipped for every well-formed options array, and a wp_kses_post() call whose return value was discarded, together allowing arbitrary values to be stored in plugin settings that are later written to static PHP configuration files. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary PHP code into plugin-generated static files, allowing execution of malicious code on the server. The attacker must have access to an AJAX settings endpoint lacking a sufficient capability check; a missing authentication guard (one of the two auth_check additions in this release) allowed Subscriber-level users to reach the settings save handler.
Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy.
CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE®). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy.