My Calendar <= 3.8.7 - Unauthenticated Privilege Escalation to 'mcs' Parameter via Reflected Shortcode Injection into 'above' Attribute
- Published
- Last modified
- Status
- published
- Known exploitation
- Not listed in CISA KEV
- Public exploit
- None on Exploit-DB
- Exploitation: none
- Automatable: yes
- Technical impact: total
?
Decision points from CISA's Vulnrichment, assessed (SSVC 2.0.3).
SSVC documentationSummary
The My Calendar – Accessible Event Manager plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 3.8.7. The public `mcs` GET parameter is reflected into post content unsanitized before WordPress core's `do_shortcode` filter runs, allowing an unauthenticated attacker to inject a nested `[my_calendar above=...]` shortcode; `mc_generate_calendar_nav()` then splits the `above` attribute on commas and dispatches each element via `call_user_func()` with no authentication, authorization, or callable allowlist check. This makes it possible for unauthenticated attackers to invoke arbitrary loaded PHP functions, enabling a call chain in which the shortcode `$params` array is passed to `edit_user()` — which PHP coerces to integer `1` as the `$user_id` argument — overwriting the credentials of the initial Administrator account (user ID 1) and granting the attacker full wp-admin access. Exploitation is trivially reachable via the plugin's auto-generated `/my-calendar/` page, which is publicly accessible by default upon plugin activation.
Affected versions
- joedolson My Calendar – Accessible Event Manager
through 3.4.24; From 3.5 · through 3.5.21; From 3.6 · through 3.6.17; From 3.7 · through 3.7.17; From 3.8 · through 3.8.7
References 8
plugins.trac.wordpress.org
- browser/my-calendar/tags/3.8.6/my-calendar-navigation.php#L248
- browser/my-calendar/tags/3.8.6/my-calendar-navigation.php#L260
- browser/my-calendar/tags/3.8.6/my-calendar-search.php#L221
- browser/my-calendar/tags/3.8.6/my-calendar-search.php#L170
- browser/my-calendar/tags/3.8.6/my-calendar-shortcodes.php#L102
- browser/my-calendar/tags/3.8.6/my-calendar-output.php#L1622
- changeset?reponame=&old=3746389%40my-calendar&new=3746389%40my-calendar