# GamiPress <= 8.1.8 - Unauthenticated Insecure Direct Object Reference to User Earnings Disclosure via gamipress_get_user_earnings AJAX Action

- **ID:** WPSEC-2026-4302
- **Plugin:** GamiPress – Gamification plugin to reward points, badges & ranks in WordPress, now with AI (`gamipress`), https://wordpress.org/plugins/gamipress/
- **Affected versions:** from 1.4.9 before 8.2.0
- **Fixed in:** 8.2.0 (Update to 8.2.0 or later.)
- **Severity:** Medium 5.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N)
- **Weakness:** CWE-639
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-12-01)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/gamipress
- **Fix released:** 2026-11-30
- **Published:** 2026-12-01
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4302/

## Description

The GamiPress plugin for WordPress is vulnerable to Insecure Direct Object Reference in versions 1.4.9 up to, and including, 8.1.8 via the gamipress_get_user_earnings AJAX action. This is due to the handler being registered for logged-out users, checking only a nonce that is printed publicly, and rendering the earnings shortcode with whatever 'user_id' and 'current_user' attributes the request supplies. This makes it possible for unauthenticated attackers to view the earnings history (points, achievements, steps and ranks) of any user, or of all users, on the site.

## References

- https://wpsec.com/vuln/WPSEC-2026-4302/
- https://plugins.svn.wordpress.org/gamipress/tags/8.2.0/
- https://wordpress.org/plugins/gamipress/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4302/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
