Quiz and Survey Master <= 8.1.4 - Unauthenticated SQL Injection
Strategic Overview
<= 8.1.4CVE-2023-28787Vulnerability Overview
The Quiz and Survey Master plugin for WordPress is vulnerable to SQL Injection via the 'question_ids_[XX]' cookie in versions up to, and including, 8.1.4 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. This requires the 'Random Questions' setting to be enabled for a given quiz to be exploitable.
Technical Analysis
REMEDIATION: Update to version 8.1.5, or a newer patched version --- IDENTIFIER: CWE-89 (Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
External References
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C