Home

Description

The REST API TO MiniProgram plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 5.1.2. This is due to the permission callback (update_user_wechatshop_info_permissions_check) only validating that the supplied 'openid' parameter corresponds to an existing WordPress user, while the callback function (update_user_wechatshop_info) uses a separate, attacker-controlled 'userid' parameter to determine which user's metadata gets modified, with no verification that the 'openid' and 'userid' belong to the same user. This makes it possible for authenticated attackers, with Subscriber-level access and above, to modify arbitrary users' store-related metadata (storeinfo, storeappid, storename) via the 'userid' REST API parameter.

PUBLISHED Reserved 2026-03-02 | Published 2026-03-21 | Updated 2026-04-08 | Assigner Wordfence




MEDIUM: 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Problem types

CWE-20 Improper Input Validation

Product status

Default status
unaffected

Any version
affected

Timeline

2026-03-20:Disclosed

Credits

Ronnachai Sretawat Na Ayutaya finder

Ronnachai Chaipha finder

References

www.wordfence.com/...-6b7d-4b7b-bd6a-85176247ab29?source=cve

plugins.trac.wordpress.org/...ram-rest-weixin-controller.php

plugins.trac.wordpress.org/...ram-rest-weixin-controller.php

plugins.trac.wordpress.org/...ram-rest-weixin-controller.php

plugins.trac.wordpress.org/...ram-rest-weixin-controller.php

plugins.trac.wordpress.org/...ram-rest-weixin-controller.php

plugins.trac.wordpress.org/...ram-rest-weixin-controller.php

cve.org (CVE-2026-3460)

nvd.nist.gov (CVE-2026-3460)

Download JSON