Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2021-24545 PoC — WordPress 插件 跨站脚本漏洞

Source
Associated Vulnerability
Title:WordPress 插件 跨站脚本漏洞 (CVE-2021-24545)
Description:WordPress 插件是WordPress开源的一个应用插件。 WordPress 插件 WP HTML Author Bio 1.2.0之前版本存在跨站脚本漏洞,该漏洞源于软件对于用户的HTML缺少有效的验证与转义,允许他们使用恶意JavaScript代码,当任何人访问该用户在前端的帖子时,恶意代码将被执行。因此,角色低至作者的用户可以对用户执行跨站点脚本攻击,这可能导致管理员查看相关帖子时发生权限升级的情况。
Description
The plugin does not sanitise the HTML allowed in the Bio of users, allowing them to use malicious JavaScript code, which will be executed when anyone visit a post in the frontend made by such user. As a result, user with a role as low as author could perform Cross-Site Scripting attacks against users, which could potentially lead to privilege escalation when an admin view the related post/s.
Readme
# CVE-2021-24545

WP HTML Author Bio <= 1.2.0 - Author+ Stored Cross-Site Scripting

The plugin does not sanitise the HTML allowed in the Bio of users, allowing them to use malicious JavaScript code, which will be executed when anyone visit a post in the frontend made by such user. As a result, user with a role as low as author could perform Cross-Site Scripting attacks against users, which could potentially lead to privilege escalation when an admin view the related post/s.

# Proof of Concept

Login as an author, add the following payload in the Biographical Info field of the profile:
```<script>alert(/XSS/)</script>``` 

Then view post made by the author to trigger the XSS 

# Video POC:
https://www.youtube.com/watch?v=fhzJZ5hSI-g
File Snapshot

[4.0K] /data/pocs/62dab8e214090a34be4b1509cef041450accfd00 └── [ 744] README.md 0 directories, 1 file
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.