Points Management System For Gamification, Ranks, Badges, and Loyalty Rewards Program – myCred <= 4.0.3 - Authenticated (Contributor+) SQL Injection via Badge Link Click Requirement

Medium 6.5 CWE-89Fixed in 4.0.4
ID
WPSEC-2026-3560
Plugin
Points Management System For Gamification, Ranks, Badges, and Loyalty Rewards Program – myCred (mycred)
Affected
from 2.9 before 4.0.4
Remediation
Update to 4.0.4 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-89
Usage
Plugin Medium · Affected versions Medium among sites WPSec scans, 2026-11-20
Attack surface
Points Management System For Gamification, Ranks, Badges, and Loyalty Rewards Program – myCred on WPSec AttackSurface
Fix released
Published

Description

The myCred plugin for WordPress is vulnerable to SQL Injection via the Badge Plus link click requirement 'link' value in all versions up to, and including, 4.0.3 due to the value being concatenated directly into a SQL query without escaping or preparation. The requirement is saved through the mycred_save_badge_requirements AJAX action, which only checked the generic edit_posts capability and did not check access to the specific badge, and nested requirement values were not sanitized. This makes it possible for authenticated attackers, with Contributor-level access and above, to append additional SQL queries to existing queries and extract sensitive information from the database.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON or Markdown · All advisories: JSON, RSS

License: CC BY 4.0