CVE-2024-13496
Published: 22 January 2025
Description
The GamiPress – Gamification plugin to reward points, achievements, badges & ranks in WordPress plugin for WordPress is vulnerable to time-based SQL Injection via the ‘orderby’ parameter in all versions up to, and including, 7.3.1 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. NOTE: This vulnerability was previously published as being fixed in version 7.2.2 which was incorrect. The correct fixed version is 7.3.2.
Security Summary
CVE-2024-13496 is a time-based SQL injection vulnerability in the GamiPress Gamification plugin for WordPress, affecting all versions up to and including 7.3.1. The flaw arises from insufficient escaping of the user-supplied 'orderby' parameter combined with a lack of sufficient preparation in the existing SQL query, enabling attackers to append malicious SQL payloads.
Unauthenticated attackers can exploit this vulnerability remotely over the network with low attack complexity and no user interaction required. Exploitation allows appending additional SQL queries to ongoing ones, enabling extraction of sensitive information from the database, as reflected in the CVSS v3.1 base score of 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N) and associated CWE-89.
The vulnerability is patched in GamiPress version 7.3.2; a prior report incorrectly stated it was fixed in 7.2.2. Mitigation involves updating to the fixed version, with relevant code changes documented in WordPress plugin trac changeset 3226227 and further analysis available at https://abrahack.com/posts/gamipress-sqli/.
Details
- CWE(s)