CVE-2024-8485CWE-639

REST API TO MiniProgram <= 4.7.1 - Unauthenticated Arbitrary User Email Update and Privilege Escalation via Account Takeover

Critical ยท published September 25, 2024

CVSS v3.1
9.8
EPSS
1%
Percentile
47.5
In the wild
Unconfirmed
What it is

๐Ÿšจ An unguarded gateway to total chaos! The updateUserInfo() function in the REST API TO MiniProgram plugin for WordPress lets anyone seize control of any user's account, including admins, with just a malicious tweak! ๐Ÿ”ฅ Think of this flaw like a restaurant with a reservation book that's left wide open โ€” anyone can just scribble their name or even change someone else's reservation to their own, completely bypassing the host's checks. It's all about who gets to control the guest list! If an attacker exploits this vulnerability, they could change a user's email to one they control, such as a @weixin.com address. This allows them to reset the user's password and gain access to sensitive accounts, including those of site administrators โ€” a recipe for absolute disaster!

Put simply

Think of this flaw like a restaurant with a reservation book that's left wide open โ€” anyone can just scribble their name or even change someone else's reservation to their own, completely bypassing the host's checks. It's all about who gets to control the guest list! This vulnerability arises from a lack of validation in the updateUserInfo() function, allowing unauthenticated attackers to manipulate the 'openid' user-controlled key and affect arbitrary user accounts without any authentication checks.

What to do

If an attacker exploits this vulnerability, they could change a user's email to one they control, such as a @weixin.com address. This allows them to reset the user's password and gain access to sensitive accounts, including those of site administrators โ€” a recipe for absolute disaster! To protect your site, immediately update the REST API TO MiniProgram plugin to the latest version beyond 4.7.1. Additionally, review your plugins for any other security issues and ensure proper validation of user inputs to prevent privilege escalation. ๐Ÿ›ก๏ธ You've got this! Follow these steps and you'll slam the door on any potential attackers! ๐Ÿ’ช๐ŸŒŸ

The record
Technical detail
CVSS v3.1
9.8 ยท CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00590 ยท 47.5th percentile
Weakness
CWE-639 ยท Authorization Bypass Through User-Controlled Key
Published
2024-09-25T02:05Z
EPSS history
Timeline
  • 25 SEP 02:05Z
    REST API TO MiniProgram <= 4.7.1 - Unauthenticated Arbitrary User Email Update and Privilege Escalation via Account Takeover
    cvelistv5